| 7474 |
vikram.rag |
1 |
<!--
|
|
|
2 |
/*******************************************************************************
|
|
|
3 |
* Copyright 2008-2009 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
5 |
*
|
|
|
6 |
* You may not use this file except in compliance with the License.
|
|
|
7 |
* You may obtain a copy of the License at: http://aws.amazon.com/apache2.0
|
|
|
8 |
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
|
9 |
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
|
10 |
* specific language governing permissions and limitations under the License.
|
|
|
11 |
* *****************************************************************************
|
|
|
12 |
* __ _ _ ___
|
|
|
13 |
* ( )( \/\/ )/ __)
|
|
|
14 |
* /__\ \ / \__ \
|
|
|
15 |
* (_)(_) \/\/ (___/
|
|
|
16 |
*
|
|
|
17 |
* Marketplace Web Service Products Java Library
|
|
|
18 |
* API Version: 2011-10-01
|
|
|
19 |
* Generated: Thu Sep 01 14:07:18 PDT 2011
|
|
|
20 |
*
|
|
|
21 |
*/
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
-->
|
|
|
25 |
<project name="Marketplace Web Service Products Java Library" default="dist" basedir=".">
|
|
|
26 |
<description>Auto generated ANT file for building AWS libraries</description>
|
|
|
27 |
<property name="lib.name" value="marketplacewebserviceproducts-2011-10-01-java-library"/>
|
|
|
28 |
<property name="java.src.dir" value="src"/>
|
|
|
29 |
<property name="build.root" value="build"/>
|
|
|
30 |
<property name="build.dir" value="build/classes"/>
|
|
|
31 |
<property name="dist.dir" value="dist"/>
|
|
|
32 |
<property name="thirdparty.lib.dir" value="third-party"/>
|
|
|
33 |
<path id="classpath.base">
|
|
|
34 |
<fileset dir="${thirdparty.lib.dir}">
|
|
|
35 |
<include name="**/*.jar"/>
|
|
|
36 |
</fileset>
|
|
|
37 |
<pathelement path="${build.dir}"/>
|
|
|
38 |
</path>
|
|
|
39 |
<target name="init" description="Set up environment to build">
|
|
|
40 |
<tstamp/>
|
|
|
41 |
<echo>Creating the build directory structure</echo>
|
|
|
42 |
<mkdir dir="${build.dir}"/>
|
|
|
43 |
</target>
|
|
|
44 |
<target name="build" depends="init,properties" description="Compile main source tree java files">
|
|
|
45 |
<echo>Building...</echo>
|
|
|
46 |
<touch>
|
|
|
47 |
<fileset dir="${java.src.dir}" includes="**/package-info.java"/>
|
|
|
48 |
</touch>
|
|
|
49 |
<javac destdir="${build.dir}" classpathref="classpath.base" target="1.5" debug="true">
|
|
|
50 |
<src path="${java.src.dir}"/>
|
|
|
51 |
</javac>
|
|
|
52 |
<echo>Library build complete.</echo>
|
|
|
53 |
<echo>To run the samples, add your AWS Access Keys to a file </echo>
|
|
|
54 |
<echo>in the src/.../samples/ directory and uncomment the desired action (look for "@TODO")</echo>
|
|
|
55 |
</target>
|
|
|
56 |
<target name="properties" description="Copy XML and Properties files to classes/">
|
|
|
57 |
<copy todir="${build.dir}" preservelastmodified="true">
|
|
|
58 |
<fileset dir="${java.src.dir}">
|
|
|
59 |
<include name="**/*.xml"/>
|
|
|
60 |
<include name="**/*.xslt"/>
|
|
|
61 |
<include name="**/*.properties"/>
|
|
|
62 |
</fileset>
|
|
|
63 |
</copy>
|
|
|
64 |
</target>
|
|
|
65 |
<target name="dist" description="generate the distribution" depends="build">
|
|
|
66 |
<echo>Creating the distribution directory</echo>
|
|
|
67 |
<mkdir dir="${dist.dir}/lib"/>
|
|
|
68 |
<jar jarfile="${dist.dir}/lib/${lib.name}.jar" basedir="${build.dir}" excludes="**/samples/*.class"/>
|
|
|
69 |
</target>
|
|
|
70 |
<target name="clean" description="clean up">
|
|
|
71 |
<delete dir="${build.root}"/>
|
|
|
72 |
<delete dir="${dist.dir}"/>
|
|
|
73 |
<delete verbose="true">
|
|
|
74 |
<fileset dir="." defaultexcludes="no">
|
|
|
75 |
<include name="**/*~"/>
|
|
|
76 |
</fileset>
|
|
|
77 |
</delete>
|
|
|
78 |
</target>
|
|
|
79 |
</project>
|