You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by ga...@locus.apache.org on 2000/11/06 03:57:08 UTC
cvs commit: xml-xalan/test/java build.bat
garyp 00/11/05 18:57:08
Modified: test/java build.bat
Log:
Accomodate paths with spaces in the directory names.
Revision Changes Path
1.2 +6 -6 xml-xalan/test/java/build.bat
Index: build.bat
===================================================================
RCS file: /home/cvs/xml-xalan/test/java/build.bat,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build.bat 2000/11/01 23:25:52 1.1
+++ build.bat 2000/11/06 02:57:07 1.2
@@ -30,8 +30,8 @@
@echo %0 beginning...
@REM Trickery to guess appropriate location of java.exe program
-if '%JAVA_HOME%' == '' set JAVA_EXE=java
-if not '%JAVA_HOME%' == '' set JAVA_EXE=%JAVA_HOME%\bin\java
+if "%JAVA_HOME%" == "" set JAVA_EXE=java
+if not "%JAVA_HOME%" == "" set JAVA_EXE=%JAVA_HOME%\bin\java
set TANT_HOME=.
@@ -41,16 +41,16 @@
@REM some of the needed jars in the classpath, and then we add separate
@REM copies of them later on.
@REM HACK! Includes only Xalan-J 2.x build
-if '%JARDIR%' == '' set TEST_CP=.\build;%classpath%;%TANT_HOME%\bin\ant.jar;..\..\java\bin\xerces.jar;..\..\java\build\xalan.jar;..\xml-xalan\bsf.jar
+if "%JARDIR%" == "" set TEST_CP=.\build;%classpath%;%TANT_HOME%\bin\ant.jar;..\..\java\bin\xerces.jar;..\..\java\build\xalan.jar;..\xml-xalan\bsf.jar
@REM If JARDIR set, put those references first then default classpath
@REM note that we still assume you're in xsl-test dir because of .\conf\Extend reference
-if not '%JARDIR%' == '' set TEST_CP=.\build;%TANT_HOME%\bin\ant.jar;%JARDIR%\xerces.jar;%JARDIR%\xalan.jar;%JARDIR%\bsf.jar;%classpath%
+if not "%JARDIR%" == "" set TEST_CP=.\build;%TANT_HOME%\bin\ant.jar;%JARDIR%\xerces.jar;%JARDIR%\xalan.jar;%JARDIR%\bsf.jar;%classpath%
:doant
@REM Simply execute Ant to build it all
-echo %JAVA_EXE% %JAVA_OPTS% -Dant.home=%TANT_HOME% -classpath %TEST_CP% org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
-%JAVA_EXE% %JAVA_OPTS% -Dant.home=%TANT_HOME% -classpath %TEST_CP% org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
+echo "%JAVA_EXE%" %JAVA_OPTS% -Dant.home=%TANT_HOME% -classpath "%TEST_CP%" org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
+"%JAVA_EXE%" %JAVA_OPTS% -Dant.home=%TANT_HOME% -classpath "%TEST_CP%" org.apache.tools.ant.Main %1 %2 %3 %4 %5 %6 %7 %8 %9
goto done
:done