forked from dssouza/flickrdownload
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
96 lines (81 loc) · 4.07 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
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="FlickrDownload">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.7"/>
<property name="source" value="1.7"/>
<property name="title" value="FlickrDownload"/>
<property name="version" value="0.8"/>
<property name="vendor" value="Brian Masney"/>
<path id="FlickrDownload.classpath">
<pathelement location="build/bin"/>
<pathelement location="dev/lib/args4j-2.0.16.jar"/>
<pathelement location="dev/lib/commons-codec-1.13.jar"/>
<pathelement location="dev/lib/commons-httpclient-3.1.jar"/>
<pathelement location="dev/lib/commons-lang-2.6.jar"/>
<pathelement location="dev/lib/commons-logging-1.2.jar"/>
<pathelement location="dev/lib/flickr4java-3.0.1.jar"/>
<pathelement location="dev/lib/jdom-1.1.3.jar"/>
<pathelement location="dev/lib/log4j-1.2.17.jar"/>
<pathelement location="dev/lib/saxon9he.jar"/>
<pathelement location="dev/lib/scribejava-apis-6.4.1.jar"/>
<pathelement location="dev/lib/scribejava-core-6.4.1.jar"/>
<pathelement location="dev/lib/slf4j-api-1.7.26.jar"/>
<pathelement location="dev/lib/slf4j-log4j12-1.7.26.jar"/>
</path>
<presetdef name="javac">
<javac includeantruntime="false"/>
</presetdef>
<target name="init">
<mkdir dir="build/bin"/>
<copy includeemptydirs="false" todir="build/bin">
<fileset dir="dev/src/java">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="build/bin">
<fileset dir="dev/src/conf">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
<copy includeemptydirs="false" todir="build">
<fileset dir="dev/lib"/>
</copy>
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
</target>
<target name="clean">
<delete dir="build"/>
</target>
<target depends="clean" name="cleanall"/>
<target depends="build-subprojects,build-project" name="build"/>
<target name="build-subprojects"/>
<target depends="init" name="build-project">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="build/bin" source="${source}" target="${target}">
<src path="dev/src/java"/>
<classpath refid="FlickrDownload.classpath"/>
</javac>
<javac debug="true" debuglevel="${debuglevel}" destdir="build/bin" source="${source}" target="${target}">
<src path="dev/src/conf"/>
<classpath refid="FlickrDownload.classpath"/>
</javac>
<jar jarfile="build/FlickrDownload.jar" basedir="build/bin">
<!-- <zipgroupfileset dir="dev/lib" includes="*.jar" /> -->
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Built-Date" value="${TODAY}"/>
<attribute name="Implementation-Title" value="${title}"/>
<attribute name="Implementation-Vendor" value="${vendor}"/>
<attribute name="Implementation-Version" value="${version}"/>
<attribute name="Main-Class" value="org.gftp.FlickrDownload.FlickrDownload"/>
<attribute name="Class-Path" value="args4j-2.0.16.jar commons-codec-1.13.jar commons-httpclient-3.1.jar commons-lang-2.6.jar commons-logging-1.2.jar flickr4java-3.0.1.jar jdom-1.1.3.jar log4j-1.2.17.jar saxon9he.jar scribejava-apis-6.4.1.jar scribejava-core-6.4.1.jar slf4j-api-1.7.26.jar slf4j-log4j12-1.7.26.jar"/>
</manifest>
</jar>
<delete dir="build/bin"/>
</target>
<target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/>
</project>