Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.1
-
Labels:None
-
Number of attachments :
Description
inside removeDir(..), each file needs to be checked to see if it's a symbolic link. If so, the link should be deleted, not the referenced location. I think we can address this by adding a check similar to:
if ( !f.getCanonicalPath().startsWith( d.getCanonicalPath() ) )
{
// don't process as a subdir, just erase the file. WILL THIS WORK?
}
We should add a "followSymlinks" flag to the API in plexus FileUtils, and then give the clean mojo a parameter to control it.