svn://scm.gforge.inria.fr/svnroot/vison
Tip revision: 0f7b5eb80ed38c78d80cc5f33030aa2d8939cd2b authored by euzenat on 13 February 2007, 13:42:55 UTC
- Introduced warnings
- Introduced warnings
Tip revision: 0f7b5eb
build.xml
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- $Id$ -->
<project name="vison" default="compile" basedir=".">
<!-- tested -->
<target name="usage" depends="init">
<echo message="sh ant _target_ _options_"/>
<echo/>
<echo message="usage: this message"/>
<echo message="init: sets necessary variables"/>
<echo message="install: get necessary libraries"/>
<echo message="upgrade: update necessary alignapi and ola libraries"/>
<echo message="compile: incrementaly compiles sources"/>
<echo message="run: launch the interface"/>
<echo message="compileall: recompiles all sources"/>
<echo message="jar: archives compiled code"/>
<echo message="test: performs unit tests [nyi]"/>
<echo message="zip: creates a new zip file"/>
<echo message="javadoc: generates documentation"/>
<echo message="release: releases a new version [nyi]"/>
<echo message="clean: clean-up the release directory"/>
<echo/>
<echo message=" -Dversion=${version}"/>
</target>
<!-- tested -->
<target name="init">
<tstamp><format locale="fr,fr" pattern="dd/MM/yyyy" property="TODAY"/></tstamp>
<property name="doing" value="running"/>
<property name="version" value="1-0-0${doing}"/>
<property name="date" value="${TODAY}"/>
<property name="login" value="euzenat"/>
<property name="email" value="Jerome.Euzenat@inrialpes.fr"/>
<property name="libdir" value="lib" />
<property name="debug" value="off"/>
<property name="olapath" value="../ola/lib/ola.jar"/> <property name="WebDir" value="/Volumes/Phata/Web/html/co4/align"/>
<property name="WebDir" value="/Volumes/Phata/Web/html/co4/align"/>
<property name="classpath" value="classes"/>
<property name="runvison" value="ca.umontreal.iro.vison.gui.GUI"/>
<filter token="DATE" value="${date}"/>
<filter token="VERS" value="${version}"/>
<path id="classpath">
<fileset dir="./lib">
<include name="*.jar"/>
</fileset>
</path>
<property name="vison" value="$HOME/Documents/Research/Software/Local/OLA/vison"/>
<path id="vison">
<fileset dir="$HOME/Documents/Research/Software/Local/OLA/vison"/>
</path>
</target>
<!-- tested -->
<target name="install" depends="init">
<echo message="Installing.."/>
<mkdir dir="classes" />
<copy file="../alignapi/lib/io.jar" tofile="lib/io.jar"/>
<copy file="../alignapi/lib/api.jar" tofile="lib/api.jar"/>
<copy file="../alignapi/lib/rdfparser.jar" tofile="lib/rdfparser.jar"/>
<copy file="../alignapi/lib/rdfapi.jar" tofile="lib/rdfapi.jar"/>
<copy file="../alignapi/lib/impl.jar" tofile="lib/impl.jar"/>
<copy file="../alignapi/lib/jwnl.jar" tofile="lib/jwnl.jar"/>
<copy file="../alignapi/lib/getopt.jar" tofile="lib/getopt.jar"/>
<copy file="../alignapi/lib/log4j.jar" tofile="lib/log4j.jar"/>
<antcall target="upgrade" />
</target>
<!-- tested -->
<target name="upgrade" depends="init">
<echo message="Upgrading..."/>
<copy file="../alignapi/lib/align.jar" tofile="lib/align.jar"/>
<copy file="../alignapi/lib/procalign.jar" tofile="lib/procalign.jar"/>
<copy file="../alignapi/lib/alignwn.jar" tofile="lib/alignwn.jar"/>
<copy file="../ola/lib/olgraph.jar" tofile="lib/olgraph.jar"/>
<copy file="../ola/lib/procola.jar" tofile="lib/procola.jar"/>
</target>
<!-- tested -->
<target name="compile" depends="init">
<echo message="Compiling..."/>
<javac srcdir="src" destdir="classes">
<classpath refid="classpath"/>
</javac>
</target>
<target name="compileall" depends="init">
<echo message="Erasing..."/>
<delete>
<fileset dir="classes" includes="**/*.class"/>
</delete>
<antcall target="compile"/>
</target>
<!-- tested -->
<target name="jar" depends="compile">
<echo message="Jarchiving..."/>
<copy file="distrib/LICENSE.TXT" tofile="classes/LICENSE.TXT" filtering="true"/>
<delete file="lib/vison.jar" />
<jar jarfile="lib/vison.jar" manifest="distrib/MANIFEST.MF">
<fileset dir="classes" includes="**/*.class"/>
<!--fileset dir="resources" includes="*.properties"/-->
<fileset dir="classes" includes="LICENSE.TXT"/>
</jar>
</target>
<target name="test" depends="init">
<echo message="Testing..."/>
<!-- <javac srcdir="test/fr/fluxmedia/transmorpher/graph/rules"
debug="on" destdir="classes">
<classpath refid="classpath"/>
</javac> -->
<javac srcdir="test/fr/fluxmedia/" debug="on" destdir="classes">
<classpath refid="classpath"/>
</javac>
<antcall target="jar"/>
<junit printsummary="yes" fork="yes" haltonfailure="no">
<batchtest todir="test/reports/xml/">
<fileset dir="classes/">
<include name="**/*Test.class"/>
<exclude name="**/Test.class"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath refid="classpath"/>
</junit>
<junitreport todir="test/reports">
<fileset dir="test/reports/xml/">
<include name="TEST-*.xml"/>
</fileset>
<report todir="test/reports/html/"/>
</junitreport>
</target>
<target name="local deployement" depends="jar,upgrade">
<echo message="Deploying vison under /Applications/eclipse/workspace/vison"/>
<echo message="Creating folder... "/>
<echo message="${vison}"/>
<mkdir dir="${vison}"/>
<mkdir dir="${vison}/algorithms"/>
<echo message="copy *.jar..."/>
<copy todir="${vison}">
<fileset dir="${libdir}">
<include name= "*.jar"/>
</fileset>
</copy>
<echo message="copy parameters files..."/>
<copy todir="${vison}/algorithms">
<fileset dir="algorithms">
<include name= "*.*"/>
</fileset>
</copy>
<echo message="copy *.wordnet parameters..."/>
<copy todir="${vison}">
<fileset dir="">
<include name= "*.properties"/>
<include name= "*.xml"/>
</fileset>
</copy>
</target>
<target name="run" depends="init" >
<!-- run the class -->
<java classname="${runvison}" fork = "true">
<classpath>
<!-- use the value of the ${classpath} property in the classpath -->
<pathelement path="${classpath}"/>
<!-- include all jar files -->
<fileset dir="${libdir}">
<include name="**/*.jar"/>
</fileset>
</classpath>
</java>
</target>
<!-- tested -->
<target name="javadoc">
<echo message="Javadocing..."/>
<javadoc
sourcepath="src" destdir="javadoc"
packagenames="fr.inrialpes.*,org.semanticweb.owl.align.*"
Use="true" Splitindex="true" private="true"
Windowtitle="VisOn"
Doctitle="alignmebr" Header="INRIA & UMontréal"
bottom="..no bottom yet..."
>
<!--link href="http://www.inrialpes.fr/exmo/local/doc/jdk1.3-doc/api"/>
<link href="http://www.inrialpes.fr/exmo/local/doc/xerces-doc/apiDocs"/>
<link href="http://www.inrialpes.fr/exmo/local/doc/xalan-doc/apidocs"/>
<link href="http://www.inrialpes.fr/exmo/local/doc/SAX2-doc/javadoc"/-->
</javadoc>
</target>
<target name="release" depends="init">
<antcall target="zip"/>
</target>
<!-- tested -->
<target name="zip" depends="jar">
<echo message="Ziping..."/>
<!--copy todir="${WebDir}">
<fileset dir="html" includes="**/*.html"/>
</copy-->
<!--copy todir="${WebDir}">
<fileset dir="/Users/euzenat/Papiers/Align\ paper/align.pdf"/>
</copy-->
<!-- zip everything from outside -->
<zip zipfile="${WebDir}/align.zip">
<fileset dir="." includes="**/*"/>
</zip>
</target>
<target name="clean">
<echo message="Cleaning..."/>
</target>
</project>