/[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 1079 by torben, Thu Sep 16 15:54:20 2010 UTC android/TrainInfoServiceGoogle/build.xml revision 1080 by torben, Mon Sep 20 20:11:55 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="compile" depends="copyjars"
28          description="Compiles Java source and copies other source files to the WAR.">
29        <mkdir dir="war/WEB-INF/classes" />
30        <copy todir="war/WEB-INF/classes">
31          <fileset dir="src">
32            <exclude name="**/*.java" />
33          </fileset>
34        </copy>
35        <javac
36            srcdir="src"
37            destdir="war/WEB-INF/classes"
38            classpathref="project.classpath"
39            debug="on" />
40      </target>
41    
42      <target name="datanucleusenhance" depends="compile"
43          description="Performs JDO enhancement on compiled data classes.">
44        <enhance_war war="war" />
45      </target>
46    
47      <target name="runserver" depends="datanucleusenhance"
48          description="Starts the development server.">
49        <dev_appserver war="war" />
50      </target>
51    
52      <target name="update" depends="datanucleusenhance"
53          description="Uploads the application to App Engine.">
54        <appcfg action="update" war="war" />
55      </target>
56    
57      <target name="update_indexes" depends="datanucleusenhance"
58          description="Uploads just the datastore index configuration to App Engine.">
59        <appcfg action="update_indexes" war="war" />
60      </target>
61    
62      <target name="rollback" depends="datanucleusenhance"
63          description="Rolls back an interrupted application update.">
64        <appcfg action="rollback" war="war" />
65      </target>
66    
67      <target name="request_logs"
68          description="Downloads log data from App Engine for the application.">
69        <appcfg action="request_logs" war="war">
70          <options>
71            <arg value="--num_days=5"/>
72          </options>
73          <args>
74            <arg value="logs.txt"/>
75          </args>
76        </appcfg>
77      </target>
78    
79  </project>  </project>

Legend:
Removed from v.1079  
changed lines
  Added in v.1080

  ViewVC Help
Powered by ViewVC 1.1.20