You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@apache.org on 2002/02/11 15:20:23 UTC
cvs commit: xml-xalan/test/tests/bugzilla bugzilla.bat
curcuru 02/02/11 06:20:23
Modified: test/tests/bugzilla bugzilla.bat
Log:
Update to run either a .java file or a .xsl file; update to new location of
xml-apis.jar and new name of xercesImpl.jar
Revision Changes Path
1.2 +20 -5 xml-xalan/test/tests/bugzilla/bugzilla.bat
Index: bugzilla.bat
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/bugzilla/bugzilla.bat,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- bugzilla.bat 7 Jan 2002 15:26:30 -0000 1.1
+++ bugzilla.bat 11 Feb 2002 14:20:23 -0000 1.2
@@ -2,15 +2,30 @@
if "%1" == "" goto usage
@echo Simple wrapper to execute a single Bugzilla test #%1
-@echo javac -classpath ..\..\..\java\build\xalan.jar;..\..\..\java\build\xml-apis.jar;..\..\..\java\bin\xerces.jar;..\..\java\build\testxsl.jar;%CLASSPATH% -d build Bugzilla%1.java
-javac -classpath ..\..\..\java\build\xalan.jar;..\..\..\java\build\xml-apis.jar;..\..\..\java\bin\xerces.jar;..\..\java\build\testxsl.jar;%CLASSPATH% -d build Bugzilla%1.java
+@rem Always attempt Java first, since it might do additional validation
+if exist Bugzilla%1.java goto dojava
+if exist Bugzilla%1.xsl goto doxsl
+goto error
-@echo java -classpath build;..\..\..\java\build\xalan.jar;..\..\..\java\build\xml-apis.jar;..\..\..\java\bin\xerces.jar;..\..\java\build\testxsl.jar;%CLASSPATH% Bugzilla%1
-java -classpath build;..\..\..\java\build\xalan.jar;..\..\..\java\build\xml-apis.jar;..\..\..\java\bin\xerces.jar;..\..\java\build\testxsl.jar;%CLASSPATH% Bugzilla%1
+:dojava
+@echo javac -classpath ..\..\..\java\build\xalan.jar;..\..\..\java\bin\xml-apis.jar;..\..\..\java\bin\xercesImpl.jar;..\..\java\build\testxsl.jar;%CLASSPATH% -d build Bugzilla%1.java
+javac -classpath ..\..\..\java\build\xalan.jar;..\..\..\java\bin\xml-apis.jar;..\..\..\java\bin\xercesImpl.jar;..\..\java\build\testxsl.jar;%CLASSPATH% -d build Bugzilla%1.java
+@echo java -classpath build;..\..\..\java\build\xalan.jar;..\..\..\java\bin\xml-apis.jar;..\..\..\java\bin\xercesImpl.jar;..\..\java\build\testxsl.jar;%CLASSPATH% Bugzilla%1
+java -classpath build;..\..\..\java\build\xalan.jar;..\..\..\java\bin\xml-apis.jar;..\..\..\java\bin\xercesImpl.jar;..\..\java\build\testxsl.jar;%CLASSPATH% Bugzilla%1
goto end
+
+:doxsl
+@echo java -classpath ..\..\..\java\build\xalan.jar;..\..\..\java\bin\xml-apis.jar;..\..\..\java\bin\xercesImpl.jar;%CLASSPATH% org.apache.xalan.xslt.Process -in Bugzilla%1.xml -xsl Bugzilla%1.xsl -out Bugzilla%1.output -v -edump
+java -classpath ..\..\..\java\build\xalan.jar;..\..\..\java\bin\xml-apis.jar;..\..\..\java\bin\xercesImpl.jar;%CLASSPATH% org.apache.xalan.xslt.Process -in Bugzilla%1.xml -xsl Bugzilla%1.xsl -out Bugzilla%1.output -v -edump
+@echo Output is in Bugzilla%1.output
+dir Bugzilla%1.output
+goto end
+
+:error
+@echo ERROR! Could not find file Bugzilla%1.java/xsl
:usage
-@echo %0: compile and run a single BugzillaNNNN testlet
+@echo %0: compile and run a single BugzillaNNNN testlet/stylesheet
@echo Usage: bugzilla NNNN (NNNN is the number of the bug)
:end
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org