Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17709

Quoted system property is passed through with quotes included in Maven task

XMLWordPrintable

      Summary

      Running mvn task with goal below, sets the system property with quotes:

      -Dincludes="au.*,au.com.*"

      Running a script task with the following inline commands, sets the system property without quotes:

       /usr/share/maven/bin/mvn --batch-mode -X -Djava.io.tmpdir=/opt/atlassian/bamboo/temp/TEST-CLON-JOB1 clean package -Dincludes="au.*,au.com.*"

      Expected Results

      Consistency between the script task and the Maven task

      Actual Results

      When running maven with -X from Maven task:

      build	29-Jun-2016 15:50:56	[DEBUG] Setting system property [includes]=["au.*,au.com.*"]
      

      When running maven with -X from Script task:

      build	29-Jun-2016 15:51:03	[DEBUG] Setting system property [includes]=[au.*,au.com.*]
      

      Workaround

      Remove quotes from the system property in the Maven task goals.

              Unassigned Unassigned
              jowen@atlassian.com Jeremy Owen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: