comparison software/mpdl-services-new/mpiwg-mpdl-cms-web/build/build.xml @ 25:e9fe3186670c default tip

letzter Stand eingecheckt
author Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de>
date Tue, 21 May 2013 10:19:32 +0200
parents
children
comparison
equal deleted inserted replaced
23:e845310098ba 25:e9fe3186670c
1 <!DOCTYPE project>
2 <project name="mpiwg-mpdl-cms-web" default="dist" basedir="../">
3 <description>mpiwg-mpdl-cms-web</description>
4 <!-- global properties -->
5 <property name="baseLibFile" location="../mpiwg-mpdl-cms/dist/mpiwg-mpdl-cms.jar"/>
6 <property name="src" location="src"/>
7 <property name="lib" location="WebContent/WEB-INF/lib"/>
8 <property name="libTomcat" location="/Applications/java/apache-tomcat-7.0.26/lib"/>
9 <property name="webappTomcat" location="/Applications/java/apache-tomcat-7.0.26/webapps"/>
10 <property name="build" location="build/classes"/>
11 <property name="dist" location="dist"/>
12
13 <path id="classpath">
14 <fileset dir="${lib}" includes="**/*.jar"/>
15 <fileset dir="${libTomcat}" includes="**/*.jar"/>
16 </path>
17
18 <target name="init">
19 <!-- Create time stamp -->
20 <tstamp/>
21 <mkdir dir="${build}"/>
22 <mkdir dir="${dist}"/>
23 <copy file="${baseLibFile}" todir="${lib}"/>
24 </target>
25
26 <target name="compile" depends="init" description="compile">
27 <javac srcdir="${src}" destdir="${build}" classpathref="classpath" includeantruntime="false"/>
28 </target>
29
30 <target name="dist" depends="compile" description="generate the distribution">
31 <delete file="WebContent/WEB-INF/classes/constants.properties"/>
32 <copy overwrite="true" file="conf/constants.properties" tofile="WebContent/WEB-INF/classes/constants.properties"/>
33 <jar jarfile="${dist}/mpiwg-mpdl-cms-web.jar" basedir="${build}"/>
34 <copy file="dist/mpiwg-mpdl-cms-web.jar" todir="${lib}"/>
35 <war destfile="dist/mpiwg-mpdl-cms-web.war" webxml="WebContent/WEB-INF/web.xml">
36 <fileset dir="WebContent"/>
37 <lib dir="WebContent/WEB-INF/lib"/>
38 </war>
39 <copy file="dist/mpiwg-mpdl-cms-web.war" todir="${webappTomcat}"/>
40 </target>
41
42 <target name="dist-remote-thrax" depends="compile" description="generate the distribution">
43 <delete file="WebContent/WEB-INF/classes/constants.properties"/>
44 <copy overwrite="true" file="conf/constants-thrax.properties" tofile="WebContent/WEB-INF/classes/constants.properties"/>
45 <jar jarfile="dist-remote/mpiwg-mpdl-cms-web.jar" basedir="${build}"/>
46 <copy file="dist-remote/mpiwg-mpdl-cms-web.jar" todir="${lib}"/>
47 <war destfile="dist-remote/mpiwg-mpdl-cms-web.war" webxml="WebContent/WEB-INF/web.xml">
48 <fileset dir="WebContent"/>
49 <lib dir="WebContent/WEB-INF/lib"/>
50 </war>
51 </target>
52
53 <target name="clean" description="clean" >
54 <delete dir="${build}"/>
55 <delete file="${dist}/mpiwg-mpdl-cms-web.jar"/>
56 </target>
57 </project>