xref: /aosp_15_r20/external/apache-xml/test/tests/bugzilla/bugzilla.bat (revision 1212f9a0ffdc28482b8821715d2222bf16dc14e2)
1*1212f9a0SAndroid Build Coastguard Worker@echo off
2*1212f9a0SAndroid Build Coastguard Workerif "%1" == "" goto usage
3*1212f9a0SAndroid Build Coastguard Worker@echo Simple wrapper to execute a single Bugzilla test #%1
4*1212f9a0SAndroid Build Coastguard Worker
5*1212f9a0SAndroid Build Coastguard Worker@rem Always attempt Java first, since it might do additional validation
6*1212f9a0SAndroid Build Coastguard Workerif exist Bugzilla%1.java goto dojava
7*1212f9a0SAndroid Build Coastguard Workerif exist Bugzilla%1.xsl goto doxsl
8*1212f9a0SAndroid Build Coastguard Workergoto error
9*1212f9a0SAndroid Build Coastguard Worker
10*1212f9a0SAndroid Build Coastguard Worker:dojava
11*1212f9a0SAndroid Build Coastguard Worker@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
12*1212f9a0SAndroid Build Coastguard Workerjavac -classpath ..\..\..\java\build\xalan.jar;..\..\..\java\bin\xml-apis.jar;..\..\..\java\bin\xercesImpl.jar;..\..\java\build\testxsl.jar;%CLASSPATH% -d build Bugzilla%1.java
13*1212f9a0SAndroid Build Coastguard Worker
14*1212f9a0SAndroid Build Coastguard Worker@echo java -classpath build;..\..\..\java\build\xalan.jar;..\..\..\java\bin\xml-apis.jar;..\..\..\java\bin\xercesImpl.jar;..\..\java\build\testxsl.jar;%CLASSPATH% Bugzilla%1
15*1212f9a0SAndroid Build Coastguard Workerjava -classpath build;..\..\..\java\build\xalan.jar;..\..\..\java\bin\xml-apis.jar;..\..\..\java\bin\xercesImpl.jar;..\..\java\build\testxsl.jar;%CLASSPATH% Bugzilla%1
16*1212f9a0SAndroid Build Coastguard Workergoto end
17*1212f9a0SAndroid Build Coastguard Worker
18*1212f9a0SAndroid Build Coastguard Worker:doxsl
19*1212f9a0SAndroid Build Coastguard Worker@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
20*1212f9a0SAndroid Build Coastguard Workerjava -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
21*1212f9a0SAndroid Build Coastguard Worker@echo Output is in Bugzilla%1.output
22*1212f9a0SAndroid Build Coastguard Workerdir Bugzilla%1.output
23*1212f9a0SAndroid Build Coastguard Workergoto end
24*1212f9a0SAndroid Build Coastguard Worker
25*1212f9a0SAndroid Build Coastguard Worker:error
26*1212f9a0SAndroid Build Coastguard Worker@echo ERROR! Could not find file Bugzilla%1.java/xsl
27*1212f9a0SAndroid Build Coastguard Worker:usage
28*1212f9a0SAndroid Build Coastguard Worker@echo %0: compile and run a single BugzillaNNNN testlet/stylesheet
29*1212f9a0SAndroid Build Coastguard Worker@echo Usage: bugzilla NNNN    (NNNN is the number of the bug)
30*1212f9a0SAndroid Build Coastguard Worker
31*1212f9a0SAndroid Build Coastguard Worker:end