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
|
<?xml version="1.0"?>
<!-- This build file can be used within an IDE environment to bind the JiBX
binding definition model classes - after building or modifying the model
classes, run the default "bind" target of this script to compile the internal
bindings. -->
<project basedir="." default="bind">
<!-- JiBX binding compiler task definition -->
<property environment="env"/>
<property name="jibxhome" value="${basedir}/.."/>
<taskdef name="bind" classname="org.jibx.binding.ant.CompileTask">
<classpath>
<pathelement location="${jibxhome}/lib/bcel.jar"/>
<pathelement location="${jibxhome}/lib/jibx-bind.jar"/>
<pathelement location="${jibxhome}/lib/jibx-run.jar"/>
<pathelement location="${jibxhome}/lib/jibx-extras.jar"/>
<pathelement location="${jibxhome}/lib/joda-time.jar"/>
<pathelement location="${jibxhome}/lib/xpp3.jar"/>
</classpath>
</taskdef>
<!-- bind the class files -->
<target name="bind">
<echo message="Running binding compiler..."/>
<bind load="true">
<bindingfileset dir="${basedir}/src">
<include name="binding-normal.xml"/>
<include name="binding-precomp.xml"/>
<include name="class-customs-binding.xml"/>
<include name="schema-extract-binding.xml"/>
<include name="schema-noprefix-binding.xml"/>
<include name="schema-xsprefix-binding.xml"/>
<include name="wsdl-binding.xml"/>
<include name="wsdlgen-customs-binding.xml"/>
<include name="xsdcodegen-customs-binding.xml"/>
</bindingfileset>
<classpathset dir="${jibxhome}/lib/jibx-run.jar"/>
<classpathset dir="${jibxhome}/lib/jibx-extras.jar"/>
<classpathset dir="${basedir}/classes/main"/>
</bind>
</target>
</project>
|