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.5" />
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" />
21 <include name="**/*.swp" />
26 <target name="copyjars"
28 description="Copies the App Engine JARs to the WAR.">
30 todir="war/WEB-INF/lib"
32 <fileset dir="${sdk.dir}/lib/user">
33 <include name="**/*.jar" />
38 <target name="compile" depends="copyjars"
39 description="Compiles Java source and copies other source files to the WAR.">
40 <mkdir dir="war/WEB-INF/classes" />
41 <copy todir="war/WEB-INF/classes">
43 <exclude name="**/*.java" />
48 destdir="war/WEB-INF/classes"
49 classpathref="project.classpath"
53 <target name="datanucleusenhance" depends="compile"
54 description="Performs JDO enhancement on compiled data classes.">
55 <enhance_war war="war" />
58 <target name="runserver" depends="datanucleusenhance"
59 description="Starts the development server.">
60 <dev_appserver war="war" />
63 <target name="update" depends="datanucleusenhance"
64 description="Uploads the application to App Engine.">
65 <appcfg action="update" war="war" />
68 <target name="update_indexes" depends="datanucleusenhance"
69 description="Uploads just the datastore index configuration to App Engine.">
70 <appcfg action="update_indexes" war="war" />
73 <target name="rollback" depends="datanucleusenhance"
74 description="Rolls back an interrupted application update.">
75 <appcfg action="rollback" war="war" />
78 <target name="request_logs"
79 description="Downloads log data from App Engine for the application.">
80 <appcfg action="request_logs" war="war">
82 <arg value="--num_days=5"/>
83 <arg value="--severity=0"/>
86 <arg value="logs.txt"/>
93 <fileset dir="war/WEB-INF/classes">
94 <include name="**/*.class" />