ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Build fails when 'java' task's "arg line" contains a directory path with spaces
Date Tue, 30 Sep 2008 13:23:54 GMT
Chad McHenry wrote:
> Just correcting my example; obviously you only want to quote the individual
> arguments: <arg line="'@{type}' '@{configDir}'"/>

That could still confuse the line breaking code.

I would suggest

1. breaking everything up

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


2. run ant -verbose to see what is being passed in

The @{} signs show that macros are at play; if there is one place bad 
things happen it is there, as property expansion can take place twice, 
and other quirks may show up.

-steve

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


Mime
View raw message