Browse Source

Fix DIRLIBS to allow for space (iow, more quoting crud -- gack!)

(PR 5178)


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272276 13f79535-47bb-0310-9956-ffa450edef68
master
Diane Holt 23 years ago
parent
commit
f563831080
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/script/ant

+ 3
- 3
src/script/ant View File

@@ -85,12 +85,12 @@ if [ -n "$CLASSPATH" ] ; then
fi

# add in the dependency .jar files
DIRLIBS=${ANT_HOME}/lib/*.jar
for i in ${DIRLIBS}
DIRLIBS="${ANT_HOME}"/lib
for i in "${DIRLIBS}"/*.jar
do
# if the directory is empty, then it will return the input string
# this is stupid, so case for it
if [ "$i" != "${DIRLIBS}" ] ; then
if [ "$i" != "${DIRLIBS}/*.jar" ] ; then
if [ -z "$LOCALCLASSPATH" ] ; then
LOCALCLASSPATH=$i
else


Loading…
Cancel
Save