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:     <<     11     12     13     14  

Thanks!! I figured out how in CFEclipse to run individual targets which
is more inline with your example - I'm going to rebuild my build file so
I can do as you suggested and have:

1) build-tables
2) build-table-with-reqdata (depend 1)
3) build-table-with-peopledata  (depend 1,2)
4) build-everything (depend 1,2,3)

And get rid of the AntCall...

Thanks for all the help!!  Your name looks familiar - you are on the
CFEclipse mailing list as well aren't you? :)

Jim

> -----Original Message-----
> From: RADEMAKERS Tanguy [mailto:Tanguy.RADEMAKERS@(protected)]
> Sent: Friday, February 23, 2007 11:34 AM
> To: Ant Users List
> Subject: RE: Help with running different target based on user input?
>
> 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)
>

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