From c7e4024d63f27b2fd647075fa534a63eb0053b8e Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Thu, 12 Oct 2006 22:51:06 +0000 Subject: [PATCH] place the OPT_JAR_LIST in the correct place git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@463483 13f79535-47bb-0310-9956-ffa450edef68 --- src/script/ant | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/script/ant b/src/script/ant index eae54a7f2..46d054746 100644 --- a/src/script/ant +++ b/src/script/ant @@ -153,13 +153,6 @@ fi # variable if $rpm_mode && [ -f /usr/bin/build-classpath ] ; then LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)" - # If the user requested to try to add some other jars to the classpath - if [ -n "$OPT_JAR_LIST" ] ; then - _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)" - if [ -n "$_OPTCLASSPATH" ] ; then - LOCALCLASSPATH="$LOCALCLASSPATH:$_OPTCLASSPATH" - fi - fi # If no optional jars have been specified then build the default list if [ -z "$OPT_JAR_LIST" ] ; then @@ -182,6 +175,14 @@ if $rpm_mode && [ -f /usr/bin/build-classpath ] ; then done fi + # If the user requested to try to add some other jars to the classpath + if [ -n "$OPT_JAR_LIST" ] ; then + _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)" + if [ -n "$_OPTCLASSPATH" ] ; then + LOCALCLASSPATH="$LOCALCLASSPATH:$_OPTCLASSPATH" + fi + fi + # Explicitly add javac path to classpath, assume JAVA_HOME set # properly in rpm mode if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then