/[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 831 by torben, Thu Jun 10 22:44:23 2010 UTC android/TrainInfoServiceGoogle/build.xml revision 1089 by torben, Tue Sep 21 07:41:42 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" />  
         </target>  
   
   
   
         <target name="compile" depends="init,libs">  
                 <javac srcdir="src/" destdir="${builddir}" debug="off" 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="--CircuitBreaker--" />
29            <ant dir="../CircuitBreaker/" antfile="../CircuitBreaker/build.xml" inheritAll="false" />
30            <echo message="--CircuitBreaker END--" />
31            <copy file="../CircuitBreaker/CircuitBreaker.jar" todir="war/WEB-INF/lib" />
32    
33    
34            <echo message="--TrainInfoCommon--" />
35            <ant dir="../TrainInfoCommon/" antfile="../TrainInfoCommon/build.xml" inheritAll="false" />
36            <echo message="--TrainInfoCommon END--" />
37            <copy todir="war/WEB-INF/lib">
38                <fileset dir="../TrainInfoCommon">
39                    <include name="*.jar"/>
40                </fileset>
41            </copy>
42      </target>
43    
44    
45      <target name="compile" depends="copyjars,libs"
46          description="Compiles Java source and copies other source files to the WAR.">
47        <mkdir dir="war/WEB-INF/classes" />
48        <copy todir="war/WEB-INF/classes">
49          <fileset dir="src">
50            <exclude name="**/*.java" />
51          </fileset>
52        </copy>
53        <javac
54            srcdir="src"
55            destdir="war/WEB-INF/classes"
56            classpathref="project.classpath"
57            debug="on" />
58      </target>
59    
60      <target name="datanucleusenhance" depends="compile"
61          description="Performs JDO enhancement on compiled data classes.">
62        <enhance_war war="war" />
63      </target>
64    
65      <target name="runserver" depends="datanucleusenhance"
66          description="Starts the development server.">
67        <dev_appserver war="war" />
68      </target>
69    
70      <target name="update" depends="datanucleusenhance"
71          description="Uploads the application to App Engine.">
72        <appcfg action="update" war="war" />
73      </target>
74    
75      <target name="update_indexes" depends="datanucleusenhance"
76          description="Uploads just the datastore index configuration to App Engine.">
77        <appcfg action="update_indexes" war="war" />
78      </target>
79    
80      <target name="rollback" depends="datanucleusenhance"
81          description="Rolls back an interrupted application update.">
82        <appcfg action="rollback" war="war" />
83      </target>
84    
85      <target name="request_logs"
86          description="Downloads log data from App Engine for the application.">
87        <appcfg action="request_logs" war="war">
88          <options>
89            <arg value="--num_days=5"/>
90          </options>
91          <args>
92            <arg value="logs.txt"/>
93          </args>
94        </appcfg>
95      </target>
96    
97  </project>  </project>

Legend:
Removed from v.831  
changed lines
  Added in v.1089

  ViewVC Help
Powered by ViewVC 1.1.20