2008/9/29 Vivek Payala <[EMAIL PROTECTED]>:
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]