[jira] Issue Comment Edited: (MRELEASE-536) CommonBasedir Calculation fails on windows

2010-07-29 Thread Brett Porter (JIRA)

[ 
http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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

2010-07-27 Thread Francis De Brabandere (JIRA)

[ 
http://jira.codehaus.org/browse/MRELEASE-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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