1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
2 | <project name="mapdust" default="dist" basedir=".">
|
---|
3 | <!-- properties -->
|
---|
4 | <property name="commit.message" value="MapDust bug reporter plugin"/>
|
---|
5 | <property name="plugin.main.version" value="7001"/>
|
---|
6 |
|
---|
7 | <property name="apidoc.dir" value="doc"/>
|
---|
8 |
|
---|
9 | <!--
|
---|
10 | **********************************************************
|
---|
11 | ** include targets that all plugins have in common
|
---|
12 | **********************************************************
|
---|
13 | -->
|
---|
14 | <import file="../build-common.xml"/>
|
---|
15 |
|
---|
16 | <!-- classpath -->
|
---|
17 | <path id="classpath">
|
---|
18 | <fileset dir="${plugin.lib.dir}" includes="**/*.jar"/>
|
---|
19 | <pathelement path="${josm}"/>
|
---|
20 | </path>
|
---|
21 |
|
---|
22 | <!--
|
---|
23 | **********************************************************
|
---|
24 | ** compile - complies the source tree
|
---|
25 | **********************************************************
|
---|
26 | -->
|
---|
27 | <target name="compile" depends="init">
|
---|
28 | <echo message="compiling sources for ${plugin.jar} ..."/>
|
---|
29 | <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
|
---|
30 | <compilerarg value="-Xlint:deprecation"/>
|
---|
31 | <compilerarg value="-Xlint:unchecked"/>
|
---|
32 | </javac>
|
---|
33 | </target>
|
---|
34 |
|
---|
35 | <target name="clean">
|
---|
36 | <delete dir="${plugin.build.dir}"/>
|
---|
37 | <delete dir="${apidoc.dir}"/>
|
---|
38 | <delete file="${plugin.jar}"/>
|
---|
39 | </target>
|
---|
40 |
|
---|
41 | <!-- creates the javadocs -->
|
---|
42 | <target name="javadoc">
|
---|
43 | <mkdir dir="${apidoc.dir}"/>
|
---|
44 | <javadoc destdir="${apidoc.dir}" source="1.7" classpathref="classpath" windowtitle="MapDust plugin API">
|
---|
45 | <link href="http://java.sun.com/javase/7/docs/api/"/>
|
---|
46 | <link href="http://docs.jboss.org/hibernate/stable/core/api/"/>
|
---|
47 | <packageset dir="${plugin.src.dir}">
|
---|
48 | </packageset>
|
---|
49 | </javadoc>
|
---|
50 | </target>
|
---|
51 |
|
---|
52 | <!-- creates the .jar file of the plugin -->
|
---|
53 | <target name="dist" depends="compile,revision">
|
---|
54 | <echo message="creating ${ant.project.name}.jar ... "/>
|
---|
55 | <copy todir="${plugin.build.dir}">
|
---|
56 | <fileset dir="conf"/>
|
---|
57 | </copy>
|
---|
58 | <copy todir="${plugin.build.dir}/images">
|
---|
59 | <fileset dir="images"/>
|
---|
60 | </copy>
|
---|
61 | <copy todir="${plugin.build.dir}/data">
|
---|
62 | <fileset dir="data"/>
|
---|
63 | </copy>
|
---|
64 | <copy todir="${plugin.build.dir}">
|
---|
65 | <fileset dir=".">
|
---|
66 | <include name="README"/>
|
---|
67 | <include name="LICENSE"/>
|
---|
68 | </fileset>
|
---|
69 | </copy>
|
---|
70 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
|
---|
71 | <zipfileset src="lib/gson-2.2.4.jar"/>
|
---|
72 | <manifest>
|
---|
73 | <attribute name="Author" value="Beata Jancso"/>
|
---|
74 | <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin"/>
|
---|
75 | <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
|
---|
76 | <attribute name="Plugin-Description" value="The MapDust Plug-In shows the MapDust bug reports on the map. You can create, close,invalidate, re-open and comment bug reports by using this plugin."/>
|
---|
77 | <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust"/>
|
---|
78 | <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
|
---|
79 | <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
|
---|
80 | <attribute name="Plugin-Icon" value="images/dialogs/mapdust_icon25.png"/>
|
---|
81 | </manifest>
|
---|
82 | </jar>
|
---|
83 | </target>
|
---|
84 | </project>
|
---|