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=13417>. 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=13417 ant shell script skips uppercase JAR files in CLASSPATH Summary: ant shell script skips uppercase JAR files in CLASSPATH Product: Ant Version: 1.5.1 Platform: PC OS/Version: Windows 9x Status: NEW Severity: Normal Priority: Other Component: Wrapper scripts AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The ".jar" set that is produced in the line: for i in "${ANT_LIB}"/*.jar will skip .JAR files (uppercase .JAR). This happened in my case in Windows under Cygwin (this was strange because the file names in "ls" appear in lower-case from the Cygwin shell, yet when doing "ls" within the script they their names appeared in uppercase (??)) The following fixes this problem in Windows platforms under Cygwin: for i in "${ANT_LIB}"/*.jar "${ANT_LIB}"/*.JAR # I added the last .JAR because the initial set did not include # any uppercase .jar files do # if the directory is empty, then it will return the input string # this is stupid, so case for it if [ "$i" != "${ANT_LIB}/*.jar" -a "$i" != "${ANT_LIB}/*.JAR" ] ; then if [ -z "$LOCALCLASSPATH" ] ; then LOCALCLASSPATH=$i else LOCALCLASSPATH="$i":"$LOCALCLASSPATH" fi fi done ---------------------------------------------------------------------- Another problem with the script is unrelated to the "jar" case: In lines 71 - 84 ANT_LIB is set before ANT_HOME for Cygwin is computed. The statements # set ANT_LIB location ANT_LIB=${ANT_HOME}/lib should go after # For Cygwin, ensure paths are in UNIX format before anything is touched if $cygwin ; then [ -n "$ANT_HOME" ] && .........snip fi -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
