forked from richarddbarnett/Flickr4Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
167 lines (137 loc) · 5.62 KB
/
build.xml
File metadata and controls
167 lines (137 loc) · 5.62 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="flickrj API" default="build" basedir=".">
<property file="build.properties"/>
<path id="build.classpath">
<pathelement location="${lib.dir}/axis.jar"/>
<pathelement location="${lib.dir}/commons-discovery-0.2.jar"/>
<pathelement location="${lib.dir}/commons-logging-1.0.4.jar"/>
<pathelement location="${lib.dir}/jaxrpc.jar"/>
<pathelement location="${lib.dir}/log4j-1.2.8.jar"/>
<pathelement location="${lib.dir}/saaj.jar"/>
<pathelement location="${lib.dir}/scribe-1.3.0.jar"/>
<pathelement location="${lib.dir}/commons-codec-1.6.jar"/>
</path>
<path id="examples.classpath">
<pathelement location="${build.dir}/${vname}.jar"/>
</path>
<!-- ==================================================== -->
<!-- Initialize Ant -->
<!-- ==================================================== -->
<target name="init">
</target>
<!-- ==================================================== -->
<!-- Compile the source code. -->
<!-- ==================================================== -->
<target name="compile" depends="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes}"/>
<javac
srcdir="${src.dir}"
destdir="${build.classes}"
classpathref="build.classpath"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
optimize="${javac.optimize}"
source="${javac.source}"
target="${javac.target}">
<include name="**/*.java"/>
</javac>
</target>
<!-- ==================================================== -->
<!-- Create the JAR archive. -->
<!-- ==================================================== -->
<target name="jar" depends="compile">
<jar
jarfile="${build.dir}/${vname}.jar"
basedir="${build.classes}">
<include name="**/*"/>
</jar>
</target>
<!-- ==================================================== -->
<!-- Generate the API documentation. -->
<!-- ==================================================== -->
<target name="javadocs" depends="init">
<mkdir dir="${build.javadocs}"/>
<javadoc
packagenames="${packages}"
sourcepath="${src.dir}"
destdir="${build.javadocs}"
classpathref="build.classpath"
overview="${overview}"
author="${javadoc.author}"
version="${javadoc.version}"
windowtitle="${vName} API"
doctitle="${vName}"
bottom="${copyright}"
stylesheetfile="docs/stylesheet.css"/>
</target>
<!-- ==================================================== -->
<!-- Generate the API documentation and compress to ZIP -->
<!-- ==================================================== -->
<target name="javadocs-zip" depends="javadocs">
<zip zipfile="${vname}-javadocs.zip" basedir="${build.javadocs}"/>
</target>
<!-- ==================================================== -->
<!-- Build the application. -->
<!-- ==================================================== -->
<target name="build" depends="jar">
<!--
<copy todir="${build.lib}">
<fileset dir="${lib.dir}"/>
</copy>
-->
</target>
<!-- ==================================================== -->
<!-- Execute the JUnit tests -->
<!-- ==================================================== -->
<target name="test" depends="build">
<ant dir="${test.dir}" inheritAll="false"/>
</target>
<!-- ==================================================== -->
<!-- Create the distribution -->
<!-- ==================================================== -->
<target name="dist" depends="clean, build, javadocs">
<copy file="README.txt" todir="${build.dir}"/>
<copy file="LICENSE-apache.txt" todir="${build.dir}"/>
<copy file="LICENSE.txt" todir="${build.dir}"/>
<copy file="CHANGELOG.txt" todir="${build.dir}"/>
<copy file="BUILDING.txt" todir="${build.dir}"/>
<copy file="CONTRIB.txt" todir="${build.dir}"/>
<copy todir="${build.docs}">
<fileset dir="${docs.dir}"/>
</copy>
<mkdir dir="${build.dir}/examples"/>
<copy todir="${build.dir}/examples">
<fileset dir="${examples.dir}"/>
</copy>
<delete dir="${build.classes}"/>
<mkdir dir="zip/${vname}"/>
<copy todir="zip/${vname}">
<fileset dir="${build.dir}"/>
</copy>
<zip zipfile="${name}-${version}.zip" basedir="zip"/>
<tar tarfile="${name}-${version}.tar" basedir="zip"/>
<gzip zipfile="${name}-${version}.tar.gz" src="${name}-${version}.tar"/>
<delete file="${name}-${version}.tar"/>
<delete dir="zip"/>
</target>
<!-- =================================================================== -->
<!-- Compiles the example code -->
<!-- =================================================================== -->
<target name="examples" depends="jar">
<javac srcdir="${examples.dir}"
classpathref="examples.classpath"
debug="${javac.debug}"
deprecation="${javac.deprecation}"
optimize="${javac.optimize}">
<include name="**/*.java"/>
</javac>
</target>
<!-- ==================================================== -->
<!-- Clean up generated stuff -->
<!-- ==================================================== -->
<target name="clean">
<delete dir="${build.dir}"/>
<ant dir="${test.dir}" inheritAll="false" target="clean"/>
</target>
</project>