/[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 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="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" />
5                  <fileset dir="WebContent/WEB-INF/lib/">  
6                          <include name="*.jar" />    <path id="project.classpath">
7                  </fileset>      <pathelement path="war/WEB-INF/classes" />
8                  <fileset dir="/home/app/glassfishv3/glassfish/modules/">      <fileset dir="war/WEB-INF/lib">
9                          <include name="*.jar" />        <include name="**/*.jar" />
10                  </fileset>      </fileset>
11          </path>      <fileset dir="${sdk.dir}/lib">
12          <include name="shared/**/*.jar" />
13          <target name="init">      </fileset>
14                  <mkdir dir="${builddir}" />    </path>
15          </target>  
16      <target name="copyjars"
17          description="Copies the App Engine JARs to the WAR.">
18          <target name="compile" depends="init">      <copy
19                  <javac srcdir="src/" destdir="${builddir}" debug="off" optimize="on" includeantruntime="false">          todir="war/WEB-INF/lib"
20                          <classpath refid="path.base" />          flatten="true">
21                  </javac>        <fileset dir="${sdk.dir}/lib/user">
22          </target>          <include name="**/*.jar" />
23          </fileset>
24          <target name="clean" description="Cleans away all generated files.">      </copy>
25                  <delete dir="${builddir}" />    </target>
26                  <delete file="${ant.project.name}.war" />  
27          </target>    <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="war" depends="compile" description="Builds the WAR file for installation.">    <target name="datanucleusenhance" depends="compile"
61                  <war warfile="${ant.project.name}.war" webxml="WebContent/WEB-INF/web.xml">        description="Performs JDO enhancement on compiled data classes.">
62                  <!-- lib dir="lib" includes="*.jar" /-->      <enhance_war war="war" />
63                  <classes dir="${builddir}" includes="**/*.class" />    </target>
                 <fileset dir="WebContent" includes="**" />  
     </war>  
64    
65      <target name="runserver" depends="datanucleusenhance"
66          description="Starts the development server.">
67        <dev_appserver war="war" />
68    </target>    </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.819  
changed lines
  Added in v.1089

  ViewVC Help
Powered by ViewVC 1.1.20