You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Michael Klem <mi...@earthlink.net> on 2003/01/15 04:18:57 UTC
Ant's exec command example
Can someone give me an example of how to use Ant's exec command to
copy a file? Everything I tried results in an IOException.
Here is what Iam doing:
<exec dir="${basedir}" executable="/bin/cp -p ${srcDir}/* ${destDir}/.">
</exec>
--
Michael Klem <kl...@corp.earthlink.net> 626-296-3027
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Ant's exec command example
Posted by Michael Klem <mi...@earthlink.net>.
I figured it out!
This works:
<exec executable="cp">
<arg value="-p" />
<arg value="-R" />
<arg value="${srcDir}" />
<arg value="${destDir}" />
</exec>
At 7:18 PM -0800 01/14/2003, Michael Klem wrote:
>Can someone give me an example of how to use Ant's exec command to
>copy a file? Everything I tried results in an IOException.
>
>Here is what Iam doing:
> <exec dir="${basedir}" executable="/bin/cp -p ${srcDir}/* ${destDir}/.">
> </exec>
>
>--
> Michael Klem <kl...@corp.earthlink.net> 626-296-3027
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
--
Michael Klem <kl...@corp.earthlink.net> 626-296-3027
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>