Each commandline object has at most one instance of the argument class. This method calls this.createArgument(false).
this.createArgument(false)
160161162163164165166167168169170
{ Argument airConfigArgument = task.createArg(); airConfigArgument.setValue("+configname=air"); } Argument outputFile = task.createArg(); outputFile.setLine("-output \"" + finalFile.getAbsolutePath() + "\""); Argument sourcePath = task.createArg(); sourcePath.setLine("-source-path " + configuration.getSources().getPathElements(" ") + " " + configuration.getTestSources().getPathElements(" "));
163164165166167168169170171172173
} Argument outputFile = task.createArg(); outputFile.setLine("-output \"" + finalFile.getAbsolutePath() + "\""); Argument sourcePath = task.createArg(); sourcePath.setLine("-source-path " + configuration.getSources().getPathElements(" ") + " " + configuration.getTestSources().getPathElements(" ")); determineLibraryPath( task ); determineLoadConfigArgument( task );
170171172173174175176177178179180
determineLibraryPath( task ); determineLoadConfigArgument( task ); Argument debug = task.createArg(); debug.setLine( "-debug=" + configuration.getDebug() ); Argument headlessServer = task.createArg(); headlessServer.setLine("-headless-server=true");
173174175176177178179180181182183
determineLoadConfigArgument( task ); Argument debug = task.createArg(); debug.setLine( "-debug=" + configuration.getDebug() ); Argument headlessServer = task.createArg(); headlessServer.setLine("-headless-server=true"); Argument mainFile = task.createArg(); mainFile.setValue(runnerFile.getAbsolutePath());
177178179180181182183184185186187
Argument headlessServer = task.createArg(); headlessServer.setLine("-headless-server=true"); Argument mainFile = task.createArg(); mainFile.setValue(runnerFile.getAbsolutePath()); return task; }
8687888990919293949596
task.setJar(new File(getProject().getProperty("FLEX_HOME") + File.separatorChar + ADT_JAR_PATH)); task.setProject(getProject()); task.setDir(getProject().getBaseDir()); task.setOutputproperty(outputProperty); Argument versionArgument = task.createArg(); versionArgument.setValue("-version"); task.execute(); double version = parseAdtVersionNumber( getProject().getProperty(outputProperty) ); LoggingUtil.log("Found AIR version: " + version);
257258259260261262263264265266267
setSystemProperty(java, "java.io.tmpdir", "var/temp"); setSystemProperty(java, "java.endorsed.dirs", prefixSystemPath("java.endorsed.dirs", new File(geronimoHome, "lib/endorsed"))); setSystemProperty(java, "java.ext.dirs", prefixSystemPath("java.ext.dirs", new File(geronimoHome, "lib/ext"))); if (quiet) { java.createArg().setValue("--quiet"); } else { java.createArg().setValue("--long"); }
260261262263264265266267268269270
if (quiet) { java.createArg().setValue("--quiet"); } else { java.createArg().setValue("--long"); } if (verbose) { java.createArg().setValue("--verbose"); }
264265266267268269270271272273274
else { java.createArg().setValue("--long"); } if (verbose) { java.createArg().setValue("--verbose"); } if (veryverbose) { java.createArg().setValue("--veryverbose"); }
268269270271272273274275276277278
if (verbose) { java.createArg().setValue("--verbose"); } if (veryverbose) { java.createArg().setValue("--veryverbose"); } if (startModules != null) { if (startModules.length == 0) { throw new MojoExecutionException("At least one module name must be configured with startModule");