You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by jpyork <jp...@hotmail.com> on 2008/02/19 15:43:02 UTC

Inheriting tasks?

I know you can inherit properties, but can you do this with tasks also?  I am
trying to make a generic script, so say I have 5 scripts that all do the
task "init" that deletes a classes folder and recreates it.  Is there a way
I can create a master file and put this task in the master file and have it
run when all the child scripts are run?
-- 
View this message in context: http://www.nabble.com/Inheriting-tasks--tp15561367p15561367.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Re: Inheriting tasks?

Posted by Vijay Aravamudhan <av...@gmail.com>.
are you referring to tasks or targets? I think what you want to find out 
abt is a target.
If its a target, then you can use the <import/> task to import common 
definitions of tasks, properties, etc.

hth,
Vijay

jpyork wrote:
> I know you can inherit properties, but can you do this with tasks also?  I am
> trying to make a generic script, so say I have 5 scripts that all do the
> task "init" that deletes a classes folder and recreates it.  Is there a way
> I can create a master file and put this task in the master file and have it
> run when all the child scripts are run?
>   

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


AW: Inheriting tasks?

Posted by Ja...@rzf.fin-nrw.de.
<import>
<subant>

Jan 

> -----Ursprüngliche Nachricht-----
> Von: jpyork [mailto:jp_york@hotmail.com] 
> Gesendet: Dienstag, 19. Februar 2008 15:43
> An: user@ant.apache.org
> Betreff: Inheriting tasks?
> 
> 
> I know you can inherit properties, but can you do this with 
> tasks also?  I am
> trying to make a generic script, so say I have 5 scripts that 
> all do the
> task "init" that deletes a classes folder and recreates it.  
> Is there a way
> I can create a master file and put this task in the master 
> file and have it
> run when all the child scripts are run?
> -- 
> View this message in context: 
> http://www.nabble.com/Inheriting-tasks--tp15561367p15561367.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 

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