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

Diff of /android/TrainInfoServiceGoogle/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

android/TrainInfoService/build.xml revision 1069 by torben, Thu Sep 16 15:54:20 2010 UTC android/TrainInfoServiceGoogle/build.xml revision 1088 by torben, Tue Sep 21 06:19:06 2010 UTC
# Line 1  Line 1 
1  <project name="TrainInfoService" default="war">  <project name="Guestbook" default="datanucleusenhance">
2          <property name="builddir" value="antbuild" />    <property name="sdk.dir" location="/home/torben/inst/appengine-java-sdk-1.3.7/" />
         <property name="warfile" value="${ant.project.name}.war" />  
         <property name="jspdir" value="jspdir" />  
         <property name="glassfish" value="/home/app/glassfishv3/glassfish" />  
   
         <path id="path.base">  
                 <fileset dir="WebContent/WEB-INF/lib/">  
                         <include name="*.jar" />  
                 </fileset>  
                 <fileset dir="${glassfish}/modules/">  
                         <include name="*.jar" />  
                 </fileset>  
         </path>  
   
         <target name="init">  
                 <mkdir dir="${builddir}" />  
         </target>  
   
         <target name="libs">  
                 <echo message="--CircuitBreaker--" />  
                 <ant dir="../CircuitBreaker/" antfile="../CircuitBreaker/build.xml" inheritAll="false" />  
                 <echo message="--CircuitBreaker END--" />  
                 <copy file="../CircuitBreaker/CircuitBreaker.jar" todir="WebContent/WEB-INF/lib" />  
   
   
                 <echo message="--TrainInfoCommon--" />  
                 <ant dir="../TrainInfoCommon/" antfile="../TrainInfoCommon/build.xml" inheritAll="false" />  
                 <echo message="--TrainInfoCommon END--" />  
                 <copy todir="WebContent/WEB-INF/lib">  
                         <fileset dir="../TrainInfoCommon">  
                                 <include name="*.jar"/>  
                         </fileset>  
                 </copy>  
   
         </target>  
   
   
   
         <target name="compile" depends="init,libs">  
                 <javac srcdir="src/" destdir="${builddir}" debug="on" optimize="on" includeantruntime="false">  
                         <classpath refid="path.base" />  
                 </javac>  
         </target>  
   
         <target name="clean" description="Cleans away all generated files.">  
                 <delete dir="${builddir}" />  
                 <delete file="${warfile}" />  
                 <delete dir="${jspdir}" />  
         </target>  
   
         <target name="jspvalidate" depends="compile">  
                 <echo message="executing glassfish jspc" />  
                 <exec executable="${glassfish}/bin/jspc" failonerror="true">  
                         <arg value="-die1" />  
                         <arg value="-d" />  
                         <arg value="${jspdir}" />  
                         <arg value="-compile" />  
                         <arg value="-classpath" />  
                         <arg value="${builddir}" />  
                         <arg value="-webapp" />  
                         <arg value="WebContent" />  
                 </exec>  
         </target>  
   
   
         <target name="war" depends="jspvalidate" description="Builds the WAR file for installation.">  
                 <war warfile="${warfile}" webxml="WebContent/WEB-INF/web.xml">  
                         <!-- lib dir="lib" includes="*.jar" /-->  
                         <classes dir="${builddir}" includes="**/*.class" />  
                         <fileset dir="WebContent" includes="**" />  
                 </war>  
         </target>  
   
         <target name="deploy" depends="war">  
                 <copy file="${warfile}" todir="/home/app/domain1/autodeploy" />  
         </target>  
3    
4      <import file="${sdk.dir}/config/user/ant-macros.xml" />
5    
6      <path id="project.classpath">
7        <pathelement path="war/WEB-INF/classes" />
8        <fileset dir="war/WEB-INF/lib">
9          <include name="**/*.jar" />
10        </fileset>
11        <fileset dir="${sdk.dir}/lib">
12          <include name="shared/**/*.jar" />
13        </fileset>
14      </path>
15    
16      <target name="copyjars"
17          description="Copies the App Engine JARs to the WAR.">
18        <copy
19            todir="war/WEB-INF/lib"
20            flatten="true">
21          <fileset dir="${sdk.dir}/lib/user">
22            <include name="**/*.jar" />
23          </fileset>
24        </copy>
25      </target>
26    
27      <target name="libs">
28            <echo message="--TrainInfoCommon--" />
29            <ant dir="../TrainInfoCommon/" antfile="../TrainInfoCommon/build.xml" inheritAll="false" />
30            <echo message="--TrainInfoCommon END--" />
31            <copy todir="war/WEB-INF/lib">
32                <fileset dir="../TrainInfoCommon">
33                    <include name="*.jar"/>
34                </fileset>
35            </copy>
36      </target>
37    
38    
39      <target name="compile" depends="copyjars,libs"
40          description="Compiles Java source and copies other source files to the WAR.">
41        <mkdir dir="war/WEB-INF/classes" />
42        <copy todir="war/WEB-INF/classes">
43          <fileset dir="src">
44            <exclude name="**/*.java" />
45          </fileset>
46        </copy>
47        <javac
48            srcdir="src"
49            destdir="war/WEB-INF/classes"
50            classpathref="project.classpath"
51            debug="on" />
52      </target>
53    
54      <target name="datanucleusenhance" depends="compile"
55          description="Performs JDO enhancement on compiled data classes.">
56        <enhance_war war="war" />
57      </target>
58    
59      <target name="runserver" depends="datanucleusenhance"
60          description="Starts the development server.">
61        <dev_appserver war="war" />
62      </target>
63    
64      <target name="update" depends="datanucleusenhance"
65          description="Uploads the application to App Engine.">
66        <appcfg action="update" war="war" />
67      </target>
68    
69      <target name="update_indexes" depends="datanucleusenhance"
70          description="Uploads just the datastore index configuration to App Engine.">
71        <appcfg action="update_indexes" war="war" />
72      </target>
73    
74      <target name="rollback" depends="datanucleusenhance"
75          description="Rolls back an interrupted application update.">
76        <appcfg action="rollback" war="war" />
77      </target>
78    
79      <target name="request_logs"
80          description="Downloads log data from App Engine for the application.">
81        <appcfg action="request_logs" war="war">
82          <options>
83            <arg value="--num_days=5"/>
84          </options>
85          <args>
86            <arg value="logs.txt"/>
87          </args>
88        </appcfg>
89      </target>
90    
91  </project>  </project>

Legend:
Removed from v.1069  
changed lines
  Added in v.1088

  ViewVC Help
Powered by ViewVC 1.1.20