Added castor and jaxb2 to the oxm build
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@549 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
b856df08a4
commit
2f13d3dbc2
|
|
@ -5,6 +5,56 @@
|
||||||
<import file="${basedir}/../spring-build/standard/default.xml"/>
|
<import file="${basedir}/../spring-build/standard/default.xml"/>
|
||||||
|
|
||||||
<property name="schema" value="${basedir}/src/test/resources/org/springframework/oxm/flight.xsd"/>
|
<property name="schema" value="${basedir}/src/test/resources/org/springframework/oxm/flight.xsd"/>
|
||||||
|
<property name="test.castor.dir" value="${target.dir}/castor/staging/test"/>
|
||||||
|
<property name="test.jaxb.dir" value="${target.dir}/jaxb/staging/test"/>
|
||||||
|
|
||||||
|
<macrodef name="test-compile">
|
||||||
|
<attribute name="classpath.id"/>
|
||||||
|
<attribute name="input.dir"/>
|
||||||
|
<attribute name="output.dir"/>
|
||||||
|
<attribute name="resources.dir"/>
|
||||||
|
<sequential>
|
||||||
|
<delete quiet="true" dir="@{output.dir}"/>
|
||||||
|
<mkdir dir="@{output.dir}"/>
|
||||||
|
|
||||||
|
<!-- Castor -->
|
||||||
|
<ivy:cachepath resolveId="castor.classpath" pathid="castor.classpath" organisation="org.codehaus.castor"
|
||||||
|
module="com.springsource.org.castor.anttask" revision="1.2.0" conf="runtime" type="jar"
|
||||||
|
inline="true" log="download-only"/>
|
||||||
|
<taskdef name="castor" classname="org.castor.anttask.CastorCodeGenTask" classpathref="castor.classpath"/>
|
||||||
|
|
||||||
|
<delete quiet="true" dir="${test.castor.dir}" />
|
||||||
|
<mkdir dir="${test.castor.dir}" />
|
||||||
|
|
||||||
|
<castor types="j2" warnings="false" file="${schema}" todir="${test.castor.dir}"
|
||||||
|
package="org.springframework.oxm.castor"/>
|
||||||
|
<do-compile classpath.id="@{classpath.id}" input.dir="${test.castor.dir}" output.dir="@{output.dir}"
|
||||||
|
resources.dir="${test.castor.dir}"/>
|
||||||
|
|
||||||
|
<!-- JAXB2 -->
|
||||||
|
<ivy:cachepath resolveId="jaxb.classpath" pathid="jaxb.classpath" organisation="com.sun.xml"
|
||||||
|
module="com.springsource.com.sun.tools.xjc" revision="2.1.7" conf="runtime" type="jar" inline="true"
|
||||||
|
log="download-only"/>
|
||||||
|
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask" classpathref="jaxb.classpath"/>
|
||||||
|
|
||||||
|
<delete quiet="true" dir="${test.jaxb.dir}" />
|
||||||
|
<mkdir dir="${test.jaxb.dir}" />
|
||||||
|
|
||||||
|
<xjc destdir="${test.jaxb.dir}" package="org.springframework.oxm.jaxb" schema="${schema}">
|
||||||
|
<produces dir="${test.jaxb.dir}" includes="**/*.java"/>
|
||||||
|
</xjc>
|
||||||
|
<do-compile classpath.id="@{classpath.id}" input.dir="${test.jaxb.dir}" output.dir="@{output.dir}"
|
||||||
|
resources.dir="${test.jaxb.dir}"/>
|
||||||
|
|
||||||
|
<!-- Standard Compile -->
|
||||||
|
<test-pre-compile classpath.id="@{classpath.id}" input.dir="@{input.dir}" output.dir="@{output.dir}"
|
||||||
|
resources.dir="@{resources.dir}"/>
|
||||||
|
<do-compile classpath.id="@{classpath.id}" input.dir="@{input.dir}" output.dir="@{output.dir}"
|
||||||
|
resources.dir="@{resources.dir}"/>
|
||||||
|
<test-post-compile classpath.id="@{classpath.id}" input.dir="@{input.dir}" output.dir="@{output.dir}"
|
||||||
|
resources.dir="@{resources.dir}"/>
|
||||||
|
</sequential>
|
||||||
|
</macrodef>
|
||||||
|
|
||||||
<macrodef name="test-pre-compile">
|
<macrodef name="test-pre-compile">
|
||||||
<attribute name="classpath.id"/>
|
<attribute name="classpath.id"/>
|
||||||
|
|
@ -12,37 +62,11 @@
|
||||||
<attribute name="output.dir"/>
|
<attribute name="output.dir"/>
|
||||||
<attribute name="resources.dir"/>
|
<attribute name="resources.dir"/>
|
||||||
<sequential>
|
<sequential>
|
||||||
<!-- Castor -->
|
|
||||||
<!--
|
|
||||||
<ivy:cachepath resolveId="castor.classpath" pathid="castor.classpath"
|
|
||||||
organisation="org.codehaus.castor" module="com.springsource.org.castor" revision="1.2.0"
|
|
||||||
conf="runtime" type="jar" inline="true" log="download-only"/>
|
|
||||||
<taskdef name="castor" classname="org.castor.anttask.CastorCodeGenTask"
|
|
||||||
classpathref="castor.classpath"/>
|
|
||||||
<castor types="j2" warnings="false" file="${schema}" todir="${basedir}/castor/test"
|
|
||||||
package="org.springframework.oxm.castor"/>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- JAXB2 -->
|
|
||||||
<!--
|
|
||||||
<ivy:cachepath resolveId="jaxb.classpath" pathid="jaxb.classpath" organisation="com.sun.xml"
|
|
||||||
module="com.springsource.com.sun.xml.bind" revision="2.1.7"
|
|
||||||
conf="runtime" type="jar" inline="true" log="download-only"/>
|
|
||||||
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"
|
|
||||||
classpathref="jaxb.classpath"/>
|
|
||||||
<xjc destdir="${basedir}/jaxb/test"
|
|
||||||
package="org.springframework.oxm.jaxb"
|
|
||||||
schema="${schema}">
|
|
||||||
<produces dir="${basedir}/jaxb/test" includes="**/*.java"/>
|
|
||||||
</xjc>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- XMLBeans -->
|
<!-- XMLBeans -->
|
||||||
<ivy:cachepath resolveId="xmlbeans.classpath" pathid="xmlbeans.classpath" organisation="org.apache.xmlbeans"
|
<ivy:cachepath resolveId="xmlbeans.classpath" pathid="xmlbeans.classpath" organisation="org.apache.xmlbeans"
|
||||||
module="com.springsource.org.apache.xmlbeans" revision="2.4.0"
|
module="com.springsource.org.apache.xmlbeans" revision="2.4.0"
|
||||||
conf="runtime" type="jar" inline="true" log="download-only"/>
|
conf="runtime" type="jar" inline="true" log="download-only"/>
|
||||||
<taskdef name="xmlbeans" classname="org.apache.xmlbeans.impl.tool.XMLBean"
|
<taskdef name="xmlbeans" classname="org.apache.xmlbeans.impl.tool.XMLBean" classpathref="xmlbeans.classpath"/>
|
||||||
classpathref="xmlbeans.classpath"/>
|
|
||||||
<xmlbeans schema="${schema}" classgendir="@{output.dir}" classpathref="xmlbeans.classpath" compiler="modern"
|
<xmlbeans schema="${schema}" classgendir="@{output.dir}" classpathref="xmlbeans.classpath" compiler="modern"
|
||||||
verbose="false"/>
|
verbose="false"/>
|
||||||
</sequential>
|
</sequential>
|
||||||
|
|
@ -55,11 +79,11 @@
|
||||||
<attribute name="output.dir"/>
|
<attribute name="output.dir"/>
|
||||||
<attribute name="resources.dir"/>
|
<attribute name="resources.dir"/>
|
||||||
<sequential>
|
<sequential>
|
||||||
|
<!-- JiBX -->
|
||||||
<ivy:cachepath resolveId="jibx.classpath" pathid="jibx.classpath" organisation="net.sourceforge.jibx"
|
<ivy:cachepath resolveId="jibx.classpath" pathid="jibx.classpath" organisation="net.sourceforge.jibx"
|
||||||
module="com.springsource.org.jibx.binding" revision="1.1.5"
|
module="com.springsource.org.jibx.binding" revision="1.1.5"
|
||||||
conf="runtime" type="jar" inline="true" log="download-only"/>
|
conf="runtime" type="jar" inline="true" log="download-only"/>
|
||||||
<taskdef name="jibx-bind" classname="org.jibx.binding.ant.CompileTask" classpathref="jibx.classpath"/>
|
<taskdef name="jibx-bind" classname="org.jibx.binding.ant.CompileTask" classpathref="jibx.classpath"/>
|
||||||
|
|
||||||
<jibx-bind load="true" binding="${basedir}/src/test/resources/org/springframework/oxm/jibx/binding.xml">
|
<jibx-bind load="true" binding="${basedir}/src/test/resources/org/springframework/oxm/jibx/binding.xml">
|
||||||
<classpathset dir="@{output.dir}">
|
<classpathset dir="@{output.dir}">
|
||||||
<include name="**/jibx/**/*"/>
|
<include name="**/jibx/**/*"/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue