ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vivek Payala" <>
Subject RE: Build fails when 'java' task's "arg line" contains a directory path with spaces
Date Tue, 30 Sep 2008 10:13:00 GMT
Thanks Andy for your response. Unfortunately, modifying the arguments as per
your suggestion didn't help.


As I described earlier, even though <arg line="@{type} @{configDir}"/> is
mentioned the same way (without multiple <arg line statements), and if
@{configDir} contains the directory path without spaces, the build is
successful. Only when @{configDir} contains spaces the build fails.





Vivek Payala | Team Lead - Configuration Management (Professional & Managed
Services Group) | Persistent Systems  | Cell: +91 93701 31472 | Tel: +91 (20) 3023

Innovation in software product design, development and delivery-



-----Original Message-----
From: Andy Stevens [] 
Sent: Tuesday, September 30, 2008 4:24 AM
To: Ant Users List
Subject: Re: Build fails when 'java' task's "arg line" contains a directory
path with spaces


2008/9/29 Vivek Payala <>:

> Our build fails while executing the following task. It fails only when the

> application is installed in a directory having space.


> <java classname="" failonerror="true" fork="yes" maxmemory="512m"

> errorproperty="runerror">

>            <jvmarg value="-server"/>

>            <arg line="@{type} @{configDir}"/>

>            <classpath>

>             <path refid="client.classpath.lib"/>

>            </classpath>

> </java>


> If the @{configDir} directory does not have spaces then the build

> We have tried specifying @{configDir} in "", '', but it didn't work.


Instead of

<arg line="@{type} @{configDir}"/>

how about using

<arg value="@{type}"/>

<arg value="@{configDir}"/>

instead?  As the docs say, value "can contain space characters" while

line is "space-delimited" and "It is highly recommended to avoid the

line version when possible."  I don't see anything that says you can

only have a single nested arg element.




--  Open source java Sudoku application



To unsubscribe, e-mail:

For additional commands, e-mail:

This e-mail may contain privileged and confidential information which is the property of Persistent
Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, you are not authorized to read, retain, copy, print,
distribute or use this message. If you have received this communication in error, please notify
the sender and delete all copies of this message. Persistent Systems Ltd. does not accept
any liability for virus infected mails.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message