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

System Environment Variable Parsing Error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 2.1.2
    • Builds
    • None

    Description

      Consider the following string:

      MAVEN_OPTS="-Xmx1280m -XX:MaxPermSize=512m" JAVA_HOME="/opt/java/jre/1.5" 

      the splitEnvironments() method in the Command Class tries to be smart an not split on space within the quotes. However, it greedily matches for quotes so it will pick up:
      "-Xmx1280m -XX:MaxPermSize=512m" JAVA_HOME="/opt/java/jre/1.5"
      as the quoted string and not split spaces rather than:
      "-Xmx1280m -XX:MaxPermSize=512m"

      So the above string wont get split into its two properties, and the build dies...

      Attachments

        Issue Links

          Activity

            People

              kbrazulewicz Krystian Brazulewicz
              bmccoy bmccoy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: