forked from ToeBee/OSMZmiany
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
50 lines (41 loc) · 1.49 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
<project name="OSMZmiany" default="deploy" basedir=".">
<property name="src.dir" value="${basedir}/src" />
<property name="src.jmv" value="${basedir}/src_externals/jmapviewer/src" />
<property name="src.osmo" value="${basedir}/src_externals/osmosis" />
<property name="dist.dir" value="${basedir}/dist" />
<property name="version" value="0.0.3" />
<path id="main.classpath">
<pathelement location="${classes.dir}" />
</path>
<target name="prepare">
<mkdir dir="bin" />
<mkdir dir="${dist.dir}" />
</target>
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="bin" />
<delete dir="${dist.dir}" />
</target>
<target name="compile" depends="prepare">
<javac srcdir="${src.dir}:${src.jmv}:${src.osmo}" destdir="bin" debug="on" optimize="on" deprecation="on" target="1.5" encoding="UTF8" includeantruntime="false">
<classpath>
<path refid="main.classpath" />
</classpath>
</javac>
</target>
<target name="deploy" depends="compile">
<jar jarfile="${dist.dir}/${ant.project.name}-${version}.jar">
<manifest>
<attribute name="Built-By" value="${user.name}" />
<attribute name="Main-Class" value="org.openstreetmap.OSMZmiany.OSMZmiany" />
<section name="${ant.project.name}">
<attribute name="Implementation-Title" value="OSMZmiany" />
<attribute name="Implementation-Version" value="${version} ${TODAY_DE}" />
</section>
</manifest>
<fileset dir="bin">
<include name="**/*.class" />
</fileset>
</jar>
</target>
</project>