moved build files to own top level directory
This commit is contained in:
parent
1bdff708b2
commit
1b98b7379f
19 changed files with 214 additions and 0 deletions
40
build/build.sh
Executable file
40
build/build.sh
Executable file
|
@ -0,0 +1,40 @@
|
|||
#!/bin/sh
|
||||
|
||||
# --------------------------------------------
|
||||
# Defualt == jar
|
||||
# "core" target builds core classes
|
||||
# "clean" target removes bin directory
|
||||
# "jar" target builds core + jar
|
||||
# "javadoc" target builds the javadoc
|
||||
# "package" target builds core + jar + javadoc + distribution
|
||||
# --------------------------------------------
|
||||
TARGET=${1}
|
||||
|
||||
#--------------------------------------------
|
||||
# No need to edit anything past here
|
||||
#--------------------------------------------
|
||||
if test -z "${JAVA_HOME}" ; then
|
||||
echo "ERROR: JAVA_HOME not found in your environment."
|
||||
echo "Please, set the JAVA_HOME variable in your environment to match the"
|
||||
echo "location of the Java Virtual Machine you want to use."
|
||||
exit
|
||||
fi
|
||||
|
||||
if test -z "${TARGET}" ; then
|
||||
TARGET=jar
|
||||
fi
|
||||
|
||||
if test -f ${JAVA_HOME}/lib/tools.jar ; then
|
||||
CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar
|
||||
fi
|
||||
|
||||
echo "Now building ${TARGET}..."
|
||||
|
||||
CP=${CLASSPATH}:ant.jar:jaxp.jar:parser.jar
|
||||
|
||||
echo "Classpath: ${CP}"
|
||||
echo "JAVA_HOME: ${JAVA_HOME}"
|
||||
|
||||
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