Browse Source

More tweaks to the RPM specific section, submitted by Randy Watler

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276170 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
2a225a1ba2
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      src/script/ant

+ 8
- 6
src/script/ant View File

@@ -182,12 +182,14 @@ if $rpm_mode && [ -f /usr/bin/build-classpath ] ; then
# #
# if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour # if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour
# with ant-found jars first and user CLASSPATH after # with ant-found jars first and user CLASSPATH after
if [ -n "$CLASSPATH" -a -n "$CLASSPATH_OVERRIDE" ] ; then
# prepend local class path with class path override
if [ -z "$LOCALCLASSPATH" ] ; then
LOCALCLASSPATH="$CLASSPATH"
else
LOCALCLASSPATH="$CLASSPATH:$LOCALCLASSPATH"
if [ -n "$CLASSPATH" ] ; then
# merge local and specified classpath
if [ -z "$LOCALCLASSPATH" ] ; then
LOCALCLASSPATH="$CLASSPATH"
elif [ -n "$CLASSPATH_OVERRIDE" ] ; then
LOCALCLASSPATH="$CLASSPATH:$LOCALCLASSPATH"
else
LOCALCLASSPATH="$LOCALCLASSPATH:$CLASSPATH"
fi fi


# remove class path from launcher -lib option # remove class path from launcher -lib option


Loading…
Cancel
Save