forked from DomDerrien/amazon-fps-gaej
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
86 lines (84 loc) · 3.64 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!--
/*******************************************************************************
* Copyright 2008 Amazon Technologies, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
* *****************************************************************************
* __ _ _ ___
* ( )( \/\/ )/ __)
* /__\ \ / \__ \
* (_)(_) \/\/ (___/
*
* Amazon FPS Java Library
* API Version: 2008-09-17
* Generated: Tue Sep 29 03:25:00 PDT 2009
*
*/
/*******************************************************************************
* Adapted by Dom Derrien for the Java platform of Google App Engine
* Copyright 2010 Dom Derrien
* *****************************************************************************
* Change scope:
* - Update the library name to mention the Google App Engine.
*/
-->
<project name="Amazon FPS Java Library" default="dist" basedir=".">
<description>Auto generated ANT file for building AWS libraries</description>
<property name="lib.name" value="amazon-fps-2008-09-17-java-library-for-gae"/>
<property name="java.src.dir" value="src"/>
<property name="build.root" value="build"/>
<property name="build.dir" value="build/classes"/>
<property name="dist.dir" value="dist"/>
<property name="thirdparty.lib.dir" value="third-party"/>
<path id="classpath.base">
<fileset dir="${thirdparty.lib.dir}">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${build.dir}"/>
</path>
<target name="init" description="Set up environment to build">
<tstamp/>
<echo>Creating the build directory structure</echo>
<mkdir dir="${build.dir}"/>
</target>
<target name="build" depends="init,properties" description="Compile main source tree java files">
<echo>Building...</echo>
<touch>
<fileset dir="${java.src.dir}" includes="**/package-info.java"/>
</touch>
<javac destdir="${build.dir}" classpathref="classpath.base" target="1.5">
<src path="${java.src.dir}"/>
</javac>
<echo>Library build complete.</echo>
<echo>To run the samples, add your AWS Access Keys to a file </echo>
<echo>in the src/.../samples/ directory and uncomment the desired action (look for "@TODO")</echo>
</target>
<target name="properties" description="Copy XML and Properties files to classes/">
<copy todir="${build.dir}" preservelastmodified="true">
<fileset dir="${java.src.dir}">
<include name="**/*.xml"/>
<include name="**/*.xslt"/>
<include name="**/*.properties"/>
</fileset>
</copy>
</target>
<target name="dist" description="generate the distribution" depends="build">
<echo>Creating the distribution directory</echo>
<mkdir dir="${dist.dir}/lib"/>
<jar jarfile="${dist.dir}/lib/${lib.name}.jar" basedir="${build.dir}" excludes="**/samples/*.class"/>
</target>
<target name="clean" description="clean up">
<delete dir="${build.root}"/>
<delete dir="${dist.dir}"/>
<delete verbose="true">
<fileset dir="." defaultexcludes="no">
<include name="**/*~"/>
</fileset>
</delete>
</target>
</project>