50 * Sets the classpath. 51 * @param classpath the classpath 52 * @return this task object 53 */ 54 public JavaTask classpath(String classpath) { 55 this.classpath = classpath; 56 return this; 57 } 58 59 /** 60 * Sets the VM options. 61 * @param vmOptions the options 62 * @return this task object 63 */ 64 public JavaTask vmOptions(String... vmOptions) { 65 this.vmOptions = Arrays.asList(vmOptions); 66 return this; 67 } 68 69 /** 70 * Sets the name of the class to be executed. 71 * @param className the name of the class 72 * @return this task object 73 */ 74 public JavaTask className(String className) { 75 this.className = className; 76 return this; 77 } 78 79 /** 80 * Sets the arguments for the class to be executed. 81 * @param classArgs the arguments 82 * @return this task object 83 */ 84 public JavaTask classArgs(String... classArgs) { 85 this.classArgs = Arrays.asList(classArgs); 86 return this; 87 } 88 89 /** 90 * Sets whether or not the standard VM and java options for the test should be passed 91 * to the new VM instance. If this method is not called, the default behavior is that 92 * the options will be passed to the new VM instance. 93 * 94 * @param includeStandardOptions whether or not the standard VM and java options for 95 * the test should be passed to the new VM instance. 96 * @return this task object 97 */ 98 public JavaTask includeStandardOptions(boolean includeStandardOptions) { 99 this.includeStandardOptions = includeStandardOptions; 100 return this; 101 } 102 103 /** 104 * {@inheritDoc} 105 * @return the name "java" 106 */ 107 @Override 108 public String name() { 109 return "java"; | 50 * Sets the classpath. 51 * @param classpath the classpath 52 * @return this task object 53 */ 54 public JavaTask classpath(String classpath) { 55 this.classpath = classpath; 56 return this; 57 } 58 59 /** 60 * Sets the VM options. 61 * @param vmOptions the options 62 * @return this task object 63 */ 64 public JavaTask vmOptions(String... vmOptions) { 65 this.vmOptions = Arrays.asList(vmOptions); 66 return this; 67 } 68 69 /** 70 * Sets the VM options. 71 * @param vmOptions the options 72 * @return this task object 73 */ 74 public JavaTask vmOptions(List<String> vmOptions) { 75 this.vmOptions = vmOptions; 76 return this; 77 } 78 79 /** 80 * Sets the name of the class to be executed. 81 * @param className the name of the class 82 * @return this task object 83 */ 84 public JavaTask className(String className) { 85 this.className = className; 86 return this; 87 } 88 89 /** 90 * Sets the arguments for the class to be executed. 91 * @param classArgs the arguments 92 * @return this task object 93 */ 94 public JavaTask classArgs(String... classArgs) { 95 this.classArgs = Arrays.asList(classArgs); 96 return this; 97 } 98 99 /** 100 * Sets the arguments for the class to be executed. 101 * @param classArgs the arguments 102 * @return this task object 103 */ 104 public JavaTask classArgs(List<String> classArgs) { 105 this.classArgs = classArgs; 106 return this; 107 } 108 109 /** 110 * Sets whether or not the standard VM and java options for the test should be passed 111 * to the new VM instance. If this method is not called, the default behavior is that 112 * the options will be passed to the new VM instance. 113 * 114 * @param includeStandardOptions whether or not the standard VM and java options for 115 * the test should be passed to the new VM instance. 116 * @return this task object 117 */ 118 public JavaTask includeStandardOptions(boolean includeStandardOptions) { 119 this.includeStandardOptions = includeStandardOptions; 120 return this; 121 } 122 123 /** 124 * {@inheritDoc} 125 * @return the name "java" 126 */ 127 @Override 128 public String name() { 129 return "java"; |