From 21c00908c1c67b660fd1f9035cf7aa77c6b11e39 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 22 Oct 2001 16:43:40 +0000 Subject: [PATCH] Updated build scripts. CVS checkout is now separated from builds. It's possible to use the script both for building both the jar file and the whole distribution either from checked-out code or the local copy. --- build/build.bat | 8 +++--- build/build.sh | 15 ++++++---- build/build.xml | 74 ++++++++++++++++++++++++++++++++----------------- 3 files changed, 61 insertions(+), 36 deletions(-) diff --git a/build/build.bat b/build/build.bat index a600d5d6..36fa92e3 100644 --- a/build/build.bat +++ b/build/build.bat @@ -3,9 +3,9 @@ REM -------------------------------------------- REM Defualt == jar -REM "core" target builds core classes -REM "clean" target removes bin directory -REM "jar" target builds core + jar +REM "checkout" target gets sources from helma.org +REM "compile" target compiles java sources +REM "jar" target compiles and builds jar REM "javadoc" target builds the javadoc REM "package" target builds core + jar + javadoc + distribution REM -------------------------------------------- @@ -28,7 +28,7 @@ goto final if "%JAVA_HOME%" == "" goto javahomeerror if exist %JAVA_HOME%\lib\tools.jar set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar -set CP=%CLASSPATH%;ant.jar;xml.jar +set CP=%CLASSPATH%;ant.jar;jaxp.jar;crimson.jar echo Classpath: %CP% echo JAVA_HOME: %JAVA_HOME% diff --git a/build/build.sh b/build/build.sh index 7a47e109..4891d8f6 100755 --- a/build/build.sh +++ b/build/build.sh @@ -2,18 +2,20 @@ # -------------------------------------------- # Default == jar -# "core" target builds core classes -# "clean" target removes bin directory -# "jar" target builds core + jar +# "checkout" target gets sources from helma.org +# "compile" target compiles java sources +# "jar" target compiles and builds jar # "javadoc" target builds the javadoc # "package" target builds core + jar + javadoc + distribution # -------------------------------------------- TARGET=${1} +# export JAVA_HOME=/usr/lib/java + export CVSHOME=:pserver:anonymous@coletta.helma.at:/opt/cvs -cvs -d :pserver:anonymous@coletta.helma.at:/opt/cvs login -JAVA_HOME=/usr/lib/jdk1.3 +# comment this out to log in to CVS server +# cvs -d :pserver:anonymous@coletta.helma.at:/opt/cvs login #-------------------------------------------- # No need to edit anything past here @@ -35,7 +37,7 @@ fi echo "Now building ${TARGET}..." -CP=${CLASSPATH}:ant.jar:jaxp.jar:parser.jar:../lib/netcomponents.jar:jakarta-ant-1.3-optional.jar +CP=${CLASSPATH}:ant.jar:jaxp.jar:crimson.jar:../lib/netcomponents.jar echo "Classpath: ${CP}" echo "JAVA_HOME: ${JAVA_HOME}" @@ -44,3 +46,4 @@ BUILDFILE=build.xml ${JAVA_HOME}/bin/java -classpath ${CP} org.apache.tools.ant.Main -buildfile ${BUILDFILE} ${TARGET} + diff --git a/build/build.xml b/build/build.xml index b6b0d1d1..b601c6ce 100644 --- a/build/build.xml +++ b/build/build.xml @@ -14,10 +14,11 @@ - + - + + @@ -39,33 +40,42 @@ + - - - + + + + - - - - + + + + + + + + + + + - + - + + + + - + + @@ -122,15 +136,16 @@ - + - + - + + + + + + + - + + - + - - + + + - + + + @@ -201,12 +226,6 @@ - - - - - - @@ -238,3 +257,6 @@ + + +