/[projects]/android/TrainInfoService/build.xml
ViewVC logotype

Contents of /android/TrainInfoService/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1069 - (show annotations) (download) (as text)
Thu Sep 16 15:54:20 2010 UTC (13 years, 8 months ago) by torben
File MIME type: text/xml
File size: 2371 byte(s)
Enabled ant builds with TrainInfoCommon
1 <project name="TrainInfoService" default="war">
2 <property name="builddir" value="antbuild" />
3 <property name="warfile" value="${ant.project.name}.war" />
4 <property name="jspdir" value="jspdir" />
5 <property name="glassfish" value="/home/app/glassfishv3/glassfish" />
6
7 <path id="path.base">
8 <fileset dir="WebContent/WEB-INF/lib/">
9 <include name="*.jar" />
10 </fileset>
11 <fileset dir="${glassfish}/modules/">
12 <include name="*.jar" />
13 </fileset>
14 </path>
15
16 <target name="init">
17 <mkdir dir="${builddir}" />
18 </target>
19
20 <target name="libs">
21 <echo message="--CircuitBreaker--" />
22 <ant dir="../CircuitBreaker/" antfile="../CircuitBreaker/build.xml" inheritAll="false" />
23 <echo message="--CircuitBreaker END--" />
24 <copy file="../CircuitBreaker/CircuitBreaker.jar" todir="WebContent/WEB-INF/lib" />
25
26
27 <echo message="--TrainInfoCommon--" />
28 <ant dir="../TrainInfoCommon/" antfile="../TrainInfoCommon/build.xml" inheritAll="false" />
29 <echo message="--TrainInfoCommon END--" />
30 <copy todir="WebContent/WEB-INF/lib">
31 <fileset dir="../TrainInfoCommon">
32 <include name="*.jar"/>
33 </fileset>
34 </copy>
35
36 </target>
37
38
39
40 <target name="compile" depends="init,libs">
41 <javac srcdir="src/" destdir="${builddir}" debug="on" optimize="on" includeantruntime="false">
42 <classpath refid="path.base" />
43 </javac>
44 </target>
45
46 <target name="clean" description="Cleans away all generated files.">
47 <delete dir="${builddir}" />
48 <delete file="${warfile}" />
49 <delete dir="${jspdir}" />
50 </target>
51
52 <target name="jspvalidate" depends="compile">
53 <echo message="executing glassfish jspc" />
54 <exec executable="${glassfish}/bin/jspc" failonerror="true">
55 <arg value="-die1" />
56 <arg value="-d" />
57 <arg value="${jspdir}" />
58 <arg value="-compile" />
59 <arg value="-classpath" />
60 <arg value="${builddir}" />
61 <arg value="-webapp" />
62 <arg value="WebContent" />
63 </exec>
64 </target>
65
66
67 <target name="war" depends="jspvalidate" description="Builds the WAR file for installation.">
68 <war warfile="${warfile}" webxml="WebContent/WEB-INF/web.xml">
69 <!-- lib dir="lib" includes="*.jar" /-->
70 <classes dir="${builddir}" includes="**/*.class" />
71 <fileset dir="WebContent" includes="**" />
72 </war>
73 </target>
74
75 <target name="deploy" depends="war">
76 <copy file="${warfile}" todir="/home/app/domain1/autodeploy" />
77 </target>
78
79
80 </project>

  ViewVC Help
Powered by ViewVC 1.1.20