1 <!-- vim:set et sw=2 sts=2 ts=2 fenc=utf-8: -->
2 <project default="compile">
3 <property name="sdk.dir" location="../appengine-java-sdk-1.2.2" />
5 <import file="${sdk.dir}/config/user/ant-macros.xml" />
7 <path id="project.classpath">
8 <pathelement path="war/WEB-INF/classes" />
9 <fileset dir="war/WEB-INF/lib">
10 <include name="**/*.jar" />
12 <fileset dir="${sdk.dir}/lib">
13 <include name="shared/**/*.jar" />
20 <include name="**/*.swp" />
25 <target name="copyjars"
27 description="Copies the App Engine JARs to the WAR.">
29 todir="war/WEB-INF/lib"
31 <fileset dir="${sdk.dir}/lib/user">
32 <include name="**/*.jar" />
37 <target name="compile" depends="copyjars"
38 description="Compiles Java source and copies other source files to the WAR.">
39 <mkdir dir="war/WEB-INF/classes" />
40 <copy todir="war/WEB-INF/classes">
42 <exclude name="**/*.java" />
47 destdir="war/WEB-INF/classes"
48 classpathref="project.classpath"
52 <target name="datanucleusenhance" depends="compile"
53 description="Performs JDO enhancement on compiled data classes.">
54 <enhance_war war="war" />
57 <target name="runserver" depends="datanucleusenhance"
58 description="Starts the development server.">
59 <dev_appserver war="war" />
62 <target name="update" depends="datanucleusenhance"
63 description="Uploads the application to App Engine.">
64 <appcfg action="update" war="war" />
67 <target name="update_indexes" depends="datanucleusenhance"
68 description="Uploads just the datastore index configuration to App Engine.">
69 <appcfg action="update_indexes" war="war" />
72 <target name="rollback" depends="datanucleusenhance"
73 description="Rolls back an interrupted application update.">
74 <appcfg action="rollback" war="war" />
77 <target name="request_logs"
78 description="Downloads log data from App Engine for the application.">
79 <appcfg action="request_logs" war="war">
81 <arg value="--num_days=5"/>
82 <arg value="--severity=0"/>
85 <arg value="logs.txt"/>
92 <fileset dir="war/WEB-INF/classes">
93 <include name="**/*.class" />