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 Eric Tchepannou
Reply:     1     2     3     4  

Hi,
I will personally not use spaces, but I can remember a couple of times
where I have used dots (.) in my target names.

May be from the command line you may have to run your target like this:
ant -f <build_file> "install server" (I have never tested this, but it
could work)


On 6/10/05, ralapa@(protected) <ralapa@(protected)> wrote:
> Hi,
>
> Could someone please clarify what is a valid characters for
> a target name?
>
> I have been using spaces in the target names, e.g. "install server",
> because it is more readable, and since I only invoke ant through
> my IDE (IntelliJ) I don't care that spaces make it harder to use on
> the commandline.
>
> But I was reading the ant manual, and it seemed to say that the
> target names should only be alphanumeric.  That seems extreme
> to me. Does that mean you can't use space, hypen, or underscore?
>
> Thanks,
> -Alex
>
>
> "A target name can be any alphanumeric string valid in the encoding of the
XML file. The empty string "" is in this set, as is comma "," and space " ".
Please avoid using these, as they will not be supported in future Ant versions
because of all the confusion they cause. IDE support of unusual target names,
or any target name containing spaces, varies with the IDE."
>
> http://ant.apache.org/manual/using.html#targets
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>


--
Best Regards,
Eric Tchepannou

---------------------------------------------------------------------
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.