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

Anders Hammar updated MRPM-91:
------------------------------

    Assignee:     (was: Brett Okken)
    
> Absolute Windows / Cygwin paths do not work anymore since SVN version 11965
> ---------------------------------------------------------------------------
>
>                 Key: MRPM-91
>                 URL: https://jira.codehaus.org/browse/MRPM-91
>             Project: Mojo RPM Plugin
>          Issue Type: Bug
>          Components: rpm
>    Affects Versions: 2.1-alpha-1
>            Reporter: Vianney Carel
>
> Absolute Windows / Cygwin paths do not work anymore in 
> [<configuration><mapping><sources><source>]<location> tags since 2.1-alpha1 
> (SVN #11965) :
> I believe this is caused by the following change in {{FileHelper.java}}:
> {code} 
> final File locationFile =
>     macroEvaluatedLocation.startsWith( "/" ) ? new File( 
> macroEvaluatedLocation )
>                     : new File( mojo.project.getBasedir(), 
> macroEvaluatedLocation );
> {code} 
> ...instead of before:
> {code} 
> File location = src.getLocation();
> {code} 
> I suggest to use there {{File.isAbsolute()}} to check whether a pathname is 
> absolute or not.
> By the way, the exception is confusing, showing a correct pathname 
> (macroEvaluatedLocation) instead of showing the real path used...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to