Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3
-
None
-
Windows XP, jdk 1.5.0_11-b03, maven 2.0.5
-
Patch
Description
.classpath file is generated with incomplete path for classpathentry when kind is "var".
Example:
<classpathentry kind="var" path="M2_REPO/gnl/ognl/2.6.9/ognl-2.6.9.jar"/>
when <classpathentry kind="var" path="M2_REPO/ognl/ognl/2.6.9/ognl-2.6.9.jar"/> is expected.
It's caused by IdeUtils.toRelativeAndFixSeparator when basepath is not equal absolutepath. Code on line 99 shifts the string 1 character to the right, corrupting the result path.