Commit f2024c20 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

a build file for the WAR

parent 486adf7f
<!-- $Id: build.xml,v 1.1 2003-11-19 14:58:04 jerome Exp $ -->
<project name="Bibserv" default="war" basedir="WAR">
<target name="usage" depends="init">
<echo message="sh ../../scripts/ant -Durl=URL -Dxsl=URL" />
</target>
<target name="init">
<echo message="Building BibServ war file" />
<taskdef name="transmorph"
classname="fr.fluxmedia.transmorpher.application.TransmorphTask"
classpath="../../../lib/transmo.jar"/>
<tstamp><format locale="fr,fr" pattern="dd/MM/yyyy" property="TODAY"/></tstamp>
<property name="date" value="${TODAY}"/>
<property name="url" value="http://www.inrialpes.fr/exmo/papers/xml/"/>
<property name="xsl" value="http://exmo.inrialpes.fr/xslt"/>
<path id="classpath">
<fileset dir="../../../lib">
<include name="${CATALINA_HOME}/common/lib/servlet.jar"/>
<!--include name="*.jar"/-->
<include name="transmo.jar"/>
<include name="xml-apis.jar"/>
<include name="servlet.jar"/>
</fileset>
</path>
<echo message=" url = ${url}"/>
<echo message=" xsl = ${xsl}"/>
</target>
<target name="codegen" depends="init">
<echo message="Generating code..." />
<transmorph debug="0" reloc="WAR/WEB-INF/output" mode="compile" srcfile="process.xml" message="Biblio">
<!--param name="urlbase" value="${url}"/-->
<!--param name="xslbase" value="${xsl}"/-->
</transmorph>
<transmorph debug="0" reloc="WAR/WEB-INF/output" mode="compile" srcfile="process-bib.xml" message="Bibref">
<!--param name="urlbase" value="${url}"/-->
<!--param name="xslbase" value="${xsl}"/-->
<param name="xslbase">${xsl}</param>
</transmorph>
</target>
<target name="compile" depends="codegen">
<echo message="Compiling..."/>
<javac srcdir="WEB-INF/output" destdir="WEB-INF/classes">
<classpath refid="classpath"/>
</javac>
</target>
<target name="war" depends="compile">
<echo message="Warchiving..."/>
<copy todir="WEB-INF/xslt">
<fileset dir="../../biblio/xslt" includes="*.xsl,*.css"/>
</copy>
<!-- keep only those required -->
<copy todir="WEB-INF/lib">
<fileset dir="../../../lib" includes="*.jar"/>
</copy>
<jar jarfile="../BibServ.war">
<fileset dir="." excludes="RCS/**,CVS/**"/>
</jar>
<!-- we must do some clean up in lib and xslt -->
<!-- beware: select.xsl is unique there! -->
<!--antcall task="cleanup"/-->
</target>
<target name="cleanup">
<delete file="../BibServ.war"/>
</target>
</project>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment