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

Annotation of /android/TrainInfoService/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1611 - (hide annotations) (download) (as text)
Fri Oct 14 14:00:59 2011 UTC (12 years, 7 months ago) by torben
File MIME type: text/xml
File size: 3102 byte(s)
use apache ivy for dependencies - but as for now still needs glassfish dir for jspvalidate target
1 torben 1611 <project name="TrainInfoService" default="war" xmlns:ivy="antlib:org.apache.ivy.ant">
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 1611 <fileset dir="lib/">
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 1611
22 torben 822 <target name="libs">
23 torben 831 <echo message="--CircuitBreaker--" />
24 torben 822 <ant dir="../CircuitBreaker/" antfile="../CircuitBreaker/build.xml" inheritAll="false" />
25 torben 1362 <copy file="../CircuitBreaker/CircuitBreaker.jar" todir="WebContent/WEB-INF/lib" />
26 torben 831 <echo message="--CircuitBreaker END--" />
27 torben 1069
28     <echo message="--TrainInfoCommon--" />
29     <ant dir="../TrainInfoCommon/" antfile="../TrainInfoCommon/build.xml" inheritAll="false" />
30     <copy todir="WebContent/WEB-INF/lib">
31     <fileset dir="../TrainInfoCommon">
32     <include name="*.jar"/>
33     </fileset>
34     </copy>
35 torben 1362 <echo message="--TrainInfoCommon END--" />
36 torben 1320
37     <echo message="--WebConfig--" />
38     <ant dir="../WebConfig/" antfile="../WebConfig/build.xml" inheritAll="false" />
39 torben 1362 <copy file="../WebConfig/WebConfig.jar" todir="WebContent/WEB-INF/lib" />
40 torben 1320 <echo message="--WebConfig END--" />
41 torben 1069
42 torben 1362 <echo message="--GenericJavaUtils--" />
43     <ant dir="../GenericJavaUtils/" antfile="../GenericJavaUtils/build.xml" inheritAll="false" />
44 torben 1363 <copy file="../GenericJavaUtils/GenericJavaUtils.jar" todir="WebContent/WEB-INF/lib" />
45 torben 1362 <echo message="--GenericJavaUtils END--" />
46 torben 822 </target>
47 torben 819
48 torben 822
49 torben 1611 <target name="resolve" depends="init" description="--> retrieve dependencies with ivy">
50     <ivy:retrieve />
51     </target>
52 torben 822
53 torben 1611 <target name="compile" depends="init,libs,resolve">
54 torben 1407 <javac srcdir="src/" destdir="${builddir}" debug="on" optimize="on" includeantruntime="false" encoding="UTF-8">
55 torben 819 <classpath refid="path.base" />
56     </javac>
57     </target>
58    
59     <target name="clean" description="Cleans away all generated files.">
60     <delete dir="${builddir}" />
61 torben 820 <delete file="${warfile}" />
62 torben 824 <delete dir="${jspdir}" />
63 torben 1611 <delete dir="lib" />
64 torben 819 </target>
65    
66 torben 824 <target name="jspvalidate" depends="compile">
67 torben 826 <echo message="executing glassfish jspc" />
68     <exec executable="${glassfish}/bin/jspc" failonerror="true">
69 torben 825 <arg value="-die1" />
70 torben 824 <arg value="-d" />
71     <arg value="${jspdir}" />
72     <arg value="-compile" />
73     <arg value="-classpath" />
74     <arg value="${builddir}" />
75     <arg value="-webapp" />
76     <arg value="WebContent" />
77     </exec>
78     </target>
79 torben 819
80    
81 torben 824 <target name="war" depends="jspvalidate" description="Builds the WAR file for installation.">
82 torben 820 <war warfile="${warfile}" webxml="WebContent/WEB-INF/web.xml">
83     <!-- lib dir="lib" includes="*.jar" /-->
84     <classes dir="${builddir}" includes="**/*.class" />
85     <fileset dir="WebContent" includes="**" />
86     </war>
87     </target>
88 torben 819
89 torben 820 <target name="deploy" depends="war">
90     <copy file="${warfile}" todir="/home/app/domain1/autodeploy" />
91     </target>
92 torben 819
93    
94     </project>

  ViewVC Help
Powered by ViewVC 1.1.20