1 <?xml version="1.0"?>
2 <project name="elf" default="relaxer" basedir=".">
3 <property name="relaxer.home" value="/usr/local/lib/relaxer"/>
4 <property name="relaxer.jar" value="${relaxer.home}/Relaxer.jar"/>
5 <property name="msv.home" value="/usr/local/java/xml/msv-20030225"/>
6 <property name="msv.jar" value="${msv.home}/msv.jar"/>
7 <property name="schemas.dir" value="schemas"/>
8 <property name="src.dir" value="src"/>
9 <property name="docs.dir" value="docs"/>
10 <property name="javafile.dir" value="${src.dir}/com/netpotlet/elf"/>
11
12 <path id="relaxer.classpath">
13 <pathelement location="${relaxer.home}/Relaxer.jar"/>
14 <pathelement location="${relaxer.home}/RelaxerOrg.jar"/>
15 <pathelement location="${relaxer.home}/isorelax.jar"/>
16 <pathelement location="${relaxer.home}/relaxngDatatype.jar"/>
17 <pathelement location="${msv.home}/msv.jar"/>
18 <pathelement location="${msv.home}/xsdlib.jar"/>
19 </path>
20
21 <taskdef name="relaxer"
22 classname="org.relaxer.Relaxer.ant.RelaxerTask">
23 <classpath refid="relaxer.classpath"/>
24 </taskdef>
25
26 <target name="relaxer">
27 <relaxer srcdir="${schemas.dir}"/>
28 </target>
29
30 <target name="clean">
31 <delete>
32 <fileset dir="${javafile.dir}" includes="**/*.java"/>
33 </delete>
34 </target>
35
36 <target name="validate">
37 <java jar="${msv.jar}" fork="true">
38 <arg value="${schema.dir}/${schema}"/>
39 <arg value="${docs.dir}/${doc}"/>
40 </java>
41 </target>
42
43 </project>