Example #1
0
 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;
 }
Example #2
0
 /** Constructor for ANTLR task. */
 public ANTLR() {
   commandline.setVm(JavaEnvUtils.getJreExecutable("java"));
   commandline.setClassname("antlr.Tool");
 }
Example #3
0
 public ANTLR() {
   commandline.setVm("java");
   commandline.setClassname("antlr.Tool");
 }