Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-261

IdeUtils.toRelativeAndFixSeparator returns incomplete path

    XMLWordPrintableJSON

Details

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

      Attachments

        1. .classpath
          4 kB
          Marcio Paulo Guedes
        2. pom.xml
          5 kB
          Marcio Paulo Guedes
        3. patch.txt
          0.9 kB
          Marcio Paulo Guedes
        4. baseDirIsRoot.patch
          1 kB
          Marcio Paulo Guedes
        5. EclipseClasspathWriter.java
          18 kB
          Richard Burton
        6. IdeUtils.java
          14 kB
          Richard Burton
        7. EclipsePlugin-2.4.zip
          116 kB
          Richard Burton

        Activity

          People

            aheritier Arnaud Heritier
            mpguedes Marcio Paulo Guedes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: