示例#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;
 }
示例#2
0
 /**
  * Adds a new JVM argument.
  *
  * @return create a new JVM argument so that any argument can be passed to the JVM.
  * @see #setFork(boolean)
  */
 public Commandline.Argument createJvmarg() {
   return commandline.createVmArgument();
 }