Hi,
This is my first post to this list so I do appologize if I don't do it
exactly right.
Here is the code that I wrote for a do task.
/*
* Author: Vladimir Berezniker
*/
package com.volchoksoft.ant;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.BuildException;
public class DoTask extends Task {
private String _target = null;
public String getTarget() {
return _target;
}
public void setTarget(String target) {
this._target = target;
}
public void execute() throws BuildException {
//getProject().executeTarget(_target);
project.executeTarget(_target);
}
}
Sincerely,
Vladimir Berezniker
Alan Pearson <[EMAIL PROTECTED]> on 01/16/2002 02:39:32 PM
Please respond to "Ant Users List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: RE: How to run a target without ANTCALL?
Hello, Mark,
I'm trying to write a build.xml file that has several
targets invoked by antcall (which themselves have depends),
and am running into the same issue which you described. Your
<do> task sounds like a very nice solution. I wonder if
you would be inclined to share the code with the ANT users
community. It would be quite helpful to me and I'm sure
many others.
Thanks,
Alan Pearson
Software Design Engineer
Paramark, Inc. (http://www.paramark.com/)
<snip>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>