1.1 --- a/tools/JavaServlet/NOTES.txt Sat Oct 13 19:39:28 2007 +0000
1.2 +++ b/tools/JavaServlet/NOTES.txt Sat Oct 13 19:39:57 2007 +0000
1.3 @@ -1,7 +1,5 @@
1.4 -Before running build.py, compile the special PyServlet classes:
1.5 -
1.6 -CLASSPATH=$CATALINA_HOME/common/lib/servlet.jar:$JYTHON_HOME/jython.jar \
1.7 - javac classes/uk/org/boddie/webstack/util/PyServlet.java
1.8 +Before running webstack_java_build.py, compile the special PyServlet classes
1.9 +using the compile.sh script provided.
1.10
1.11 Any supplied classes will have been produced by compiling the given source code
1.12 against libraries provided with the stated tested framework (see the main
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/tools/JavaServlet/compile.sh Sat Oct 13 19:39:57 2007 +0000
2.3 @@ -0,0 +1,23 @@
2.4 +#!/bin/bash
2.5 +
2.6 +if [[ $JYTHON_LIB == "" ]]; then
2.7 + echo "Please set JYTHON_LIB to refer to the Jython .jar file."
2.8 + echo
2.9 + echo "For example:"
2.10 + echo
2.11 + echo "JYTHON_LIB=/usr/share/jython/jython.jar $0"
2.12 + exit 1
2.13 +fi
2.14 +
2.15 +if [[ $SERVLET_LIB == "" ]]; then
2.16 + echo "Please set SERVLET_LIB to refer to the servlet library .jar file."
2.17 + echo
2.18 + echo "For example:"
2.19 + echo
2.20 + echo "SERVLET_LIB=/usr/share/java/servlet-api.jar $0"
2.21 + echo "SERVLET_LIB=\$CATALINA_HOME/common/lib/servlet.jar $0"
2.22 + exit 1
2.23 +fi
2.24 +
2.25 +CLASSPATH=$SERVLET_LIB:$JYTHON_LIB \
2.26 + javac `dirname $0`/classes/uk/org/boddie/webstack/util/PyServlet.java