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

Annotation of /android/TrainInfoServiceGoogle/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1088 - (hide annotations) (download) (as text)
Tue Sep 21 06:19:06 2010 UTC (13 years, 8 months ago) by torben
File MIME type: text/xml
File size: 2780 byte(s)
make sure TrainInfoCommon is in place for ant
1 torben 1080 <project name="Guestbook" default="datanucleusenhance">
2     <property name="sdk.dir" location="/home/torben/inst/appengine-java-sdk-1.3.7/" />
3 torben 819
4 torben 1080 <import file="${sdk.dir}/config/user/ant-macros.xml" />
5 torben 819
6 torben 1080 <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 torben 819
16 torben 1080 <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 torben 1069
27 torben 1088 <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 torben 1080 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 torben 1069
54 torben 1080 <target name="datanucleusenhance" depends="compile"
55     description="Performs JDO enhancement on compiled data classes.">
56     <enhance_war war="war" />
57     </target>
58 torben 1069
59 torben 1080 <target name="runserver" depends="datanucleusenhance"
60     description="Starts the development server.">
61     <dev_appserver war="war" />
62     </target>
63 torben 819
64 torben 1080 <target name="update" depends="datanucleusenhance"
65     description="Uploads the application to App Engine.">
66     <appcfg action="update" war="war" />
67     </target>
68 torben 822
69 torben 1080 <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 torben 822
74 torben 1080 <target name="rollback" depends="datanucleusenhance"
75     description="Rolls back an interrupted application update.">
76     <appcfg action="rollback" war="war" />
77     </target>
78 torben 819
79 torben 1080 <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 torben 819
91     </project>

  ViewVC Help
Powered by ViewVC 1.1.20