ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dick, Brian E." <>
Subject Copy to remote machine
Date Tue, 12 Apr 2005 13:43:22 GMT
I need to copy a directory of files to a remote machine. I want to
maintain the same relative directory structure on the remote machine as
defined by the local machine. Only the top level directories are
different between the two machines.

The following works, but is it the best way to accomplish this task?

<target name="deploy">
   <pathconvert targetos="windows" property="target.dir">
         <pathelement location="."/>
      <map from="c:\projects\distapp" to="\\remotehost\c$\prodapp"/>

   <copy todir="${target.dir}/archives">
      <fileset dir="archives"/>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message