ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant's exec command example
Date Wed, 15 Jan 2003 14:14:02 GMT
On Wed, 15 Jan 2003, David McTavish <dmctavish@sandvine.com> wrote:

> you could also put all of these on a single line as follows:
> 
>     <exec executable="cp">
>         <arg line="-p -R ${srcDir} ${destDir}"/>
>     </exec>

but run into trouble if either ${srcDir} or ${destDir} expands to
something with spaces in it.

Using the value attribute is not only more to type but also safer.

Stefan

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


Mime
View raw message