> <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:[EMAIL PROTECTED]]
> Sent: Tuesday, July 30, 2002 9:08 AM
> To: [EMAIL PROTECTED]
> Subject: Re: rename/move
>
>
> On Fri, 26 Jul 2002, Tibor Strausz <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>