diff options
-rwxr-xr-x | build.bat | 5 | ||||
-rwxr-xr-x | build.sh | 7 |
2 files changed, 4 insertions, 8 deletions
@@ -7,10 +7,7 @@ if "%JAVA_HOME%" == "" goto error set LIBDIR=lib set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\classes.zip -set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\ant.jar -set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar -set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar -set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar +for %%j in ( %LIBDIR%\*.jar ) do set LOCALCLASSPATH=%LOCALCLASSPATH%;%%j set ANT_HOME=%LIBDIR% @@ -79,10 +79,9 @@ fi LIBDIR=lib LOCALCLASSPATH="$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip" -LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/ant.jar" -LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/xml-apis.jar" -LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/xercesImpl-2.2.1.jar" -LOCALCLASSPATH="$LOCALCLASSPATH:$LIBDIR/xalan-2.4.1.jar" +for jar in $LIBDIR/*.jar; do + LOCALCLASSPATH="$LOCALCLASSPATH:$jar" +done ANT_HOME="$LIBDIR" # antRun must be executable (can't do this in build.xml because Ant uses antRun |