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

Annotation of /android/TrainInfoServiceGoogle/build.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1103 - (hide annotations) (download) (as text)
Wed Sep 22 19:11:50 2010 UTC (13 years, 8 months ago) by torben
File MIME type: text/xml
File size: 3141 byte(s)
added a <clean> ant target
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 torben 1103 </target>
26 torben 1069
27 torben 1088 <target name="libs">
28 torben 1089 <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 torben 1088 <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 torben 1080 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 torben 1069
60 torben 1080 <target name="datanucleusenhance" depends="compile"
61     description="Performs JDO enhancement on compiled data classes.">
62     <enhance_war war="war" />
63     </target>
64 torben 1069
65 torben 1080 <target name="runserver" depends="datanucleusenhance"
66     description="Starts the development server.">
67     <dev_appserver war="war" />
68     </target>
69 torben 819
70 torben 1080 <target name="update" depends="datanucleusenhance"
71     description="Uploads the application to App Engine.">
72     <appcfg action="update" war="war" />
73     </target>
74 torben 822
75 torben 1080 <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 torben 822
80 torben 1080 <target name="rollback" depends="datanucleusenhance"
81     description="Rolls back an interrupted application update.">
82     <appcfg action="rollback" war="war" />
83     </target>
84 torben 819
85 torben 1080 <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 torben 819
97 torben 1103 <target name="clean">
98     <delete dir="war/WEB-INF/classes" />
99     </target>
100    
101 torben 819 </project>

  ViewVC Help
Powered by ViewVC 1.1.20