[ 
https://issues.apache.org/jira/browse/MASSEMBLY-776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elliotte Rusty Harold updated MASSEMBLY-776:
--------------------------------------------
    Description: 
Using an absolute path that starts with either forward or backward slash is not 
accepted.
It happens because Java's File.isAbsolute() does not recognize paths starting 
at either forward or backward as absolute paths on Windows. However, those 
prefixes are acceptable on Windows.
This function is used at 
main/java/org/apache/maven/plugin/assembly/archive/phase/FileItemAssemblyPhase.java,
 line 76 to know if the source is either absolute or relative.

  was:
Using an absolute path that starts with either forward or backward slash is not 
accepted.
It happens because of Java's File.isAbsolute(), which does not recognize paths 
starting at either forward or backward as absolute paths on Windows. However, 
those prefixes are acceptable on Windows.
This function is used at 
main/java/org/apache/maven/plugin/assembly/archive/phase/FileItemAssemblyPhase.java,
 line 76 to know if the source is either absolute or relative.


> File's source does not take some cases of absolute paths as absolute paths.
> ---------------------------------------------------------------------------
>
>                 Key: MASSEMBLY-776
>                 URL: https://issues.apache.org/jira/browse/MASSEMBLY-776
>             Project: Maven Assembly Plugin
>          Issue Type: Bug
>          Components: component descriptor
>    Affects Versions: 2.5.5
>         Environment: Windows
>            Reporter: Vinicius Dantas
>            Priority: Minor
>              Labels: easyfix, java.io.File
>
> Using an absolute path that starts with either forward or backward slash is 
> not accepted.
> It happens because Java's File.isAbsolute() does not recognize paths starting 
> at either forward or backward as absolute paths on Windows. However, those 
> prefixes are acceptable on Windows.
> This function is used at 
> main/java/org/apache/maven/plugin/assembly/archive/phase/FileItemAssemblyPhase.java,
>  line 76 to know if the source is either absolute or relative.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to