Also - handle spaces in classpaths git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268755 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -1,4 +1,8 @@ | |||||
| Changes from Ant 1.2 to Ant 1.3 Beta 3 | |||||
| Changes from Ant 1.3 to CVS Version | |||||
| =========================================== | |||||
| Changes from Ant 1.2 to Ant 1.3 | |||||
| =========================================== | =========================================== | ||||
| Changes that could break older environments: | Changes that could break older environments: | ||||
| @@ -21,7 +21,7 @@ echo ... Bootstrapping Ant Distribution | |||||
| if "%OS%" == "Windows_NT" if exist bootstrap rmdir/s/q bootstrap | if "%OS%" == "Windows_NT" if exist bootstrap rmdir/s/q bootstrap | ||||
| if not "%OS%" == "Windows_NT" if exist bootstrap deltree/y bootstrap | if not "%OS%" == "Windows_NT" if exist bootstrap deltree/y bootstrap | ||||
| SET LOCALCLASSPATH=lib\parser.jar;lib\jaxp.jar;lib\optional\junit.jar | |||||
| SET LOCALCLASSPATH=lib\crimson.jar;lib\jaxp.jar;lib\optional\junit.jar | |||||
| if exist %JAVA_HOME%\lib\tools.jar call src\script\lcp.bat %JAVA_HOME%\lib\tools.jar | if exist %JAVA_HOME%\lib\tools.jar call src\script\lcp.bat %JAVA_HOME%\lib\tools.jar | ||||
| if exist %JAVA_HOME%\lib\classes.zip call src\script\lcp.bat %JAVA_HOME%\lib\classes.zip | if exist %JAVA_HOME%\lib\classes.zip call src\script\lcp.bat %JAVA_HOME%\lib\classes.zip | ||||
| @@ -29,7 +29,7 @@ if exist %JAVA_HOME%\lib\classes.zip call src\script\lcp.bat %JAVA_HOME%\lib\cla | |||||
| set TOOLS=src\main\org\apache\tools | set TOOLS=src\main\org\apache\tools | ||||
| set CLASSDIR=classes | set CLASSDIR=classes | ||||
| SET CLASSPATH=%LOCALCLASSPATH%;%CLASSDIR%;src\main;%CLASSPATH% | |||||
| SET CLASSPATH=%LOCALCLASSPATH%;%CLASSDIR%;src\main;"%CLASSPATH%" | |||||
| echo JAVA_HOME=%JAVA_HOME% | echo JAVA_HOME=%JAVA_HOME% | ||||
| echo JAVA=%JAVA% | echo JAVA=%JAVA% | ||||
| @@ -41,7 +41,7 @@ if [ -d "bootstrap" ] ; then | |||||
| rm -r bootstrap | rm -r bootstrap | ||||
| fi | fi | ||||
| CLASSPATH=lib/parser.jar:lib/jaxp.jar:lib/optional/junit.jar:${CLASSPATH} | |||||
| CLASSPATH=lib/crimson.jar:lib/jaxp.jar:lib/optional/junit.jar:${CLASSPATH} | |||||
| TOOLS=src/main/org/apache/tools | TOOLS=src/main/org/apache/tools | ||||
| CLASSDIR=classes | CLASSDIR=classes | ||||
| @@ -7,7 +7,7 @@ if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist bootstrap | |||||
| call bootstrap.bat | call bootstrap.bat | ||||
| :runAnt | :runAnt | ||||
| set LOCALCLASSPATH=lib\parser.jar;lib\jaxp.jar;bootstrap\lib\ant.jar | |||||
| set LOCALCLASSPATH=lib\crimson.jar;lib\jaxp.jar;bootstrap\lib\ant.jar | |||||
| for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat "%%i" | for %%i in (lib\optional\*.jar) do call bootstrap\bin\lcp.bat "%%i" | ||||
| set CLASSPATH=%LOCALCLASSPATH%;%CLASSPATH% | set CLASSPATH=%LOCALCLASSPATH%;%CLASSPATH% | ||||
| set LOCALCLASSPATH= | set LOCALCLASSPATH= | ||||
| @@ -8,7 +8,7 @@ if test ! -f bootstrap/lib/ant.jar -o ! -x bootstrap/bin/ant -o ! -x bootstrap/ | |||||
| /bin/sh ./bootstrap.sh | /bin/sh ./bootstrap.sh | ||||
| fi | fi | ||||
| LOCALCLASSPATH=lib/parser.jar:lib/jaxp.jar | |||||
| LOCALCLASSPATH=lib/crimson.jar:lib/jaxp.jar | |||||
| # add in the dependency .jar files | # add in the dependency .jar files | ||||
| DIRLIBS=lib/optional/*.jar | DIRLIBS=lib/optional/*.jar | ||||
| for i in ${DIRLIBS} | for i in ${DIRLIBS} | ||||
| @@ -353,7 +353,7 @@ For more information see the <a href="#installation">installation</a> section.<b | |||||
| <!-- =================================================================== --> | <!-- =================================================================== --> | ||||
| <target name="expand"> | <target name="expand"> | ||||
| <mkdir dir="${build.classes}"/> | <mkdir dir="${build.classes}"/> | ||||
| <unzip src="${antdistribution.dir}\lib\parser.jar" | |||||
| <unzip src="${antdistribution.dir}\lib\crimson.jar" | |||||
| dest="${build.classes}" | dest="${build.classes}" | ||||
| /> | /> | ||||
| <unzip src="${antdistribution.dir}\lib\jaxp.jar" | <unzip src="${antdistribution.dir}\lib\jaxp.jar" | ||||
| @@ -105,7 +105,7 @@ To use the net tasks one needs | |||||
| that typing 'ant' invokes ant via a batch file.</li> | that typing 'ant' invokes ant via a batch file.</li> | ||||
| <li> An XML parser for ant. The usual distributions include an appropriate | <li> An XML parser for ant. The usual distributions include an appropriate | ||||
| version parser.jar and jaxp.jar.</li> | |||||
| version crimson.jar and jaxp.jar.</li> | |||||
| <li> the .net tasks archive (dotnettasks.jar) included in the | <li> the .net tasks archive (dotnettasks.jar) included in the | ||||
| ant\lib directory</li> | ant\lib directory</li> | ||||
| @@ -39,12 +39,12 @@ Ant CVS repository</a> on-line. </p> | |||||
| To build and use Ant, you must have a JAXP-compliant XML parser installed and | To build and use Ant, you must have a JAXP-compliant XML parser installed and | ||||
| available on your classpath.</p> | available on your classpath.</p> | ||||
| <p> | <p> | ||||
| Both the binary and source distributions of Ant include the reference | |||||
| implementation of JAXP 1.0. Please see | |||||
| The binary distribution of Ant includes the reference | |||||
| implementation of JAXP 1.1. Please see | |||||
| <a href="http://java.sun.com/xml/" target="_top">http://java.sun.com/xml/</a> | <a href="http://java.sun.com/xml/" target="_top">http://java.sun.com/xml/</a> | ||||
| for more information. | for more information. | ||||
| If you wish to use a different JAXP-compliant parser, you should remove | If you wish to use a different JAXP-compliant parser, you should remove | ||||
| <code>jaxp.jar</code> and <code>parser.jar</code> | |||||
| <code>jaxp.jar</code> and <code>crimson.jar</code> | |||||
| from Ant's <code>lib</code> directory. | from Ant's <code>lib</code> directory. | ||||
| You can then either put the jars from your preferred parser into Ant's | You can then either put the jars from your preferred parser into Ant's | ||||
| @@ -55,7 +55,7 @@ goto end | |||||
| :checkJava | :checkJava | ||||
| set _JAVACMD=%JAVACMD% | set _JAVACMD=%JAVACMD% | ||||
| set LOCALCLASSPATH=%CLASSPATH% | |||||
| set LOCALCLASSPATH="%CLASSPATH%" | |||||
| for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" "%%i" | for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" "%%i" | ||||
| if "%JAVA_HOME%" == "" goto noJavaHome | if "%JAVA_HOME%" == "" goto noJavaHome | ||||