hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Kamath (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1346) In unit tests Util.executeShellCommand relies on java commands being in the path and does not consider JAVA_HOME
Date Thu, 01 Apr 2010 23:22:27 GMT

     [ https://issues.apache.org/jira/browse/PIG-1346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pradeep Kamath updated PIG-1346:
--------------------------------

    Attachment: PIG-1346-2.patch

The earlier patch was using System.getProperty("java.home") - apparently ant sometimes appends
"jre" to $JAVA_HOME as the value of the java.home property - this causes failures since $JAVA_HOME/jre/bin/
does not contain javac. I have changed this code to use System.getEnv("JAVA_HOME") instead.

> In unit tests Util.executeShellCommand relies on java commands being in the path and
does not consider JAVA_HOME
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-1346
>                 URL: https://issues.apache.org/jira/browse/PIG-1346
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.6.0, 0.7.0
>            Reporter: Pradeep Kamath
>            Assignee: Pradeep Kamath
>         Attachments: PIG-1346-2.patch, PIG-1346.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message