https://bz.apache.org/bugzilla/show_bug.cgi?id=69757

            Bug ID: 69757
           Summary: Error parsing unquoted pipe delimited proxy parameters
                    in JAVA_OPTS
           Product: Ant
           Version: 1.10.14
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Unlike Maven and Gradle, Ant crashes with errors when attempting to parse
unquoted, pipe delimited proxy parameters in JAVA_OPTS.

Example:

export JAVA_OPTS='-Dhttp.proxyHost=proxy.test -Dhttp.proxyPort=8080
-Dhttps.proxyHost=proxy.test -Dhttps.proxyPort=8080
-Dhttp.nonProxyHosts=127.0.0.1|::1|localhost|*.ec2.internal|*.test
-Dhttps.nonProxyHosts=127.0.0.1|::1|localhost|*.ec2.internal|*.test'

ant package

As a workaround, I can rewrite the assignment with outer double quotes (") and
inner C-style escaped quotes (\"). Though that only works for UNIX style
shells, not PowerShell or Command Prompt.

Can we please improve ant's JAVA_OPTS parser, so that it behaves more like
Gradle and Maven?

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to