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

Annotation of /android/TrainInfoService/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1612 - (hide annotations) (download) (as text)
Fri Oct 14 15:37:38 2011 UTC (12 years, 7 months ago) by torben
File MIME type: text/xml
File size: 3746 byte(s)
use jasper jspc, downloaded via ivy, so now we don't have a compile time dependency on glassfish
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 torben 1612 <mkdir dir="lib" />
19 torben 819 </target>
20    
21 torben 1101
22 torben 1611
23 torben 822 <target name="libs">
24 torben 831 <echo message="--CircuitBreaker--" />
25 torben 822 <ant dir="../CircuitBreaker/" antfile="../CircuitBreaker/build.xml" inheritAll="false" />
26 torben 1362 <copy file="../CircuitBreaker/CircuitBreaker.jar" todir="WebContent/WEB-INF/lib" />
27 torben 831 <echo message="--CircuitBreaker END--" />
28 torben 1069
29     <echo message="--TrainInfoCommon--" />
30     <ant dir="../TrainInfoCommon/" antfile="../TrainInfoCommon/build.xml" inheritAll="false" />
31     <copy todir="WebContent/WEB-INF/lib">
32     <fileset dir="../TrainInfoCommon">
33     <include name="*.jar"/>
34     </fileset>
35     </copy>
36 torben 1362 <echo message="--TrainInfoCommon END--" />
37 torben 1320
38     <echo message="--WebConfig--" />
39     <ant dir="../WebConfig/" antfile="../WebConfig/build.xml" inheritAll="false" />
40 torben 1362 <copy file="../WebConfig/WebConfig.jar" todir="WebContent/WEB-INF/lib" />
41 torben 1320 <echo message="--WebConfig END--" />
42 torben 1069
43 torben 1362 <echo message="--GenericJavaUtils--" />
44     <ant dir="../GenericJavaUtils/" antfile="../GenericJavaUtils/build.xml" inheritAll="false" />
45 torben 1363 <copy file="../GenericJavaUtils/GenericJavaUtils.jar" todir="WebContent/WEB-INF/lib" />
46 torben 1362 <echo message="--GenericJavaUtils END--" />
47 torben 822 </target>
48 torben 819
49 torben 822
50 torben 1611 <target name="resolve" depends="init" description="--> retrieve dependencies with ivy">
51     <ivy:retrieve />
52     </target>
53 torben 822
54 torben 1611 <target name="compile" depends="init,libs,resolve">
55 torben 1407 <javac srcdir="src/" destdir="${builddir}" debug="on" optimize="on" includeantruntime="false" encoding="UTF-8">
56 torben 819 <classpath refid="path.base" />
57     </javac>
58     </target>
59    
60     <target name="clean" description="Cleans away all generated files.">
61     <delete dir="${builddir}" />
62 torben 820 <delete file="${warfile}" />
63 torben 824 <delete dir="${jspdir}" />
64 torben 1611 <delete dir="lib" />
65 torben 819 </target>
66    
67 torben 1612
68 torben 824 <target name="jspvalidate" depends="compile">
69 torben 1612 <taskdef classname="org.apache.jasper.JspC" name="jasper" >
70     <classpath>
71     <path refid="path.base"/>
72     </classpath>
73     </taskdef>
74    
75     <echo message="launching jasper jspc" />
76     <jasper verbose="1"
77     package="src"
78     uriroot="WebContent"
79     webXmlFragment="${build.dir}/generated_web.xml"
80     outputDir="${jspdir}" />
81    
82     <javac srcdir="jspdir/src" destdir="jspdir/" debug="on" optimize="on" includeantruntime="false" encoding="UTF-8">
83     <classpath>
84     <path refid="path.base"/>
85     <pathelement location="${builddir}"/>
86     </classpath>
87     </javac>
88    
89     </target>
90    
91     <!--
92     <target name="jspvalidate" depends="compile">
93 torben 826 <echo message="executing glassfish jspc" />
94     <exec executable="${glassfish}/bin/jspc" failonerror="true">
95 torben 825 <arg value="-die1" />
96 torben 824 <arg value="-d" />
97     <arg value="${jspdir}" />
98     <arg value="-compile" />
99     <arg value="-classpath" />
100     <arg value="${builddir}" />
101     <arg value="-webapp" />
102     <arg value="WebContent" />
103     </exec>
104     </target>
105 torben 1612 -->
106 torben 819
107 torben 824 <target name="war" depends="jspvalidate" description="Builds the WAR file for installation.">
108 torben 820 <war warfile="${warfile}" webxml="WebContent/WEB-INF/web.xml">
109     <!-- lib dir="lib" includes="*.jar" /-->
110     <classes dir="${builddir}" includes="**/*.class" />
111     <fileset dir="WebContent" includes="**" />
112     </war>
113     </target>
114 torben 819
115 torben 820 <target name="deploy" depends="war">
116     <copy file="${warfile}" todir="/home/app/domain1/autodeploy" />
117     </target>
118 torben 819
119    
120     </project>

  ViewVC Help
Powered by ViewVC 1.1.20