You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matthias Vach (JIRA)" <ji...@codehaus.org> on 2010/03/29 11:55:23 UTC
[jira] Created: (MRELEASE-536) CommonBasedir Calculation fails on
windows
CommonBasedir Calculation fails on windows
------------------------------------------
Key: MRELEASE-536
URL: http://jira.codehaus.org/browse/MRELEASE-536
Project: Maven 2.x Release Plugin
Issue Type: Bug
Components: prepare
Affects Versions: 2.0
Reporter: Matthias Vach
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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MRELEASE-536:
----------------------------------
Fix Version/s: 2.1
patch to review
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Jan Sievers (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230293#action_230293 ]
Jan Sievers commented on MRELEASE-536:
--------------------------------------
no this is different I think.
It's about non-case sensitive file name compare on windows platforms, i.e.
c:\TMP\foo.txt and
c:\tmp\Foo.txt
denote the same file on windows but the case sensitive String comparison fails to find the common basedir.
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Anders Hammar (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=246868#action_246868 ]
Anders Hammar commented on MRELEASE-536:
----------------------------------------
This fix causes regression for clearcase on Windows. See MRELEASE-622.
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Francis De Brabandere (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229990#action_229990 ]
Francis De Brabandere commented on MRELEASE-536:
------------------------------------------------
A workaround is to revert to the 2.0-beta-9 maven-release-plugin.
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Lars Corneliussen (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219984#action_219984 ]
Lars Corneliussen commented on MRELEASE-536:
--------------------------------------------
the patch breaks some tests
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Francis De Brabandere (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230329#action_230329 ]
Francis De Brabandere commented on MRELEASE-536:
------------------------------------------------
here is a stacktrace:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at org.apache.maven.shared.release.util.ReleaseUtil.getCommonBasedir(ReleaseUtil.java:206)
at org.apache.maven.shared.release.util.ReleaseUtil.getCommonBasedir(ReleaseUtil.java:177)
at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transformDocument(AbstractRewritePomsPhase.java:303)
at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transformProject(AbstractRewritePomsPhase.java:208)
at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.transform(AbstractRewritePomsPhase.java:114)
at org.apache.maven.shared.release.phase.AbstractRewritePomsPhase.execute(AbstractRewritePomsPhase.java:97)
at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:203)
at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:140)
at org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:103)
at org.apache.maven.plugins.release.PrepareReleaseMojo.prepareRelease(PrepareReleaseMojo.java:211)
at org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:181)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236928#action_236928 ]
Brett Porter commented on MRELEASE-536:
---------------------------------------
I think I'm seeing the same test failures on windows after applying the patch that Lars mentioned. Revising.
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Francis De Brabandere (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229988#action_229988 ]
Francis De Brabandere commented on MRELEASE-536:
------------------------------------------------
Might be a good idea to catch this -1 string index and throwing a proper exception indicating what goes wrong by showing both paths
we have this problem with subversion-based projects being released in apache hudson
[INFO] Working directory: c:\hudson\workspace\...\trunk
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Ricky Clarkson (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219839#action_219839 ]
Ricky Clarkson commented on MRELEASE-536:
-----------------------------------------
I found that the problem was triggered by msysgit (mingw) setting the current working directory to c:\foo rather than C:\foo, and that launching mvn from cmd instead of msysgit made the problem disappear. That said, if your patch solves it, great stuff.
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRELEASE-536) CommonBasedir Calculation fails on windows
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=311760#comment-311760 ]
Brett Porter commented on MRELEASE-536:
---------------------------------------
Jose, the release notes for previous versions get locked down - it'd be best to file a new bug referring to this, with any additional information you can give to help replicate it with 2.3.2
> 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
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Lars Corneliussen (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219861#action_219861 ]
Lars Corneliussen commented on MRELEASE-536:
--------------------------------------------
Go the same problem. Hudson home dir was with capital drive letter... Still it is a bug, IMHO. Maybe CanonicalPath should be used all over... but then alot tests have to be refactored as well.
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MRELEASE-536.
---------------------------------
Resolution: Fixed
Assignee: Brett Porter
Corrected getBaseWorkingDirectoryParentCount as well
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (MRELEASE-536) CommonBasedir
Calculation fails on windows
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230264#action_230264 ]
Brett Porter edited comment on MRELEASE-536 at 7/29/10 6:18 PM:
----------------------------------------------------------------
is this the same as MRELEASE-546?
was (Author: brettporter):
is this the same as MRELEASE-582?
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (MRELEASE-536) CommonBasedir
Calculation fails on windows
Posted by "Francis De Brabandere (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229988#action_229988 ]
Francis De Brabandere edited comment on MRELEASE-536 at 7/27/10 11:32 AM:
--------------------------------------------------------------------------
Might be a good idea to catch this -1 string index and throwing a proper exception indicating what goes wrong by showing both paths
we have this problem with subversion-based projects being released in hudson
[INFO] Working directory: c:\hudson\workspace\...\trunk
was (Author: francisdb):
Might be a good idea to catch this -1 string index and throwing a proper exception indicating what goes wrong by showing both paths
we have this problem with subversion-based projects being released in apache hudson
[INFO] Working directory: c:\hudson\workspace\...\trunk
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MRELEASE-536) CommonBasedir Calculation fails on
windows
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=230264#action_230264 ]
Brett Porter commented on MRELEASE-536:
---------------------------------------
is this the same as MRELEASE-582?
> CommonBasedir Calculation fails on windows
> ------------------------------------------
>
> Key: MRELEASE-536
> URL: http://jira.codehaus.org/browse/MRELEASE-536
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Components: prepare
> Affects Versions: 2.0
> Reporter: Matthias Vach
> 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 contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MRELEASE-536) CommonBasedir Calculation fails on windows
Posted by "Jose Rodolfo Freitas (JIRA)" <ji...@codehaus.org>.
[ 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