git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267984 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -243,6 +243,8 @@ public class Java extends Task { | |||||
| Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO, | Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO, | ||||
| Project.MSG_WARN), | Project.MSG_WARN), | ||||
| null); | null); | ||||
| exe.setAntRun(project); | exe.setAntRun(project); | ||||
| if (dir == null) dir = project.getBaseDir(); | if (dir == null) dir = project.getBaseDir(); | ||||
| @@ -269,4 +271,10 @@ public class Java extends Task { | |||||
| run(cmdj); | run(cmdj); | ||||
| } | } | ||||
| /** | |||||
| * Clear out the arguments to this java task. | |||||
| */ | |||||
| public void clearArgs() { | |||||
| cmdl.clearJavaArgs(); | |||||
| } | |||||
| } | } | ||||
| @@ -335,4 +335,11 @@ public class Commandline implements Cloneable { | |||||
| arguments.removeAllElements(); | arguments.removeAllElements(); | ||||
| } | } | ||||
| /** | |||||
| * Clear out the arguments but leave the executable in place for another operation. | |||||
| */ | |||||
| public void clearArgs() { | |||||
| arguments.removeAllElements(); | |||||
| } | |||||
| } | } | ||||
| @@ -160,4 +160,11 @@ public class CommandlineJava implements Cloneable { | |||||
| c.vmVersion = vmVersion; | c.vmVersion = vmVersion; | ||||
| return c; | return c; | ||||
| } | } | ||||
| /** | |||||
| * Clear out the java arguments. | |||||
| */ | |||||
| public void clearJavaArgs() { | |||||
| javaCommand.clearArgs(); | |||||
| } | |||||
| } | } | ||||