ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Stevens" <insomniacpeng...@googlemail.com>
Subject Re: Build fails when 'java' task's "arg line" contains a directory path with spaces
Date Mon, 29 Sep 2008 22:54:14 GMT
2008/9/29 Vivek Payala <vivek_payala@persistent.co.in>:
> Our build fails while executing the following task. It fails only when the
> application is installed in a directory having space.
>
> <java classname="com.abc.a" 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 succeeds.
> 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.


Andy.
-- 
http://pseudoq.sourceforge.net/  Open source java Sudoku application

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message