Mercurial > hg > mpdl-group
view software/mpdl-services/mpiwg-mpdl-xml-web/build/build.xml @ 19:4a3641ae14d2
Erstellung
author | Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 09 Nov 2011 15:32:05 +0100 |
parents | |
children |
line wrap: on
line source
<!DOCTYPE project> <project name="mpiwg-mpdl-xml-web" default="dist" basedir="../"> <description>mpiwg-mpdl-xml-web</description> <!-- global properties --> <property name="baseLibFile" location="../mpiwg-mpdl-xml/dist/mpiwg-mpdl-xml.jar"/> <property name="src" location="src"/> <property name="lib" location="WebContent/WEB-INF/lib"/> <property name="libTomcat" location="/Applications/java/apache-tomcat-6.0.18/lib"/> <property name="webappTomcat" location="/Applications/java/apache-tomcat-6.0.18/webapps"/> <property name="build" location="build/classes"/> <property name="dist" location="dist"/> <path id="classpath"> <fileset dir="${lib}" includes="**/*.jar"/> <fileset dir="${libTomcat}" includes="**/*.jar"/> </path> <target name="init"> <!-- Create time stamp --> <tstamp/> <mkdir dir="${build}"/> <mkdir dir="${dist}"/> <copy file="${baseLibFile}" todir="${lib}"/> </target> <target name="compile" depends="init" description="compile"> <javac srcdir="${src}" destdir="${build}" classpathref="classpath" includeantruntime="false"/> </target> <target name="dist" depends="compile" description="generate the distribution"> <delete file="WebContent/WEB-INF/classes/constants.properties"/> <copy file="conf/constants.properties" tofile="WebContent/WEB-INF/classes/constants.properties"/> <jar jarfile="${dist}/mpiwg-mpdl-xml-web.jar" basedir="${build}"/> <copy file="dist/mpiwg-mpdl-xml-web.jar" todir="${lib}"/> <war destfile="dist/mpiwg-mpdl-xml-web.war" webxml="WebContent/WEB-INF/web.xml"> <fileset dir="WebContent"/> <lib dir="WebContent/WEB-INF/lib"/> </war> <copy file="dist/mpiwg-mpdl-xml-web.war" todir="${webappTomcat}"/> </target> <target name="dist-remote-mpdl-system" depends="compile" description="generate the distribution"> <delete file="WebContent/WEB-INF/classes/constants.properties"/> <copy file="conf/constants-mpdl-system.properties" tofile="WebContent/WEB-INF/classes/constants.properties"/> <jar jarfile="dist-remote/mpiwg-mpdl-xml-web.jar" basedir="${build}"/> <copy file="dist-remote/mpiwg-mpdl-xml-web.jar" todir="${lib}"/> <war destfile="dist-remote/mpiwg-mpdl-xml-web.war" webxml="WebContent/WEB-INF/web.xml"> <fileset dir="WebContent"/> <lib dir="WebContent/WEB-INF/lib"/> </war> </target> <target name="clean" description="clean" > <delete dir="${build}"/> <delete file="${dist}/mpiwg-mpdl-xml-web.jar"/> </target> </project>