1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
<module>
<depends module="util"/>
<depends lib="xercesImpl"/>
<compile test="yes"/>
<test name="xerces" type="java"
class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
<arg value="com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl"/>
<arg value="mod/regex/test/regextest.xml"/>
</test>
<test name="java" type="java"
class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
<arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
<arg value="mod/regex/test/regextest.xml"/>
</test>
<test name="naming" type="java"
class="com.thaiopensource.datatype.xsd.regex.test.NameTest">
<arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
</test>
<test name="hard" type="java"
class="com.thaiopensource.datatype.xsd.regex.test.TestDriver">
<arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
<arg value="mod/regex/test/hardtest.xml"/>
</test>
<!-- This takes about a minute to run, so we need to separate it into a separate target.
<test name="category" type="java"
class="com.thaiopensource.datatype.xsd.regex.test.CategoryTest">
<arg value="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
<arg value="lib/UnicodeData-4.0.0.txt"/>
</test>
-->
<ant precompile="mod.regex.gen">
<target name="mod.regex.gen" depends="mod.regex.check-gen" unless="mod.regex.gen-ok">
<mkdir dir="${build.dir}/mod/regex/gensrc/main/com/thaiopensource/datatype/xsd/regex/java"/>
<java classname="com.thaiopensource.datatype.xsd.regex.java.gen.NamingExceptionsGen"
fork="yes"
failonerror="yes">
<arg value="com.thaiopensource.datatype.xsd.regex.java.NamingExceptions"/>
<arg value="${build.dir}/mod/regex/gensrc/main"/>
<classpath>
<pathelement location="${build.dir}/mod/regex-gen/classes/main"/>
<pathelement location="${build.dir}/mod/util/classes/main"/>
</classpath>
</java>
<java classname="com.thaiopensource.datatype.xsd.regex.java.gen.CategoriesGen"
fork="yes"
failonerror="yes">
<arg value="com.thaiopensource.datatype.xsd.regex.java.Categories"/>
<arg value="${build.dir}/mod/regex/gensrc/main"/>
<arg value="/usr/share/unicode/UnicodeData.txt"/>
<classpath>
<pathelement location="${build.dir}/mod/regex-gen/classes/main"/>
<pathelement location="${build.dir}/mod/util/classes/main"/>
</classpath>
</java>
</target>
<target name="mod.regex.check-gen" depends="mod.regex-gen.compile-main">
<uptodate property="mod.regex.gen-ok"
targetfile="${build.dir}/mod/regex/gensrc/main/com/thaiopensource/datatype/xsd/regex/java/Categories.java">
<srcfiles dir="${build.dir}/mod/regex-gen/classes/main" includes="**/*.class"/>
</uptodate>
</target>
</ant>
<jar>
<service type="com.thaiopensource.datatype.xsd.regex.RegexEngine"/>
</jar>
<service type="com.thaiopensource.datatype.xsd.regex.RegexEngine">
<provider classname="com.thaiopensource.datatype.xsd.regex.java.RegexEngineImpl"/>
<provider classname="com.thaiopensource.datatype.xsd.regex.xerces2.RegexEngineImpl"/>
</service>
</module>
|