private CommandlineJava initializeJavaCommand() { CommandlineJava cmd = new CommandlineJava(); cmd.setClassname(testRunnerClass); cmd.createVmArgument().setValue("-Xmx100M"); if (verbose) cmd.createArgument().setValue("-v"); if (resultsXMLPage != null) { String resultsHTMLPagePath = new File(resultsDir, resultsXMLPage).getAbsolutePath(); cmd.createArgument().setValue("-xml"); cmd.createArgument().setValue(resultsHTMLPagePath); } cmd.createArgument().setValue("localhost"); cmd.createArgument().setValue(String.valueOf(fitnessePort)); cmd.createArgument().setValue(suitePage); cmd.createClasspath(getProject()).createPath().append(classpath); return cmd; }
/** Constructor for ANTLR task. */ public ANTLR() { commandline.setVm(JavaEnvUtils.getJreExecutable("java")); commandline.setClassname("antlr.Tool"); }
public ANTLR() { commandline.setVm("java"); commandline.setClassname("antlr.Tool"); }