Java Mailing List Archive

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

Apache Ant Archive

» Ant Users List
» Ant Developers List
valid characters for target names

valid characters for target names

2005-06-10       - By Ivan Ivanov
Reply:     1     2     3     4  



--- Mark Lybarger <mlybarger@(protected)> wrote:

> hyphens work quite well for target names. I would
> guess underscores will
> also work. one trick to having a target that you
> don't want to be called
> directly is to name it with double hyphens.

Actually one hyphen will do it also:
<target name="-dont.call.me">
</target>

> for example:
>
> <target name="--dont.call.me">
> </target>
>
> <target name="call.me" depends="--dont.call.me">
> </target>
>
> i hadn't though about quoting the argument, but the
> shell doesn't like to
> run :
>
> ant -f build.xml --dont.call.me
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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.