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 name="init">
<echo message="Building BibServ war file" />
<taskdef name="transmorph"
<tstamp><format locale="fr,fr" pattern="dd/MM/yyyy" property="TODAY"/></tstamp>
<property name="date" value="${TODAY}"/>
<property name="url" value=""/>
<property name="xsl" value=""/>
<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"/>
<echo message=" url = ${url}"/>
<echo message=" xsl = ${xsl}"/>
<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 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>
<target name="compile" depends="codegen">
<echo message="Compiling..."/>
<javac srcdir="WEB-INF/output" destdir="WEB-INF/classes">
<classpath refid="classpath"/>
<target name="war" depends="compile">
<echo message="Warchiving..."/>
<copy todir="WEB-INF/xslt">
<fileset dir="../../biblio/xslt" includes="*.xsl,*.css"/>
<!-- keep only those required -->
<copy todir="WEB-INF/lib">
<fileset dir="../../../lib" includes="*.jar"/>
<jar jarfile="../BibServ.war">
<fileset dir="." excludes="RCS/**,CVS/**"/>
<!-- we must do some clean up in lib and xslt -->
<!-- beware: select.xsl is unique there! -->
<!--antcall task="cleanup"/-->
<target name="cleanup">
<delete file="../BibServ.war"/>
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