[ 
https://issues.apache.org/jira/browse/MNG-6048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338816#comment-15338816
 ] 

Markus Karg commented on MNG-6048:
----------------------------------

Fix available at https://github.com/apache/maven-shared/pull/12

> Maven-Shared: Java7Support silently fails overwriting symlinks
> --------------------------------------------------------------
>
>                 Key: MNG-6048
>                 URL: https://issues.apache.org/jira/browse/MNG-6048
>             Project: Maven
>          Issue Type: Bug
>          Components: Errors
>            Reporter: Markus Karg
>            Priority: Critical
>
> When A is an existing symlink to B, then createSymbolicLink(A,C) does
> neither overwrite A->B by A->C (as expected in analogy to the behavior
> of copy(A,C)) nor does it throw an exception nor does it return A->B to
> indicate the failure, but it actually "silently fails", i. e. it returns
> A->C!
> This certainly is heavily problematic, unsymmetric to what
> copy(File,File) and Files.createSymbolicLink(Path,Path) do, and
> certainly unwanted and buggy behavior.
> The solution is to delete any existing target before creating the
> symlic, hence copying the behavior of copy(File,File).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to