For anyone using cygwin on Windows 9x/NT/2K, here's a "build-turbine.cygwin"
shell script that does work at least for me.

===== cut here ====
#!/bin/sh

# -----------------------------------------------------------
# The targets are the different build scripts.
# The default "jar" is suggested
# and does not require any external packages
#
# "compile"           target builds Turbine core classes
# "clean"          target #oves bin directory
# "jar"           target builds "core" + jar file
# "javadoc"        target builds the javadoc
# -----------------------------------------------------------
TARGET=${1}
# TARGET=javadoc
# TARGET=compile
# TARGET=clean
# TARGET=jar

#-------------------------------------------------------------------
# Define the paths to each of the packages
#-------------------------------------------------------------------
JAVAMAIL=../lib/mail-1.1.3.jar
JAF=../lib/activation-1.0.1.jar
NAMING=../lib/jndi-1.2.1.jar
VILLAGE=../lib/village-1.1.jar
ECS=../lib/ecs-1.3.jar
XERCES=../lib/xerces-1.0.3.jar

WEBMACRO=../lib/webmacro-jdk1.2.jar
#WEBMACRO=../lib/webmacro-jdk1.1.jar
FREEMARKER=../lib/freemarker-jdk1.2.jar
#FREEMARKER=../lib/freemarker-jdk1.1.jar

JSDK=/classes/JSDK2.0/lib/jsdk.jar

#--------------------------------------------
# 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};xml.jar;ant.jar;${XERCES};${JSDK};${JAVAMAIL};${JAF};${VILL
AGE};${ECS};${WEBMACRO};${FREEMARKER};${NAMING}"

BUILDFILE=build-turbine.xml

${JAVA_HOME}/bin/java -classpath ${CP} org.apache.tools.ant.Main -buildfile
${BUILDFILE} ${TARGET}



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to