source: branches/maven/projects/autogen/build.xml @ 6762

Revision 6762, 2.9 KB checked in by melissa, 9 years ago (diff)

Initial work on fully autogenerated metadata support documentation; it's a bit slow, but seems to work. 'ant gen-meta-support' in components/autogen will now regenerate meta-support.txt, so manual editing should no longer be needed. Closes #516.

Line 
1<!--
2build.xml
3
4Ant build file for LOCI code generators.
5Download Apache Ant from http://ant.apache.org/.
6Type "ant -p" for a list of targets.
7-->
8
9<project name="autogen" default="jar" basedir=".">
10  <description>Build file for LOCI code generators</description>
11  <property name="root.dir" location="../.."/>
12  <import file="${root.dir}/ant/java.xml"/>
13  <property file="build.properties"/>
14
15  <target name="gen-meta" depends="compile"
16    description="generate code for Bio-Formats metadata classes">
17    <java classname="${component.main-class}"
18      classpath="${classes.dir}:${component.runtime-cp}"
19      fork="true" dir="${component.meta-dir}"/>
20  </target>
21
22  <target name="gen-bf-ice" depends="compile"
23    description="generate code for Bio-Formats Ice framework">
24    <java classname="${component.main-class}"
25      classpath="${classes.dir}:${component.runtime-cp}"
26      fork="true" dir="${component.ice-dir}">
27      <arg value="-ice"/>
28    </java>
29  </target>
30
31  <target name="gen-meta-support" depends="compile"
32    description="generate docs for Bio-Formats metadata support">
33    <exec executable="bash">
34      <arg value="${dest.dir}/gen-meta-support.sh"/>
35      <arg value="${root.dir}"/>
36    </exec>
37    <if>
38      <isset property="omexml.version"/>
39      <then>
40        <java classname="${component.meta-support-class}"
41          classpath="${classes.dir}:${component.runtime-cp}"
42          fork="true" dir="${component.meta-support-dir}">
43            <arg value="${omexml.version}"/>
44        </java>
45      </then>
46      <else>
47<echo>
48Please set the omexml.version property to match
49the latest release of the OME-XML schema. E.g.:
50  ant -Domexml.version=2008-09 gen-meta-support
51</echo>
52      </else>
53    </if>
54  </target>
55
56  <target name="gen-bf-cpp" depends="compile"
57    description="generate header for Bio-Formats C++ bindings">
58    <java classname="${component.jace-header-class}"
59      classpath="${classes.dir}:${component.runtime-cp}"
60      fork="true" dir="${component.jace-header-dir}">
61      <arg value="bio-formats"/>
62      <arg value="${root.dir}/components/bio-formats/src"/>
63    </java>
64    <java classname="${component.jace-header-class}"
65      classpath="${classes.dir}:${component.runtime-cp}"
66      fork="true" dir="${component.jace-header-dir}">
67      <arg value="loci-common"/>
68      <arg value="${root.dir}/components/common/src"/>
69    </java>
70    <java classname="${component.jace-header-class}"
71      classpath="${classes.dir}:${component.runtime-cp}"
72      fork="true" dir="${component.jace-header-dir}">
73      <arg value="ome-xml"/>
74      <arg value="${root.dir}/components/ome-xml/src"/>
75    </java>
76    <java classname="${component.jace-header-class}"
77      classpath="${classes.dir}:${component.runtime-cp}"
78      fork="true" dir="${component.jace-header-dir}">
79      <arg value="flow-cytometry"/>
80      <arg value="${root.dir}/components/flow-cytometry/src"/>
81    </java>
82  </target>
83
84</project>
Note: See TracBrowser for help on using the repository browser.