[ http://jira.codehaus.org/browse/MCLEAN-4?page=all ]
     
John Casey closed MCLEAN-4:
---------------------------

    Resolution: Fixed

added "followSymLinks" flag. Also added detection of symbolic links, and 
behavior which will either traverse the symlink while deleting, or else simply 
delete the link, depending on the value of the followSymLinks flag. The default 
value is *false*.

> does not handle symbolic links correctly
> ----------------------------------------
>
>          Key: MCLEAN-4
>          URL: http://jira.codehaus.org/browse/MCLEAN-4
>      Project: Maven 2.x Clean Plugin
>         Type: Bug

>     Reporter: John Casey
>     Assignee: John Casey
>     Priority: Blocker
>      Fix For: 2.0.1

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to