1@echo off 2rem 3rem ========================================================================== 4rem Copyright 2001-2023 The Apache Software Foundation. 5rem 6rem Licensed to the Apache Software Foundation (ASF) under one or more 7rem contributor license agreements. See the NOTICE file distributed with 8rem this work for additional information regarding copyright ownership. 9rem The ASF licenses this file to You under the Apache License, Version 2.0 10rem (the "License"); you may not use this file except in compliance with 11rem the License. You may obtain a copy of the License at 12rem 13rem http://www.apache.org/licenses/LICENSE-2.0 14rem 15rem Unless required by applicable law or agreed to in writing, software 16rem distributed under the License is distributed on an "AS IS" BASIS, 17rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18rem See the License for the specific language governing permissions and 19rem limitations under the License. 20rem ========================================================================== 21 22rem Author: [email protected] 23 24rem Set JAVA_HOME environment variable, for the local environment 25 26if "%JAVA_HOME%"=="" goto noJavaHome 27 28set XALAN_BUILD_DIR_PATH=..\..\..\xalan-java\build;..\..\..\build 29 30set XERCES_ENDORSED_DIR_PATH=..\..\..\xalan-java\lib\endorsed;..\..\..\lib\endorsed 31 32rem #Test 1 (Testing XalanJ integer truncation bug fix, with XalanJ XSLTC processor) 33if exist "int_trunc.class" ( 34 rem delete the result XalanJ translet file, if that exists 35 del int_trunc.class 36) 37 38%JAVA_HOME%\bin\java -Djava.endorsed.dirs=%XALAN_BUILD_DIR_PATH%;%XERCES_ENDORSED_DIR_PATH% org.apache.xalan.xslt.Process -XSLTC -IN int_trunc.xml -XSL int_trunc.xsl -SECURE -XX -XT 2>NUL 39 40if exist "int_trunc.class" ( 41 echo Test failed. Please solve this, before checking in! 42) else ( 43 echo The xalanj integer truncation bug fix test passed! 44) 45 46rem #Test 2 (Testing bug fix of the jira issue XALANJ-2584, with XalanJ interpretive processor) 47%JAVA_HOME%\bin\java -Djava.endorsed.dirs=%XALAN_BUILD_DIR_PATH%;%XERCES_ENDORSED_DIR_PATH% org.apache.xalan.xslt.Process -IN jira_xalanj_2584.xml -XSL jira_xalanj_2584.xsl > jira_xalanj_2584.out 48 49%JAVA_HOME%\bin\java -Djava.endorsed.dirs=%XERCES_ENDORSED_DIR_PATH% -classpath ..\..\java\build\testxsl.jar org.apache.qetest.XMLParserTestDriver jira_xalanj_2584.out xalan_interpretive 50 51rem #Test 3 (Testing bug fix of the jira issue XALANJ-2584, with XalanJ XSLTC processor) 52%JAVA_HOME%\bin\java -Djava.endorsed.dirs=%XALAN_BUILD_DIR_PATH%;%XERCES_ENDORSED_DIR_PATH% org.apache.xalan.xslt.Process -XSLTC -IN jira_xalanj_2584.xml -XSL jira_xalanj_2584.xsl > jira_xalanj_2584.out 53 54%JAVA_HOME%\bin\java -Djava.endorsed.dirs=%XERCES_ENDORSED_DIR_PATH% -classpath ..\..\java\build\testxsl.jar org.apache.qetest.XMLParserTestDriver jira_xalanj_2584.out xalan_xsltc 55 56del jira_xalanj_2584.out 57 58rem #Test 4 (Testing bug fix of the jira issue XALANJ-2623, with XalanJ interpretive processor) 59%JAVA_HOME%\bin\java -Djava.endorsed.dirs=%XALAN_BUILD_DIR_PATH%;%XERCES_ENDORSED_DIR_PATH% org.apache.xalan.xslt.Process -IN jira_xalanj_2623.xml -XSL jira_xalanj_2623.xsl > jira_xalanj_2623.out 60 61%JAVA_HOME%\bin\java -Djava.endorsed.dirs=%XERCES_ENDORSED_DIR_PATH% -classpath ..\..\java\build\testxsl.jar org.apache.qetest.XSValidationTestDriver jira_xalanj_2623.out jira_xalanj_2623.xsd xalan_interpretive 62 63rem #Test 5 (Testing bug fix of the jira issue XALANJ-2623, with XalanJ XSLTC processor) 64%JAVA_HOME%\bin\java -Djava.endorsed.dirs=%XALAN_BUILD_DIR_PATH%;%XERCES_ENDORSED_DIR_PATH% org.apache.xalan.xslt.Process -XSLTC -IN jira_xalanj_2623.xml -XSL jira_xalanj_2623.xsl > jira_xalanj_2623.out 65 66%JAVA_HOME%\bin\java -Djava.endorsed.dirs=%XERCES_ENDORSED_DIR_PATH% -classpath ..\..\java\build\testxsl.jar org.apache.qetest.XSValidationTestDriver jira_xalanj_2623.out jira_xalanj_2623.xsd xalan_xsltc 67 68del jira_xalanj_2623.out 69 70goto end 71 72:noJavaHome 73echo Warning: JAVA_HOME environment variable is not set 74 75:end 76set XALAN_BUILD_DIR_PATH= 77set XERCES_ENDORSED_DIR_PATH=