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

Annotation of /android/TrainInfoServiceGoogle/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1069 - (hide annotations) (download) (as text)
Thu Sep 16 15:54:20 2010 UTC (13 years, 8 months ago) by torben
Original Path: android/TrainInfoService/build.xml
File MIME type: text/xml
File size: 2371 byte(s)
Enabled ant builds with TrainInfoCommon
1 torben 819 <project name="TrainInfoService" default="war">
2 torben 820 <property name="builddir" value="antbuild" />
3     <property name="warfile" value="${ant.project.name}.war" />
4 torben 824 <property name="jspdir" value="jspdir" />
5 torben 826 <property name="glassfish" value="/home/app/glassfishv3/glassfish" />
6 torben 819
7     <path id="path.base">
8     <fileset dir="WebContent/WEB-INF/lib/">
9     <include name="*.jar" />
10     </fileset>
11 torben 826 <fileset dir="${glassfish}/modules/">
12 torben 819 <include name="*.jar" />
13     </fileset>
14     </path>
15    
16     <target name="init">
17     <mkdir dir="${builddir}" />
18     </target>
19    
20 torben 822 <target name="libs">
21 torben 831 <echo message="--CircuitBreaker--" />
22 torben 822 <ant dir="../CircuitBreaker/" antfile="../CircuitBreaker/build.xml" inheritAll="false" />
23 torben 831 <echo message="--CircuitBreaker END--" />
24 torben 822 <copy file="../CircuitBreaker/CircuitBreaker.jar" todir="WebContent/WEB-INF/lib" />
25 torben 1069
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 torben 822 </target>
37 torben 819
38 torben 822
39    
40     <target name="compile" depends="init,libs">
41 torben 863 <javac srcdir="src/" destdir="${builddir}" debug="on" optimize="on" includeantruntime="false">
42 torben 819 <classpath refid="path.base" />
43     </javac>
44     </target>
45    
46     <target name="clean" description="Cleans away all generated files.">
47     <delete dir="${builddir}" />
48 torben 820 <delete file="${warfile}" />
49 torben 824 <delete dir="${jspdir}" />
50 torben 819 </target>
51    
52 torben 824 <target name="jspvalidate" depends="compile">
53 torben 826 <echo message="executing glassfish jspc" />
54     <exec executable="${glassfish}/bin/jspc" failonerror="true">
55 torben 825 <arg value="-die1" />
56 torben 824 <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 torben 819
66    
67 torben 824 <target name="war" depends="jspvalidate" description="Builds the WAR file for installation.">
68 torben 820 <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 torben 819
75 torben 820 <target name="deploy" depends="war">
76     <copy file="${warfile}" todir="/home/app/domain1/autodeploy" />
77     </target>
78 torben 819
79    
80     </project>

  ViewVC Help
Powered by ViewVC 1.1.20