ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EXT / FOCAL MALAPRADE Roland <ext.focal.malapr...@sncf.fr>
Subject RE: executing a "clean" task
Date Mon, 06 Jan 2003 15:48:39 GMT
you can actually run several targets at the same time as well.

from the Manual in "Running Ant"

Command-line Options Summary
ant [options] [target [target2 [target3] ...]]

so you could run this, for example:

ant clean build

> -----Message d'origine-----
> De : Erik Price [mailto:eprice@ptc.com]
> Envoye : lundi 6 janvier 2003 16:38
> A : ant-user@jakarta.apache.org
> Objet : executing a "clean" task
> 
> 
> Hi,
> 
> I have written a very small build.xml script for ant modeled 
> after the 
> example in the "Using Ant" docs on the Jakarta web site.  The 
> example I 
> followed includes a task named "clean", but neither the 
> default task nor 
> any of its dependencies depend on "clean".  Therefore, it 
> will never be 
> executed.
> 
> Is there a way to get a specific task to execute by passing in some 
> commandline parameter?  Essentially I have modified the 
> "clean" task in 
> my build.xml to delete the build directory, but I'm not sure 
> how to get 
> "clean" to execute instead of "dist", which is my default task.  I 
> didn't see mention of this in the docs, or I missed it, only 
> how to set 
> property names/values from the command line with -D.
> 
> 
> Thanks,
> 
> Erik
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

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


Mime
View raw message