forked from Xomo/osmdroid-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-jar.xml
66 lines (60 loc) · 1.82 KB
/
build-jar.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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse.ant.import?>
<project>
<!--
Can't make it depend on build because that's in a different build file.
So just run
ant build jar
-->
<property name="version.num" value="3.0.6" />
<target name="version">
<typedef resource="com/googlecode/svntask/svntask.xml">
<classpath>
<fileset dir="ext">
<include name="svnkit.jar" />
<include name="svntask.jar" />
</fileset>
</classpath>
</typedef>
<!-- Do an update first to make sure you have the latest version -->
<svn>
<update path="." force="true" recursive="true" />
</svn>
<svn>
<info path="." revisionProperty="revisionVersion" />
</svn>
<property name="version" value="${revisionVersion}" />
</target>
<target name="jar" depends="version">
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<manifest file="MANIFEST.MF">
<attribute name="Implementation-Version" value="${version.num}.r${version}" />
<attribute name="Built-Date" value="${TODAY}" />
</manifest>
<copy todir="bin/org/osmdroid">
<fileset dir="assets" />
</copy>
<jar destfile="osmdroid-android-${version.num}.jar" manifest="MANIFEST.MF">
<fileset dir="bin">
<include name="**/*.class" />
<include name="**/*.png" />
<exclude name="**/*Test.class" />
</fileset>
</jar>
</target>
<target name="javadoc">
<javadoc destdir="docs/api"
use="true"
windowtitle="osmdroid API">
<packageset dir="src" defaultexcludes="yes" />
<classpath refid="osmdroid-android.classpath" />
<link href="http://developer.android.com/reference/" />
</javadoc>
<zip destfile="osmdroid-android-docs-${version.num}.zip"
basedir="docs/api"
includes="**"
/>
</target>
</project>