8136930: Simplify use of module-system options by custom launchers

8160489: Multiple -Xpatch lines ignored by javac
8156998: javac should support new option -XinheritRuntimeEnvironment

Reviewed-by: jlahoda, ksrini
This commit is contained in:
Jonathan Gibbons 2016-08-10 15:47:46 -07:00
parent 3b80559162
commit 978417c4c7
161 changed files with 2421 additions and 1050 deletions

View file

@ -66,6 +66,16 @@ public class JavaTask extends AbstractTask<JavaTask> {
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
@ -86,6 +96,16 @@ public class JavaTask extends AbstractTask<JavaTask> {
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