Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7131

maven.config doesn't handle arguments with spaces in them

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6.3
    • 4.0.0-alpha-1, 4.0.0
    • Command Line
    • None

    Description

      I tried putting a path with a space in the maven.config like so:

      "-Dmy.path=/some/path with/a/space"
      

      When asking for the my.path property inside Maven, I get the path with a trailing quote

      /some/path with/a/space"
      

      The file is parsed by splitting it by whitespace. I suggest replacing that code with the much better CommandLineUtils.translateCommandline(argLine)

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              oehme Stefan Oehme
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: