You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by an...@apache.org on 2004/03/04 08:33:07 UTC
cvs commit: cocoon-2.1 build.sh
antonio 2004/03/03 23:33:07
Modified: . build.sh
Log:
Don't copy endorsed jars to lib/tools
Revision Changes Path
1.4 +19 -11 cocoon-2.1/build.sh
Index: build.sh
===================================================================
RCS file: /home/cvs//cocoon-2.1/build.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- build.sh 30 Apr 2003 14:11:56 -0000 1.3
+++ build.sh 4 Mar 2004 07:33:07 -0000 1.4
@@ -1,26 +1,34 @@
#!/bin/sh
-echo
-echo "Apache Cocoon Build System"
-echo "--------------------------"
-
-cp ./lib/*/xalan*.jar ./tools/lib
-cp ./lib/*/xerces*.jar ./tools/lib
-cp ./lib/*/xml-api*.jar ./tools/lib
-
chmod u+x ./tools/bin/antRun
chmod u+x ./tools/bin/ant
+# ----- Verify and Set Required Environment Variables -------------------------
+
+if [ "$TERM" = "cygwin" ] ; then
+ S=';'
+else
+ S=':'
+fi
+
+# ----- Set Up The Runtime Classpath ------------------------------------------
+
+OLD_ANT_HOME="$ANT_HOME"
unset ANT_HOME
CP=$CLASSPATH
export CP
unset CLASSPATH
-ANT_OPTS=-Djava.endorsed.dirs=lib/endorsed
-export ANT_OPTS
+CLASSPATH="`echo ./lib/endorsed/*.jar | tr ' ' $S`"
+export CLASSPATH
+
+echo Using classpath: \"$CLASSPATH\"
+"$PWD/tools/bin/ant" -logger org.apache.tools.ant.NoBannerLogger -emacs $@
-$PWD/tools/bin/ant -logger org.apache.tools.ant.NoBannerLogger -emacs $@
+unset CLASSPATH
CLASSPATH=$CP
export CLASSPATH
+ANT_HOME=OLD_ANT_HOME
+export ANT_HOME