/** * Create the CompilerArgs using a local and external DML files specification */ public CompilerArgs(String appName, File destDirectory, File destDirectoryBase, String packageName, Boolean generateFinals, Class<? extends CodeGenerator> generatorClass, List<URL> localDomainSpecs, List<URL> externalDomainSpecs, Map<String, String> params) { this(appName, destDirectory, destDirectoryBase, packageName, generateFinals, generatorClass, params); if (localDomainSpecs != null) { this.localDomainSpecs.addAll(localDomainSpecs); } if (externalDomainSpecs != null) { this.externalDomainSpecs.addAll(externalDomainSpecs); } checkArguments(); }
/** * Create the CompilerArgs using command-line args. */ public CompilerArgs(String[] args) throws DmlCompilerException { try { processCommandLineArgs(args); checkArguments(); } catch (Exception e) { throw new DmlCompilerException(e); } }
/** * Create the CompilerArgs using the project name (requires a <code><projName></code>/project.properties file in the * classpath). */ public CompilerArgs(File destDirectory, File destDirectoryBase, String packageName, Boolean generateFinals, Class<? extends CodeGenerator> generatorClass, String projectName, Map<String, String> params) throws DmlCompilerException { this(projectName, destDirectory, destDirectoryBase, packageName, generateFinals, generatorClass, params); try { setDmlSpecsFromProjectName(projectName); } catch (Exception e) { throw new DmlCompilerException(e); } checkArguments(); }