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=16010>. 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=16010 Distributed ant bash script references classes.zip - not present in IBM JDK1.4 Summary: Distributed ant bash script references classes.zip - not present in IBM JDK1.4 Product: Ant Version: 1.5.1 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: Wrapper scripts AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] On line 143 the script tries to include classes.zip into the java classpath: if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip" But for IBM's 1.4 SDK there is no such file. Perhaps this is also the case with Sun's 1.4? Instead there are a selection of jar files in jre/lib, including core.jar I have modofied my script as follows, but perhaps there is a better more general change that can be distributed with the script in future. if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip" else # JDK1.4 has a number of jars instead of classes.zip for i in "${JAVA_HOME}"/jre/lib/*.jar do # if the directory is empty, then it will return the input string # this is stupid, so case for it if [ -f "$i" ] ; then LOCALCLASSPATH="$i":"$LOCALCLASSPATH" fi done fi -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
