Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 14416 invoked from network); 13 Jan 2003 04:49:29 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 13 Jan 2003 04:49:29 -0000 Received: (qmail 2803 invoked by uid 97); 13 Jan 2003 04:50:56 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 2766 invoked by uid 97); 13 Jan 2003 04:50:55 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 2752 invoked by uid 50); 13 Jan 2003 04:50:54 -0000 Date: 13 Jan 2003 04:50:54 -0000 Message-ID: <20030113045054.2751.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 16010] New: - Distributed ant bash script references classes.zip - not present in IBM JDK1.4 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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: ant-dev@jakarta.apache.org ReportedBy: dan_tropp@yahoo.com.au 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: For additional commands, e-mail: