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 RADEMAKERS Tanguy
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Hey James,

Just a last disclaimer/whatnot: it's worth mentioning that <antcall> is
not meant to be used as a poor man's "goto" - it's more about allowing
you to reuse an existing target, optionally with different properties.
Ant scripts can get pretty hairy even when you do everything "by the
book" (because build processes in the real world can get pretty hairy).
Do yourself a favor and swim with ant's flow on this one, or you *will*
run into problems one day down the road... and i'll feel terrible for
having pointed you down the path to wrack and ruin ;)

That's it, mother mode off!

/t

>-----Original Message-----
>From: Priest, James (NIH/NIEHS) [C] [mailto:PriestJ@(protected)]
>Sent: Friday, February 23, 2007 4:37 PM
>To: Ant Users List
>Subject: RE: Help with running different target based on user input?
>
>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

---------------------------------------------------------------------
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.