Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Labels:
      None
    • Environment:
      Windows XP

      Description

      See http://www.nabble.com/forum/ViewPost.jtp?post=7753417&framed=y&skin=177

      The problem is that IdeUtils.toRelativeAndFixSeparator attempts to canonicalise relative paths.
      This will cause the result to be based on the current directory of the processor and not the project basedir as intended.
      This causes the build to fail with canonicalisation errors.

      I have supplied a patch against r485327 which includes extra test cases and all test cases pass.

      I have also:

      • removed the project
      • removed use of assertTrue and converted to assertEquals (tests were succeeding when they should not have because the check was on the trailing path not the entire path)
      • removed MavenProject from extractResourceDirs (it was never used)

      Some other comments:
      baseDir and projectBaseDir seem to be used but I can not see any use cases where these two are not the same value. Shouldn't the pom file always be located at the top of the eclipse project workspace? The similar names and mostly the same value caused me trouble in understanding the system. If they could get removed it would make things easier.

        Activity

        Barrie Treloar created issue -
        Barrie Treloar made changes -
        Field Original Value New Value
        Attachment MECLIPSE-206-patch.txt [ 24557 ]
        Arnaud HERITIER made changes -
        Component/s Workspace settings [ 13075 ]
        Barrie Treloar made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Barrie Treloar [ baerrach ]
        Fix Version/s 2.6 [ 14163 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 10:00:37 UTC 2015 [ 1428228037919 ]
        Mark Thomas made changes -
        Workflow jira [ 12720619 ] Default workflow, editable Closed status [ 12750841 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 23:47:18 UTC 2015 [ 1428277638729 ]
        Mark Thomas made changes -
        Workflow jira [ 12958086 ] Default workflow, editable Closed status [ 12994976 ]

          People

          • Assignee:
            Barrie Treloar
            Reporter:
            Barrie Treloar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development