>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-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to