ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <peter.rei...@corvil.com>
Subject Re: AntRun or modification to antcall
Date Wed, 30 Jul 2003 11:41:54 GMT
Sorry,
I meant to reply to this previously, but am snowed
under at the moment.

I do not think that this task is a form of antcall.
It does not create a new project which is the
defining characteristic of antcall.

I think it should go into ant-contrib.
I will put it there soon....
Peter

On Wednesday 30 July 2003 11:31, Nicola Ken Barozzi wrote:
> In some cases I find that using antcall is slow and using dependencies
> is impractical. Thus I have come up with this task, that simply executes
> a target without any dependency checking:
>
> /**
>   * Ant tasks that runs a target without creating a new project.
>   *
>   * @author Nicola Ken Barozzi nicolaken@apache.org
>   */
> public class RunTargetTask extends Task {
>
>     private String target = null;
>
>      public void setTarget( String target ) {
>        this.target = target;
>      }
>
>      public void execute() throws BuildException{
>        if (target == null){
>          throw new BuildException("target property required");
>        }
>
>        getProject().executeTarget(target);
>      }
> }
>
>
> I have asked ant-contrib, but I was suggested to ask here is this
> behaviour could be inserted in antcall and if it was something that
> could go in Ant.
>
> Example usage:
>
>   <antcall target="xyz" checkDependencies="false"/>
>
> What do you guys think?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message