ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Showtargets task, task 'flags'
Date Wed, 04 Mar 2009 10:41:07 GMT
>A) I couldn't find a task that shows all available targets (and their
>descriptions). I didn't think through whether that's a computable
>problem, but I guess it is :-)

There is not task for that.
But starting Ant with "-projecthelp" will show the targets.



>B) I'd like to just 'define a symbol' on the command line. My target
>would then conditionally do something different if
>A given symbol is defined. I couldn't make this work with -Dsymbol, as
>ant expects me to set also a value. The value however doesn't matter in
>my case. Any way to achieve this? My current solution is to just define
>an additional target, which sets the property/symbol to an arbitrary
>value and then delegate to the original target..


<project>
   <target name="a" if="a">...
   <target name="b" if="b">...
   ...

"ant -Da=someValue" will start target a but not target b.


Jan

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


Mime
View raw message