ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <>
Subject Re: Target names with spaces evoke error
Date Mon, 23 Jun 2003 06:43:36 GMT
Hi Christian,

I have tested a target with space with ant1.6alpha under cygwin and under
In both cases it works, I am not getting an error if I do
ant "with space"
You might want to have a look at the ant script which is included in your
debian distribution and maybe change its first line to #!/bin/sh -x to see
what it is doing ?
One debian specialty is that there is an ant script under /usr/bin; maybe
this one is causing the trouble and you might want to rename it or delete it
to invoke directly ant's own script, not a wrapper or a symbolic link.
Make sure that you define ANT_HOME in your shell, and that ANT_HOME/bin is
in your PATH.

----- Original Message -----
From: "Christian Eitner" <>
To: <>
Sent: Sunday, June 22, 2003 7:34 PM
Subject: Target names with spaces evoke error

> Hello everybody,
> Given this simple `build.xml':
> <?xml version="1.0" encoding="UTF-8"?>
> <project basedir="./" default="Testing all" name="Cyan Jaguar">
>   <target name = "Testing all">
>     <echo>
>       Hello
>     </echo>
>   </target>
> </project>
>    If I just invoke `ant' it echoes `Hello', as expected. However, if
trying to call the target directly with `ant "Testing all"' I get the
> Buildfile: build.xml
> Target `Testing' does not exist in this project.
> Total time: 1 second
>    It seems as if no spaces in target names are recognized. I ran a pretty
elaborate build.xml file on RedHat 7.2, but since upgrading to Debian Woody
(testing, `ant -version' gives `Apache Ant version 1.5.3 compiled on April 9
2003') there seems to be an issue here.
>    I just want to check out whether this is with a
configuration/invocation thing or whether I should bugger the Debian folks
:-) (BTW, ant 1.4.something didn't work either)
>    Thanks for your consideration,
>    Christian
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message