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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
|
<project name="XOM documentation" default="all" basedir=".">
<description>
Run stylesheets across DocBook source code
</description>
<!-- set global properties for this build -->
<property name="build.dir" value="./build"/>
<property name="build.dest" value="${build.dir}/website"/>
<property name="parentdist.dir" value="../dist/website"/>
<path id="xslt.class.path">
<pathelement path="/opt/xml/saxon/saxon.jar"/>
<pathelement path="../lib/xalan.jar"/>
</path>
<path id="xerces.class.path">
<pathelement path="../lib/dtd-xercesImpl.jar"/>
<pathelement path="../lib/xmlParserAPIs.jar"/>
</path>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<mkdir dir="${build.dest}"/>
<mkdir dir="${parentdist.dir}"/>
</target>
<target name="finished_tutorial.xml" depends="init"
description="Merge original chapters and examples into a single file">
<java classname="nu.xom.samples.XIncludeDriver" output="${build.dir}/finished_tutorial.xml" fork="yes" failonerror="true">
<arg line="tutorial.xml"/>
<classpath refid="xerces.class.path"/>
<classpath location="../build/classes"/>
<classpath location="../build/jaxen-classes"/>
</java>
</target>
<target name="valid"
description="Check validity of input documents and output"
depends="tutorial">
<java classname="nu.xom.samples.Validator">
<arg value="index.html"/>
<arg value="faq.xml"/>
<arg value="${build.dir}/finished_tutorial.xml"/>
<arg value="${build.dest}/tutorial.xhtml"/>
<arg value="infoset.xml"/>
<arg value="xpath.xml"/>
<arg value="license.xml"/>
<arg value="openquestions.xml"/>
<arg value="futuredirections.xml"/>
<arg value="testsuite.xml"/>
<arg value="faq.xml"/>
<arg value="designprinciples.xml"/>
<classpath refid="xerces.class.path"/>
<classpath location="../build/classes"/>
<classpath location="../build/jaxen-classes"/>
</java>
</target>
<target name="tutorial" description="Generate a single XHTML document" depends="finished_tutorial.xml">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/tutorial.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="${build.dir}/finished_tutorial.xml"/>
<arg line="tutorial.xsl"/>
<!-- <arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/> -->
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="design" depends="init" description="Design principles">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/designprinciples.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="designprinciples.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="license" depends="init" description="License for XOM">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/license.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="license.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="infoset" depends="init" description="Infoset Mapping">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/infoset.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="infoset.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="xpath" depends="init" description="XPath Mapping">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/xpath.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="xpath.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="faq" depends="init" description="FAQ list for XOM">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/faq.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="faq.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="open" depends="init" description="Open Questions list for XOM">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/openquestions.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="openquestions.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="future" depends="init" description="Future Directions for XOM">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/futuredirections.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="futuredirections.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="building" depends="init" description="How to build XOM">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/building.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="building.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="install" depends="init" description="How to install XOM">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/install.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="install.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="testsuite" depends="init" description="How to test XOM">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/testsuite.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="testsuite.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="samples" depends="init" description="Example code">
<java classname="com.icl.saxon.StyleSheet" output="${build.dest}/samples.xhtml" fork="yes" error="${build.dir}/error.txt" failonerror="true">
<arg line="samples.xml"/>
<arg line="/opt/xml/docbook-xsl/xhtml/docbook.xsl"/>
<classpath refid="xerces.class.path"/>
<classpath refid="xslt.class.path"/>
</java>
</target>
<target name="html" depends="init" description="Raw HTML files that don't need to be transformed">
<copy todir="${build.dest}">
<fileset dir=".">
<include name="*.html"/>
<include name="*.txt"/>
</fileset>
</copy>
</target>
<target name="dist" depends="html, tutorial, faq, infoset, xpath, design, future, open, license, testsuite, samples, install, building">
<copy todir="${parentdist.dir}" >
<fileset dir="${build.dest}" includes="**"/>
</copy>
<copy todir="${parentdist.dir}/WEB-INF" >
<fileset dir="WEB-INF" includes="**"/>
</copy>
<copy todir="${parentdist.dir}/whatswrong" >
<fileset dir="whatswrong" includes="**"/>
</copy>
</target>
<target name="clean" depends="init" description="Remove build files">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
</project>
|