OSDN Git Service

jarを追加
[rabbit-bts/RabbitBTS.git] / build.xml
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" />
4
5   <import file="${sdk.dir}/config/user/ant-macros.xml" />
6
7   <path id="project.classpath">
8     <pathelement path="war/WEB-INF/classes" />
9     <fileset dir="war/WEB-INF/lib">
10       <include name="**/*.jar" />
11     </fileset>
12     <fileset dir="${sdk.dir}/lib">
13       <include name="shared/**/*.jar" />
14     </fileset>
15   </path>
16
17   <target name="init">
18     <delete>
19       <fileset dir=".">
20         <include name="**/*.swp" />
21       </fileset>
22     </delete>
23   </target>
24
25   <target name="copyjars"
26       depends="init"
27       description="Copies the App Engine JARs to the WAR.">
28     <copy
29         todir="war/WEB-INF/lib"
30         flatten="true">
31       <fileset dir="${sdk.dir}/lib/user">
32         <include name="**/*.jar" />
33       </fileset>
34     </copy>
35   </target>
36
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">
41       <fileset dir="src">
42         <exclude name="**/*.java" />
43       </fileset>
44     </copy>
45     <javac
46         srcdir="src"
47         destdir="war/WEB-INF/classes"
48         classpathref="project.classpath"
49         debug="on" />
50   </target>
51
52   <target name="datanucleusenhance" depends="compile"
53       description="Performs JDO enhancement on compiled data classes.">
54     <enhance_war war="war" />
55   </target>
56
57   <target name="runserver" depends="datanucleusenhance"
58       description="Starts the development server.">
59     <dev_appserver war="war" />
60   </target>
61
62   <target name="update" depends="datanucleusenhance"
63       description="Uploads the application to App Engine.">
64     <appcfg action="update" war="war" />
65   </target>
66
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" />
70   </target>
71
72   <target name="rollback" depends="datanucleusenhance"
73       description="Rolls back an interrupted application update.">
74     <appcfg action="rollback" war="war" />
75   </target>
76
77   <target name="request_logs"
78       description="Downloads log data from App Engine for the application.">
79     <appcfg action="request_logs" war="war">
80       <options>
81         <arg value="--num_days=5"/>
82         <arg value="--severity=0"/>
83       </options>
84       <args>
85         <arg value="logs.txt"/>
86       </args>
87     </appcfg>
88   </target>
89
90   <target name="clean">
91     <delete>
92       <fileset dir="war/WEB-INF/classes">
93         <include name="**/*.class" />
94       </fileset>
95     </delete>
96   </target>
97
98 </project>
99