リスト1 build.xml

 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="trang.home" value="/usr/local/java/xml/trang-20030619"/>
 6   <property name="trang.jar" value="${trang.home}/trang.jar" />
 7   <property name="msv.home" value="/usr/local/java/xml/msv-20030225"/>
 8   <property name="msv.jar" value="${msv.home}/msv.jar"/>
 9   <property name="schemas.dir" value="schemas"/>
10   <property name="docs.dir" value="docs"/>
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" depends="trang">
27     <relaxer projectdir="." srcdir="${schemas.dir}"/>
28   </target>
29
30   <target name="trang">
31     <java jar="${trang.jar}" fork="true">
32       <arg line="-I xml -O rng ${docs.dir}/language.xul ${schemas.dir}/language.rng"/>
33     </java>
34   </target>
35
36 </project>