/[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 819 by torben, Thu Jun 10 09:24:27 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="build" />    <property name="sdk.dir" location="/home/torben/inst/appengine-java-sdk-1.3.7/" />
3    
4          <path id="path.base">    <import file="${sdk.dir}/config/user/ant-macros.xml" />
                 <fileset dir="WebContent/WEB-INF/lib/">  
                         <include name="*.jar" />  
                 </fileset>  
                 <fileset dir="/home/app/glassfishv3/glassfish/modules/">  
                         <include name="*.jar" />  
                 </fileset>  
         </path>  
   
         <target name="init">  
                 <mkdir dir="${builddir}" />  
         </target>  
   
   
         <target name="compile" depends="init">  
                 <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="${ant.project.name}.war" />  
         </target>  
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="war" depends="compile" description="Builds the WAR file for installation.">    <target name="compile" depends="copyjars,libs"
40                  <war warfile="${ant.project.name}.war" webxml="WebContent/WEB-INF/web.xml">        description="Compiles Java source and copies other source files to the WAR.">
41                  <!-- lib dir="lib" includes="*.jar" /-->      <mkdir dir="war/WEB-INF/classes" />
42                  <classes dir="${builddir}" includes="**/*.class" />      <copy todir="war/WEB-INF/classes">
43                  <fileset dir="WebContent" includes="**" />        <fileset dir="src">
44      </war>          <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>    </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.819  
changed lines
  Added in v.1088

  ViewVC Help
Powered by ViewVC 1.1.20