ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jay Burgess <li...@vtgroup.com>
Subject RE: Catch-all target?
Date Tue, 24 May 2005 15:49:29 GMT
That's a really good point.  A "build.bat" file would simplify it even further:

build <ProductName> <CVSTagName>

I was so interested in trying to do it Ant-like, that I didn't consider
alternatives.  Thanks for the info.

Jay

| Jay Burgess [Vertical Technology Group]
| "Essential Technology Links via RSS"
| http://www.vtgroup.com/


 

-----Original Message-----
From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
Sent: Tuesday, May 24, 2005 10:44 AM
To: user@ant.apache.org
Subject: AW: Catch-all target?

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

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Jay Burgess [mailto:lists@vtgroup.com]
> Gesendet am: Dienstag, 24. Mai 2005 17:26
> An: user@ant.apache.org
> 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@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 






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


Mime
View raw message