You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2006/02/14 19:23:19 UTC

[jira] Closed: (MCLEAN-4) does not handle symbolic links correctly

     [ 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org