Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-723

JavaTestFilter is unable to parse paths containing %2F

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.24
    • 1.5
    • None
    • None

    Description

      When the current working dir path contains special chars used for URL encoding like "%2F" then buildr test fails with

      gfiedler:~/workspace/foo%2Fbar> buildr test
      (in /home/gfiedler/workspace/foo%2Fbar, development)
      JavaTestFilter: Unable to load class dependency.InvocationTargetFieldMock to determine testing ability
      ClassNotFoundException: dependency.InvocationTargetFieldMock
      Buildr aborted!
      RuntimeError : java.lang.ClassNotFoundException: dependency.InvocationTargetFieldMock

      A fix would be to replace file.toURL() by file.toURI().toURL() in JavaTestFilter.java.

      Attachments

        Activity

          People

            toulmean Antoine Toulme
            gfiedler Gerald Fiedler
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: