File: build-binding.xml

package info (click to toggle)
libjibx-java 1.0.1-2
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 15,748 kB
  • ctags: 10,069
  • sloc: java: 29,151; xml: 7,963; makefile: 14
file content (31 lines) | stat: -rw-r--r-- 1,271 bytes parent folder | download
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
<?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/xpp3.jar"/>  
    </classpath>
  </taskdef>
  
  <!-- bind the class files -->
  <target name="bind">
    <echo message="Running binding compiler..."/>
    <bind verbose="true" load="true" binding="${basedir}/src/org/jibx/binding/model/binding.xml">
      <classpathset dir="${jibxhome}/lib/jibx-run.jar"/>
      <classpathset dir="${jibxhome}/lib/jibx-extras.jar"/>
      <classpathset dir="${basedir}/classes/main"/>
    </bind> 
  </target>

</project>