Java Mailing List Archive

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

Apache Ant Archive

» Ant Users List
» Ant Developers List
AW: Catch-all target?

AW: Catch-all target?

2005-05-24       - By Jan.Materne@(protected)

Not "inside" Ant. But you could write a wrapper script converting
to -D option :)

Jan

> -----Urspr?ngliche Nachricht-----
> Von: Jay Burgess [mailto:lists@(protected)]
> Gesendet am: Dienstag, 24. Mai 2005 17:26
> An: user@(protected)
> Betreff: Catch-all target?
>
> Is it possible in Ant to define a "catch-all" target, so that
> if a target is
> specified on the command line that's not in build.xml, the
> catch-all target will
> be called?  The reason I'm asking is that I'm trying to make
> my Ant command line
> look something like:
>
>    ant build <ProductName> <CVSTagName>
>
> Since "build" and "<ProductName>" are known ahead of time, I
> can make them
> targets.  However, "<CVSTagName>" is always varied, and so
> I'd like to find some
> way to make this work.  I realize I can do:
>
>    ant build <ProductName> -Dtag=<CVSTagName>
>
> But I'd rather avoid the "-Dtag=" if possible.
>
> Thanks.
>
> Jay
>
> | Jay Burgess [Vertical Technology Group]
> | "Essential Technology Links via RSS"
> | http://www.vtgroup.com/
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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.