diff --git a/appendcp.bat b/appendcp.bat new file mode 100644 index 000000000..128ae8774 --- /dev/null +++ b/appendcp.bat @@ -0,0 +1,2 @@ +set CLASSPATH=%CLASSPATH%;%1 + diff --git a/build.bat b/build.bat index 3a2c9ef8d..286904744 100755 --- a/build.bat +++ b/build.bat @@ -4,10 +4,10 @@ set OLD_ANT_HOME=%ANT_HOME% set ANT_HOME=tools\ant set OLD_CLASSPATH=%CLASSPATH% -set CLASSPATH=tools\centipede\lib\xml-apis.jar;tools\centipede\lib\xerces.jar;tools\centipede\lib\xalan.jar;tools\centipede\lib\junit.jar;tools\centipede\lib\jIzPress.jar;tools\centipede\lib\jtidy.jar +for %%i in (.\lib\endorsed\*.jar) do call appendcp.bat %%i +for %%i in (.\tools\centipede\lib\*.jar) do call appendcp.bat %%i call %ANT_HOME%\bin\ant -listener org.apache.tools.ant.XmlLogger %1 %2 %3 %4 %5 %6 %7 %8 %9 set ANT_HOME=%OLD_ANT_HOME% -set CLASSPATH=%OLD_CLASSPATH% - +set CLASSPATH=%OLD_CLASSPATH% \ No newline at end of file diff --git a/build.sh b/build.sh index 2f51797c2..0c2e19e6a 100755 --- a/build.sh +++ b/build.sh @@ -1,8 +1,23 @@ #!/bin/sh +# ----- Verify and Set Required Environment Variables ------------------------- + +if [ "$JAVA_HOME" = "" ] ; then + echo You must set JAVA_HOME to point at your Java Development Kit installation + exit 1 +fi chmod u+x ./tools/ant/bin/antRun chmod u+x ./tools/ant/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 @@ -11,7 +26,7 @@ CP=$CLASSPATH export CP unset CLASSPATH -CLASSPATH="./tools/centipede/lib/xml-apis.jar:./tools/centipede/lib/xerces.jar:./tools/centipede/lib/xalan.jar:./tools/centipede/lib/junit.jar:./tools/centipede/lib/jIzPress.jar:./tools/centipede/lib/jtidy.jar" +CLASSPATH="`echo ./lib/endorsed/*.jar | tr ' ' $S``echo ./tools/centipede/lib/*.jar | tr ' ' $S`" export CLASSPATH $PWD/./tools/ant/bin/ant -listener org.apache.tools.ant.XmlLogger $@ diff --git a/build.xml b/build.xml index d3a7d1ed6..2f8a5fcf4 100644 --- a/build.xml +++ b/build.xml @@ -32,14 +32,14 @@ - - - - - - - - + + + + + + + + ]> @@ -181,7 +181,7 @@ or &docs-target; - + diff --git a/tools/centipede/lib/xalan.jar b/lib/endorsed/xalan-2.2.0.jar similarity index 100% rename from tools/centipede/lib/xalan.jar rename to lib/endorsed/xalan-2.2.0.jar diff --git a/tools/centipede/lib/xerces.jar b/lib/endorsed/xerces-2.0.0.jar similarity index 100% rename from tools/centipede/lib/xerces.jar rename to lib/endorsed/xerces-2.0.0.jar diff --git a/tools/centipede/lib/xml-apis.jar b/lib/endorsed/xml-apis.jar similarity index 100% rename from tools/centipede/lib/xml-apis.jar rename to lib/endorsed/xml-apis.jar diff --git a/tools/centipede/lib/VERSIONS b/tools/centipede/lib/VERSIONS deleted file mode 100644 index 84611d6a3..000000000 --- a/tools/centipede/lib/VERSIONS +++ /dev/null @@ -1,3 +0,0 @@ -xalan-2.2.0.jar -xerces-2.0.0.jar -junit-3.7.jar \ No newline at end of file diff --git a/tools/centipede/lib/junit.jar b/tools/centipede/lib/junit-3.7.jar similarity index 100% rename from tools/centipede/lib/junit.jar rename to tools/centipede/lib/junit-3.7.jar diff --git a/tools/centipede/targets/preinit.xtarget b/tools/centipede/targets/preinit.xtarget index 4bee00355..a3896926c 100644 --- a/tools/centipede/targets/preinit.xtarget +++ b/tools/centipede/targets/preinit.xtarget @@ -19,12 +19,18 @@ + + + + + + @@ -34,11 +40,17 @@ + + + + + + @@ -53,6 +65,9 @@ + + +