You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/11/01 21:16:32 UTC
DO NOT REPLY [Bug 14181] New: -
ant (shell script) does not check if JAVA_HOME is set or exported
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14181>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14181
ant (shell script) does not check if JAVA_HOME is set or exported
Summary: ant (shell script) does not check if JAVA_HOME is set or
exported
Product: Ant
Version: 1.5.1
Platform: Sun
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: rozensky@avaya.com
First attempt to use ant received an error about JAVA_HOME not being configured
correctly; after a bit of work I found that JAVA_HOME was not export'ed in
my shell-even though it was set, this still caused errors. I added the
following to the script; it is useful for our implementation:
if [ -z "$JAVA_HOME" ]; then
echo "JAVA_HOME is not set or JAVA_HOME has not been 'export'ed"
exit 1
fi
this code is added immediately after these lines:
# set ANT_LIB location
ANT_LIB="${ANT_HOME}/lib"
if [ -z "$JAVACMD" ] ; then
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>