forked from ananich/gaecl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
48 lines (42 loc) · 1.46 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<project name="gaeshell" default="build" basedir=".">
<description>
Command-line shell for Google App Engine Datastore
</description>
<property file="${basedir}/build.properties"/>
<property name="build.dir" value="${basedir}/build"/>
<path id="runtime.classpath">
<fileset dir="${appengine.sdk.home}/lib/user">
<include name="**/*.jar" />
</fileset>
<pathelement location="${appengine.sdk.home}/lib/appengine-remote-api.jar" />
</path>
<target name="prepare">
<mkdir dir="${build.dir}" />
<mkdir dir="${build.dir}/classes" />
<mkdir dir="${build.dir}/src"/>
</target>
<target name="build" depends="prepare" description="build JAR file and pack sources">
<javac srcdir="${basedir}/src" destdir="${build.dir}/classes" source="1.7" target="1.7" classpathref="runtime.classpath" includeantruntime="false"/>
<copy todir="${build.dir}/classes">
<fileset dir="${basedir}/src">
<exclude name="**/*.java" />
<exclude name="**/*.bak" />
</fileset>
</copy>
<jar destfile="${build.dir}/${ant.project.name}.jar">
<fileset dir="${build.dir}/classes" />
<manifest>
<attribute name="Main-Class" value="com.inpun.alt.gaecl.AppEngineShell" />
</manifest>
</jar>
<zip destfile="${build.dir}/alt-gaecl.zip">
<fileset dir="${basedir}/src">
<exclude name="**/*.bak" />
</fileset>
</zip>
</target>
<target name="clean">
<deltree dir="${build.dir}"/>
</target>
</project>