ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <>
Subject [PATCH] Whole directory moves optimized
Date Thu, 01 Nov 2001 02:45:08 GMT

The move task, as it is now, does not optimally perform
moves of entire directories.  For example, if directory
A is to be moved to directory B, all files in directory
A are moved to directory B one by one recursively, 
thereby accomplishing the directory move.  

If the directory itself can be renamed instead of 
taking the above approach, it will greatly improve 

This patch does precisely that when 'normal' directory
moves are performed.  It operates at the fileset level.
Each fileset that has an empty 'notIncluded' file/dir 
list is treated as a candidate for a dir rename since
this means that all files in the dir has been included.
Of course, if flatten or mappers are being used, a
straight forward directory rename isn't attempted.


View raw message