Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 67 lines (56 sloc) 2.284 kb
2162e7ae » Tom Robinson
2009-04-14 Initial commit of v2 of the Jack servlet
1 <?xml version="1.0"?>
2 <project>
3 <property environment="env"/>
4 <property name="sdk.dir" location="${env.APPENGINE_JAVA_SDK}"/>
5
6 <import file="${sdk.dir}/config/user/ant-macros.xml"/>
7
8 <path id="project.classpath">
9 <pathelement path="war/WEB-INF/classes"/>
10 <fileset dir="war/WEB-INF/lib">
11 <include name="**/*.jar"/>
12 </fileset>
13 <fileset dir="${sdk.dir}/lib">
14 <include name="shared/**/*.jar"/>
15 </fileset>
16 </path>
17
18 <target name="copyjars" description="Copies the App Engine JARs to the WAR.">
19 <copy todir="war/WEB-INF/lib" flatten="true">
20 <fileset dir="${sdk.dir}/lib/user">
21 <include name="**/*.jar"/>
22 </fileset>
23 </copy>
24 </target>
25
26 <target name="compile" depends="copyjars" description="Compiles Java source and copies other source files to the WAR.">
27 <mkdir dir="war/WEB-INF/classes"/>
28 <copy todir="war/WEB-INF/classes">
29 <fileset dir="src">
30 <exclude name="**/*.java"/>
31 </fileset>
32 </copy>
33 <javac srcdir="src" destdir="war/WEB-INF/classes" classpathref="project.classpath" debug="on"/>
34 </target>
35
36 <target name="datanucleusenhance" depends="compile" description="Performs JDO enhancement on compiled data classes.">
37 <!--<enhance_war war="war"/>-->
38 </target>
39
40 <target name="runserver" depends="datanucleusenhance" description="Starts the development server.">
41 <dev_appserver war="war"/>
42 </target>
43
44 <target name="update" depends="datanucleusenhance" description="Uploads the application to App Engine.">
45 <appcfg action="update" war="war"/>
46 </target>
47
48 <target name="update_indexes" depends="datanucleusenhance" description="Uploads just the datastore index configuration to App Engine.">
49 <appcfg action="update_indexes" war="war"/>
50 </target>
51
52 <target name="rollback" depends="datanucleusenhance" description="Rolls back an interrupted application update.">
53 <appcfg action="rollback" war="war"/>
54 </target>
55
56 <target name="request_logs" description="Downloads log data from App Engine for the application.">
57 <appcfg action="request_logs" war="war">
58 <options>
59 <arg value="--num_days=5"/>
60 </options>
61 <args>
62 <arg value="logs.txt"/>
63 </args>
64 </appcfg>
65 </target>
66
67 </project>
Something went wrong with that request. Please try again.