![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
1.3 |
|
Assignee:
|
Unassigned |
|
Created:
|
01/Jan/13 1:13 AM
|
|
Description:
|
In the generated bash script, if JAVA_HOME and JAVA_VERSION are not set, their default value expanded as "/System/Library/Framework/JavaVM.framework/Versions/CurrentJDK/Home".
But in my system, that directory does not exist, so the script will complain to me, "Error: JAVA_HOME is not defined correctly."
Relying on the hard coded JAVA_HOME to "/System/..." is not good IMHO.
Better solution for darwin would be:
replace the following paragraph in the generated script,
if [ -z "$JAVA_HOME" ]; then
JAVA_HOME="/System/..."
fi
to
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
JAVA_HOME=`/usr/libexec/java_home`
else
JAVA_HOME="/System/..." # as usual
fi
fi
will solve the problem.
Thanks.
|
|
Environment:
|
darwin (mountain lion)
|
|
Project:
|
Mojo AppAssembler Plugin
|
|
Priority:
|
Major
|
|
Reporter:
|
Seong-Kook Shin
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email