ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16010] New: - Distributed ant bash script references classes.zip - not present in IBM JDK1.4
Date Mon, 13 Jan 2003 04:50:54 GMT
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: 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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message