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

java command: escape classpath entries in the pathing jar manifest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4.25
    • 1.4.25
    • Compilers
    • None
    • Windows

    Description

      Hi,

      I noticed that the java command fails when using long classpaths on windows, while the classpath also has entries that contain spaces.

      The issue is that the manifest in the pathing jar uses space as a separator between classpath entries, and entries aren't URI-encoded. A classpath entry with a space in it is incorrectly treated as 2 entries.

      I created a PR on Github (https://github.com/apache/buildr/pull/29). It is for an older revision, as we use buildr 1.4 internally. It should be easy enough to merge though, as it's a one-liner fix.

      Attachments

        Issue Links

          Activity

            People

              pdonald Peter Donald
              croes Glenn Croes
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: