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.
This commit is contained in:
parent
dc741f2231
commit
21c00908c1
3 changed files with 61 additions and 36 deletions
|
@ -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}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue