Absolute Windows / Cygwin paths do not work anymore since SVN version 11965
---------------------------------------------------------------------------
Key: MRPM-91
URL: http://jira.codehaus.org/browse/MRPM-91
Project: Mojo RPM Plugin
Issue Type: Bug
Components: rpm
Affects Versions: 2.1-alpha-1
Reporter: Vianney
Assignee: Brett Okken
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 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 from this list, please visit:
http://xircles.codehaus.org/manage_email