spring-framework/org.springframework.oxm/build.xml

58 lines
2.5 KiB
XML
Raw Normal View History

2009-01-06 19:18:27 +08:00
<?xml version="1.0" encoding="UTF-8"?>
2009-01-15 17:48:29 +08:00
<project name="org.springframework.oxm" xmlns:ivy="antlib:org.apache.ivy.ant">
2009-01-06 19:18:27 +08:00
<property file="${basedir}/../build.properties"/>
<import file="${basedir}/../build-spring-framework/package-bundle.xml"/>
<import file="${basedir}/../spring-build/standard/default.xml"/>
2009-01-15 17:48:29 +08:00
2009-01-15 18:26:00 +08:00
<property name="schema" value="${basedir}/src/test/resources/org/springframework/oxm/flight.xsd"/>
<macrodef name="test-pre-compile">
<attribute name="classpath.id"/>
<attribute name="input.dir"/>
<attribute name="output.dir"/>
<attribute name="resources.dir"/>
<sequential>
<!-- JAXB2 -->
<!--
<ivy:cachepath resolveId="xmlbeans.classpath" pathid="xmlbeans.classpath" organisation="org.apache.xmlbeans"
module="com.springsource.org.apache.xmlbeans" revision="2.4.0"
conf="runtime" type="jar" inline="true" log="download-only"/>
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask" classpathref="maven.test.classpath"/>
<xjc target="${generate.target.directory}" package="org.springframework.oxm.jaxb1" schema="${schema}">
<produces dir="${generate.target.directory}" includes="**/jaxb1/**/*.java"/>
</xjc>
-->
<!-- XMLBeans -->
<ivy:cachepath resolveId="xmlbeans.classpath" pathid="xmlbeans.classpath" organisation="org.apache.xmlbeans"
module="com.springsource.org.apache.xmlbeans" revision="2.4.0"
conf="runtime" type="jar" inline="true" log="download-only"/>
<taskdef name="xmlbeans" classname="org.apache.xmlbeans.impl.tool.XMLBean"
classpathref="xmlbeans.classpath"/>
<xmlbeans schema="${schema}" classgendir="@{output.dir}" classpathref="xmlbeans.classpath" compiler="modern"
verbose="false"/>
</sequential>
</macrodef>
2009-01-15 17:48:29 +08:00
<macrodef name="test-post-compile">
<attribute name="classpath.id"/>
<attribute name="input.dir"/>
<attribute name="output.dir"/>
<attribute name="resources.dir"/>
<sequential>
<ivy:cachepath resolveId="jibx.classpath" pathid="jibx.classpath" organisation="net.sourceforge.jibx"
module="com.springsource.org.jibx.binding" revision="1.1.5"
conf="runtime" type="jar" inline="true" log="download-only"/>
<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">
<classpathset dir="@{output.dir}">
<include name="**/jibx/**/*"/>
</classpathset>
</jibx-bind>
</sequential>
</macrodef>
2009-01-06 19:18:27 +08:00
</project>