Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3:Update
apache-commons-validator
commons-validator-1.3.1-locale.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File commons-validator-1.3.1-locale.patch of Package apache-commons-validator
--- commons-validator-1.3.1-src/build.xml 2006-11-28 23:31:49.000000000 +0100 +++ commons-validator-1.3.1-src/build.xml 2017-10-09 11:28:48.651572868 +0200 @@ -108,6 +108,23 @@ <!-- Download lib dir --> <property name="download.lib.dir" value="lib"/> +<!-- ========== Test Java Version ========================================= --> + + <condition property="isJava9"> + <not> + <or> + <equals arg1="${ant.java.version}" arg2="1.1"/> + <equals arg1="${ant.java.version}" arg2="1.2"/> + <equals arg1="${ant.java.version}" arg2="1.3"/> + <equals arg1="${ant.java.version}" arg2="1.4"/> + <equals arg1="${ant.java.version}" arg2="1.5"/> + <equals arg1="${ant.java.version}" arg2="1.6"/> + <equals arg1="${ant.java.version}" arg2="1.7"/> + <equals arg1="${ant.java.version}" arg2="1.8"/> + </or> + </not> + </condition> + <!-- ========== Compiler Defaults ========================================= --> @@ -421,7 +438,7 @@ </target> - <target name="test" depends="compile.tests,test.main,test.routines" + <target name="test" depends="compile.tests,test.main,test.routines,test.routines.java9" description="Run all unit test cases"> </target> @@ -436,11 +453,22 @@ </target> <target name="test.routines" depends="compile.tests" - description="Run routines unit test cases"> - <echo message="Running routines tests ..."/> + description="Run routines unit test cases" unless="isJava9"> + <echo message="Running routines tests ..."/> + <java classname="${test.runner}" fork="yes" + failonerror="${test.failonerror}"> + <arg value="org.apache.commons.validator.routines.RoutinesTestSuite"/> + <classpath refid="test.classpath"/> + </java> + </target> + + <target name="test.routines.java9" depends="compile.tests" + description="Run routines unit test cases with Java 9+" if="isJava9"> + <echo message="Running routines tests with Java 9+ ..."/> <java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}"> <arg value="org.apache.commons.validator.routines.RoutinesTestSuite"/> + <sysproperty key="java.locale.providers" value="COMPAT,SPI"/> <classpath refid="test.classpath"/> </java> </target>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor