Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Help with running different target based on user input?

Help with running different target based on user input?

2007-02-23       - By Priest, James (NIH/NIEHS) [C]
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Okay - gotcha.   For what I need now it's OK but I see where you are
going...

I'll copy my current code and rework it using 'depend' and see if I can
make it work...  I can see how that would be very flexible!

Thanks!
Jim

> -----Original Message-----
> From: RADEMAKERS Tanguy [mailto:Tanguy.RADEMAKERS@(protected)]
>
> do you think you'll ever want to run script 3 *without*
> running script 4? 'Coz if you do, antcall is not the way to
> go - just make the script 4 target depend on the script 3
> target. That way, if you want to run just script 3, you just
> call "ant script3", otherwise you call "ant script4", which
> will run script 3 as well... that's more the "ant way" to do
> things. Same logic applies for running script 1 and script 2
> - if they always need to run then put them both in the same
> target (call it dbinit or setup or whatever) and then make
> script 3 dependent on that. Then you
> can:
>
> "ant dbinit" -> runs script 1 and script 2 "ant script3" ->
> runs script 1 and script 2 and script 3 "ant script4" -> runs
> script 1 and script 2 and script 3 and script 4
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.