ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Klem <michaelk...@earthlink.net>
Subject Re: Ant's exec command example
Date Wed, 15 Jan 2003 03:35:50 GMT
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 <klemm@corp.earthlink.net>    626-296-3027
>
>--
>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


-- 
  Michael Klem <klemm@corp.earthlink.net>    626-296-3027

--
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