ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tibor Strausz <Tibor.Stra...@tridion.com>
Subject RE: rename/move
Date Tue, 30 Jul 2002 07:45:06 GMT
> <move> in Ant 1.5 should be fast enough as long as you are not leaving
> any files via excludes in the directory to move.

well not with me :(
see task (either uncomment move and comment rename or viceverca):
  <target name="renameSourceFolder" depends="init" description="Rename old
source folder">
      <echo>Start at: ${TSTAMP}</echo>
    <!--this is slow so use the rename     --> 
      <echo>Rename is faster but is deprecated.</echo>
      <move todir="${oldSrcDir}">
        <fileset dir="${srcDir}"/>
      </move>
    <!-- rename is deprecated if it does not work use move 
    <echo>Rename is deprecated but is much faster then move.</echo>
    <rename src="${srcDir}" dest="${oldSrcDir}"/>
    -->
      <echo>End at: ${TSTAMP}</echo>    
  </target>

see output:

C:\myJava\projects\build\first>ant renameSourceFolder
Buildfile: build.xml

renameSourceFolder:
     [echo] Rename is deprecated but is much faster then move.
   [rename] DEPRECATED - The rename task is deprecated.  Use move instead.
     [echo] End at: 0938

BUILD SUCCESSFUL
Total time: 2 seconds
C:\myJava\projects\build\first>ant renameSourceFolder
Buildfile: build.xml

renameSourceFolder:
     [echo] Start at: 0939
     [echo] Rename is faster but is deprecated.
     [move] Moving 2887 files to C:\DialogServer_20020730-0939
     [move] Moved 18 empty directories to C:\DialogServer_20020730-0939
     [echo] End at: 0939

BUILD SUCCESSFUL
Total time: 2 minutes 32 seconds
C:\myJava\projects\build\first>


tibi


> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]
> Sent: Tuesday, July 30, 2002 9:08 AM
> To: ant-user@jakarta.apache.org
> Subject: Re: rename/move
> 
> 
> On Fri, 26 Jul 2002, Tibor Strausz <Tibor.Strausz@tridion.com> wrote:
> 
> > Will the rename task be undepricated.  I would like to use that taks
> > because its much faster than the move/delete old dir task.
> 
> <move> in Ant 1.5 should be fast enough as long as you are not leaving
> any files via excludes in the directory to move.
> 
> Stefan
> 
> --
> To unsubscribe, e-mail:   
> <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:ant-user-help@jakarta.apache.org>
> 

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