< prev index next >

langtools/test/tools/lib/toolbox/JavaTask.java

Print this page

        

@@ -65,10 +65,20 @@
         this.vmOptions = Arrays.asList(vmOptions);
         return this;
     }
 
     /**
+     * Sets the VM options.
+     * @param vmOptions the options
+     * @return this task object
+     */
+    public JavaTask vmOptions(List<String> vmOptions) {
+        this.vmOptions = vmOptions;
+        return this;
+    }
+
+    /**
      * Sets the name of the class to be executed.
      * @param className the name of the class
      * @return this task object
      */
     public JavaTask className(String className) {

@@ -85,10 +95,20 @@
         this.classArgs = Arrays.asList(classArgs);
         return this;
     }
 
     /**
+     * Sets the arguments for the class to be executed.
+     * @param classArgs the arguments
+     * @return this task object
+     */
+    public JavaTask classArgs(List<String> classArgs) {
+        this.classArgs = classArgs;
+        return this;
+    }
+
+    /**
      * Sets whether or not the standard VM and java options for the test should be passed
      * to the new VM instance. If this method is not called, the default behavior is that
      * the options will be passed to the new VM instance.
      *
      * @param includeStandardOptions whether or not the standard VM and java options for
< prev index next >