From a7b657bd9ae901100575a7434347e3d26090ec8f Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Sat, 3 Feb 2001 14:23:47 +0000 Subject: [PATCH] Add in any jars in lib/optional when doing a build. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268567 13f79535-47bb-0310-9956-ffa450edef68 --- build.bat | 5 ++++- build.sh | 13 ++++++++++++- build.xml | 3 +-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/build.bat b/build.bat index 220fdceb9..98d535705 100755 --- a/build.bat +++ b/build.bat @@ -7,7 +7,10 @@ if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap call bootstrap.bat :runAnt -set CLASSPATH=bootstrap\lib\ant.jar;lib\parser.jar;lib\jaxp.jar;%CLASSPATH% +set LOCALCLASSPATH=lib\parser.jar;lib\jaxp.jar +for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat "%%i" +set CLASSPATH=%LOCALCLASSPATH%;%CLASSPATH% + if not "%REAL_ANT_HOME%" == "" goto install_ant call bootstrap\bin\ant.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 goto cleanup diff --git a/build.sh b/build.sh index b8284b272..9e1725786 100755 --- a/build.sh +++ b/build.sh @@ -8,9 +8,20 @@ if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/ /bin/sh ./bootstrap.sh fi -CLASSPATH=$CLASSPATH:lib/parser.jar:lib/jaxp.jar +LOCALCLASSPATH=lib/parser.jar:lib/jaxp.jar +# add in the dependency .jar files +DIRLIBS=lib/optional/*.jar +for i in ${DIRLIBS} +do + if [ "$i" != "${DIRLIBS}" ] ; then + LOCALCLASSPATH=$LOCALCLASSPATH:"$i" + fi +done + +CLASSPATH=$LOCALCLASSPATH:$CLASSPATH export CLASSPATH + if [ "$REALANTHOME" != "" ] ; then ANT_INSTALL="-Dant.install=$REALANTHOME" fi diff --git a/build.xml b/build.xml index 61385c154..4ff5ee6bd 100644 --- a/build.xml +++ b/build.xml @@ -429,9 +429,8 @@ Cleans up build and distribution directories =================================================================== --> - + -