maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl-Heinz Marbaise (JIRA)" <j...@codehaus.org>
Subject [jira] (MCLEAN-58) Maven Clean Plugin ignores followSymLinks parameter on Windows
Date Thu, 25 Sep 2014 20:52:10 GMT

     [ https://jira.codehaus.org/browse/MCLEAN-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Karl-Heinz Marbaise updated MCLEAN-58:
--------------------------------------

    Fix Version/s: more-investigation

> Maven Clean Plugin ignores followSymLinks parameter on Windows
> --------------------------------------------------------------
>
>                 Key: MCLEAN-58
>                 URL: https://jira.codehaus.org/browse/MCLEAN-58
>             Project: Maven Clean Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Sergei Makarov
>             Fix For: more-investigation
>
>         Attachments: MavenCleanPluginNoFollowSymlinkBug.zip
>
>
> Most of old java software use getCanonicalFile() to determine symlink. But it is lie
for windows. Lets look to org.apache.maven.plugin.clean.Cleaner:
> 147	                File canonical = followSymlinks ? file : file.getCanonicalFile();
> 148	                if ( followSymlinks || file.equals( canonical ) )
> getCanonicalFile() returns same path and folow symlink. In attached MavenCleanPluginNoFollowSymlinkBug.zip
you found TestCase.bat that shows bug (just read it to understand than run). Unfortunately
I know only one way to fix this - move to NIO that has isSymbolicLink() since java 1.7.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message