1 <?xml version="1.0"?>
2 <project name="cove" 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="schema.dir" value="schemas"/>
8 <property name="src.dir" value="WEB-INF/src"/>
9 <property name="docs.dir" value="docs"/>
10 <property name="schema" value="xul-jsf.rng"/>
11 <property name="doc" value="language.xul"/>
12 <property name="package" value="com.netpotlet.xul.element"/>
13 <property name="compiledfiles.dir" value="${src.dir}/com/netpotlet/xul/element"/>
14
15 <target name="relaxer" depends="clean">
16 <java jar="${relaxer.jar}" fork="true">
17 <jvmarg value="-Xmx128M"/>
18 <classpath>
19 <pathelement location="${relaxer.jar}"/>
20 </classpath>
21 <arg line="-dir:${src.dir} -dir.package"/>
22 <arg line="-java.package:${package} -java.name.class.prefix:Xul"/>
23 <arg line="${schema.dir}/${schema} -verbose"/>
24 <arg line="-java.xml.pi -java.xml.namespace"/>
25 <arg value="-java.pattern.visitor"/>
26 </java>
27 </target>
28
29 <target name="clean">
30 <delete>
31 <fileset dir="${compiledfiles.dir}" includes="**/*.java"/>
32 </delete>
33 </target>
34
35 <target name="validate">
36 <java jar="${msv.jar}" fork="true">
37 <arg value="${schema.dir}/${schema}"/>
38 <arg value="${docs.dir}/${doc}"/>
39 </java>
40 </target>
41
42 </project>