Page MenuHomeHEPForge

build.xml
No OneTemporary

build.xml

<project name="HepData" default="all" basedir=".">
<!-- External property defns -->
<property file="${user.home}/build.properties"/>
<property file="build.properties"/>
<property name="compile.debug" value="true"/>
<property name="compile.deprecation" value="false"/>
<property name="compile.optimize" value="true"/>
<!-- Classpaths -->
<path id="classpath">
<fileset dir="${java.root}"><include name="${ant.home}/lib/*.jar"/></fileset>
<fileset dir="${java.root}"><include name="${jwsdp.home}/jaxp/lib/endorsed/*.jar"/></fileset>
<fileset dir="${java.root}"><include name="${lib.path}/*.jar"/></fileset>
<fileset dir="${user.home}"><include name="local/java/lib/*.jar"/></fileset>
</path>
<!-- Build targets -->
<target name="all" depends="clean,compile" description="Cleans first, then compiles"/>
<target name="compile" depends="prepare" description="Compiles the source code">
<echo message="Compiling the source code...."/>
<javac srcdir="${src.home}" destdir="${build.home}"
debug="on" deprecation="on" compiler="modern">
<classpath refid="classpath" />
<compilerarg value="-Xlint:unchecked" />
</javac>
</target>
<target name="prepare" description="Creates the build and dist directories">
<echo message="Creating the required directories...." />
<mkdir dir="${build.home}" />
<mkdir dir="${dist.home}" />
</target>
<target name="clean" description="Removes the build, dist and WEB-INF directories">
<delete dir="${build.home}" />
<delete dir="${dist.home}" />
</target>
<target name="debug" >
<echo message="**Debug**" />
<echo message=" ${build.home}" />
<echo message=" ${src.home}" />
</target>
<!-- Test Hibernate -->
<target name="hdom-test" depends="compile">
<copy todir="${build.home}">
<fileset dir="${src.home}">
<exclude name="**/*.java"/>
</fileset>
</copy>
<java fork="true" classname="cedar.hepdata.test.HDOMTest" classpathref="classpath">
<classpath path="${build.home}" />
<arg value="store"/>
<arg value="My other paper"/>
<arg value="54635774"/>
</java>
</target>
<!-- Test units -->
<target name="unit-test" depends="compile">
<copy todir="${build.home}">
<fileset dir="${src.home}">
<exclude name="**/*.java"/>
</fileset>
</copy>
<java fork="true" classname="cedar.hepdata.test.UnitTest" classpathref="classpath">
<classpath path="${build.home}" />
</java>
</target>
<!-- Documentation -->
<target name="doc" description="Writes JavaDoc">
<mkdir dir="doc"/>
<tstamp/>
<javadoc destdir="doc" author="true" version="true" use="true" windowtitle="Hepdata API">
<classpath refid="classpath"/>
<fileset dir="${src.home}/cedar/hepdata" defaultexcludes="yes">
<exclude name="*/*.html"/>
<exclude name="db/*"/>
<exclude name="file/*"/>
<exclude name="control/*"/>
<exclude name="util/*"/>
</fileset>
<doctitle><![CDATA[<h1>Hepdata Model</h1>]]></doctitle>
<footer>Generated ${DSTAMP} ${TSTAMP}</footer>
<bottom><![CDATA[<i>HEPData</i>]]></bottom>
<group title="data file input" packages="cedar.hepdata.file"/>
<group title="database communication" packages="cedar.hepdata.db"/>
<group title="control" packages="cedar.hepdata.control"/>
<group title="xml" packages="cedar.hepdata.xml"/>
<group title="data object model" packages="cedar.hepdata.model"/>
<group title="utility" packages="cedar.hepdata.util"/>
</javadoc>
</target>
<!-- Graphs built by Linguine Maps -->
<taskdef name="ant2gif" classname="com.oy.shared.lm.ant.ANTtoGIFTask" classpath="${java.root}/lib/oy-lm-1.4.jar" />
<taskdef name="ojb2gif" classname="com.oy.shared.lm.ant.OJBtoGIFTask" classpath="${java.root}/lib/oy-lm-1.4.jar" />
<taskdef name="hbm2gif" classname="com.oy.shared.lm.ant.HBMtoGIFTask" classpath="${java.root}/lib/oy-lm-1.4.jar" />
<taskdef name="dtd2gif" classname="com.oy.shared.lm.ant.DTDtoGIFTask" classpath="${java.root}/lib/oy-lm-1.4.jar" />
<taskdef name="wsdl2gif" classname="com.oy.shared.lm.ant.WSDLtoGIFTask" classpath="${java.root}/lib/oy-lm-1.4.jar" />
<target name="graphs" description="Builds graphs of the Hibernate relational structure">
<hbm2gif caption="Hibernate HepData Object Model" rotated="true" colors="orange, black, black"
dotFile="HDOM.dot" outFile="HDOM.png" exeFile="${dot.exe}">
<fileset dir="${src.home}/cedar/hepdata">
<include name="**/*.hbm.xml"/>
</fileset>
</hbm2gif>
</target>
</project>

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 12:36 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4022794
Default Alt Text
build.xml (4 KB)

Event Timeline