Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-1346

In unit tests Util.executeShellCommand relies on java commands being in the path and does not consider JAVA_HOME

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0, 0.7.0
    • 0.6.0, 0.7.0
    • None
    • None
    • Reviewed

    Description

      Util.executeShellCommand is currently used in unit tests to execute java related binaries like "java", "javac", "jar" - this method should check if JAVA_HOME is set and use $JAVA_HOME/bin/java etc. If JAVA_HOME is not set, the method can try and execute the command as-is.

      Attachments

        1. PIG-1346.patch
          4 kB
          Pradeep Kamath
        2. PIG-1346-2.patch
          4 kB
          Pradeep Kamath

        Activity

          People

            pkamath Pradeep Kamath
            pkamath Pradeep Kamath
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: