stevel 2005/02/18 14:09:44 Modified: src/main/org/apache/tools/ant/taskdefs ExecTask.java Java.java Log: these two get new constructors that do the config, as they get created so often. Revision Changes Path 1.78 +19 -0 ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java Index: ExecTask.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java,v retrieving revision 1.77 retrieving revision 1.78 diff -u -r1.77 -r1.78 --- ExecTask.java 26 Jan 2005 22:58:12 -0000 1.77 +++ ExecTask.java 18 Feb 2005 22:09:44 -0000 1.78 @@ -24,6 +24,7 @@ import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project; import org.apache.tools.ant.Task; +import org.apache.tools.ant.ProjectComponent; import org.apache.tools.ant.types.Commandline; import org.apache.tools.ant.types.Environment; import org.apache.tools.ant.types.Path; @@ -72,6 +73,24 @@ */ private boolean vmLauncher = true; + + /** + * Create an instance. + * Needs to be configured by binding to a project. + */ + public ExecTask() { + } + + /** + * create an instance that is helping another task. + * Project, OwningTarget, TaskName and description are all + * pulled out + * @param owner task that we belong to + */ + public ExecTask(Task owner) { + bindToOwner(owner); + } + /** * Set whether or not you want the process to be spawned. * Default is false. 1.101 +14 -0 ant/src/main/org/apache/tools/ant/taskdefs/Java.java Index: Java.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Java.java,v retrieving revision 1.100 retrieving revision 1.101 diff -u -r1.100 -r1.101 --- Java.java 4 Feb 2005 15:38:19 -0000 1.100 +++ Java.java 18 Feb 2005 22:09:44 -0000 1.101 @@ -74,6 +74,20 @@ private boolean incompatibleWithSpawn = false; /** + * Normal constructor + */ + public Java() { + } + + /** + * create a bound task + * @param owner owner + */ + public Java(Task owner) { + bindToOwner(owner); + } + + /** * Do the execution. * @throws BuildException if failOnError is set to true and the application * returns a nonzero result code.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]