Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Renaming files during copy

Paul Schabl

2008-08-25

Replies: Find Java Web Hosting

Author LoginPost Reply
Hej,

The following target copies and renames files as expected,
but also creates emtpy directories named "somedir.deploy".
How can i make sure, that only files get renamed during copy?


 <target name="copy"
   description="copies and packages files">

   <copy todir="${update.files.dir}" preserveLastModified="true">
     <fileset dir="${deploy.dir}" casesensitive="false">
       <different targetdir="${update.last.dir}" ignoreFileTimes="true" />
     </fileset>
     <globmapper from="*.*" to="*.deploy"/>
   </copy>
 </target>

Thanks and Regards,
Paul Schabl


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.