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

Annotation of /android/TrainInfoService/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1101 - (hide annotations) (download) (as text)
Wed Sep 22 10:01:17 2010 UTC (13 years, 8 months ago) by torben
File MIME type: text/xml
File size: 2372 byte(s)
dummy commit to test hudson scm triggered build
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 1101
21 torben 822 <target name="libs">
22 torben 831 <echo message="--CircuitBreaker--" />
23 torben 822 <ant dir="../CircuitBreaker/" antfile="../CircuitBreaker/build.xml" inheritAll="false" />
24 torben 831 <echo message="--CircuitBreaker END--" />
25 torben 822 <copy file="../CircuitBreaker/CircuitBreaker.jar" todir="WebContent/WEB-INF/lib" />
26 torben 1069
27    
28     <echo message="--TrainInfoCommon--" />
29     <ant dir="../TrainInfoCommon/" antfile="../TrainInfoCommon/build.xml" inheritAll="false" />
30     <echo message="--TrainInfoCommon END--" />
31     <copy todir="WebContent/WEB-INF/lib">
32     <fileset dir="../TrainInfoCommon">
33     <include name="*.jar"/>
34     </fileset>
35     </copy>
36    
37 torben 822 </target>
38 torben 819
39 torben 822
40    
41     <target name="compile" depends="init,libs">
42 torben 863 <javac srcdir="src/" destdir="${builddir}" debug="on" optimize="on" includeantruntime="false">
43 torben 819 <classpath refid="path.base" />
44     </javac>
45     </target>
46    
47     <target name="clean" description="Cleans away all generated files.">
48     <delete dir="${builddir}" />
49 torben 820 <delete file="${warfile}" />
50 torben 824 <delete dir="${jspdir}" />
51 torben 819 </target>
52    
53 torben 824 <target name="jspvalidate" depends="compile">
54 torben 826 <echo message="executing glassfish jspc" />
55     <exec executable="${glassfish}/bin/jspc" failonerror="true">
56 torben 825 <arg value="-die1" />
57 torben 824 <arg value="-d" />
58     <arg value="${jspdir}" />
59     <arg value="-compile" />
60     <arg value="-classpath" />
61     <arg value="${builddir}" />
62     <arg value="-webapp" />
63     <arg value="WebContent" />
64     </exec>
65     </target>
66 torben 819
67    
68 torben 824 <target name="war" depends="jspvalidate" description="Builds the WAR file for installation.">
69 torben 820 <war warfile="${warfile}" webxml="WebContent/WEB-INF/web.xml">
70     <!-- lib dir="lib" includes="*.jar" /-->
71     <classes dir="${builddir}" includes="**/*.class" />
72     <fileset dir="WebContent" includes="**" />
73     </war>
74     </target>
75 torben 819
76 torben 820 <target name="deploy" depends="war">
77     <copy file="${warfile}" todir="/home/app/domain1/autodeploy" />
78     </target>
79 torben 819
80    
81     </project>

  ViewVC Help
Powered by ViewVC 1.1.20