maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Rodolfo Freitas (JIRA)" <j...@codehaus.org>
Subject [jira] (MRELEASE-536) CommonBasedir Calculation fails on windows
Date Mon, 15 Oct 2012 12:53:36 GMT

    [ https://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311495#comment-311495
] 

Jose Rodolfo Freitas commented on MRELEASE-536:
-----------------------------------------------

Hey Guys, 
I'm on 2.3.2 version of the release plugin and I have this exact error. I suspect that the
exception is thrown by the same cause. 
Is this a zombie bug?

                
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
>                 Key: MRELEASE-536
>                 URL: https://jira.codehaus.org/browse/MRELEASE-536
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.0
>            Reporter: Matthias Vach
>            Assignee: Brett Porter
>             Fix For: 2.1
>
>         Attachments: patchfile.patch
>
>
> The method getCommonBasedir in class org.apache.maven.shared.release.util.ReleaseUtil
runs into the Exception:\\
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> ... while comparing pathes with small and capital lettes for Windows drives.
> e.g.: C:\WoRkInG\root\project1 has no common base dir with c:\working\root\project2\\
but it should have c:\working\root as common base directory.
> A patch and a test for that bug is attached.
> I do have the problem with version 2.0 but I fixed it in trunk for now
> Regards Matthias

--
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

        

Mime
View raw message