[26174] | 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"/>
|
---|
[33786] | 5 | <property name="plugin.main.version" value="12881"/>
|
---|
[28807] | 6 | <property name="apidoc.dir" value="doc"/>
|
---|
| 7 |
|
---|
| 8 | <!--
|
---|
| 9 | **********************************************************
|
---|
| 10 | ** include targets that all plugins have in common
|
---|
| 11 | **********************************************************
|
---|
| 12 | -->
|
---|
| 13 | <import file="../build-common.xml"/>
|
---|
| 14 |
|
---|
[32787] | 15 | <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
|
---|
[31763] | 16 | <include name="gson.jar"/>
|
---|
| 17 | </fileset>
|
---|
[28807] | 18 |
|
---|
| 19 | <target name="clean">
|
---|
| 20 | <delete dir="${plugin.build.dir}"/>
|
---|
| 21 | <delete dir="${apidoc.dir}"/>
|
---|
| 22 | <delete file="${plugin.jar}"/>
|
---|
| 23 | </target>
|
---|
| 24 |
|
---|
[26174] | 25 | <!-- creates the javadocs -->
|
---|
| 26 | <target name="javadoc">
|
---|
| 27 | <mkdir dir="${apidoc.dir}"/>
|
---|
[32680] | 28 | <javadoc destdir="${apidoc.dir}" source="1.8" classpathref="classpath" windowtitle="MapDust plugin API">
|
---|
| 29 | <link href="http://java.sun.com/javase/8/docs/api/"/>
|
---|
[26174] | 30 | <link href="http://docs.jboss.org/hibernate/stable/core/api/"/>
|
---|
| 31 | <packageset dir="${plugin.src.dir}">
|
---|
| 32 | </packageset>
|
---|
| 33 | </javadoc>
|
---|
| 34 | </target>
|
---|
[28807] | 35 |
|
---|
[26174] | 36 | <!-- creates the .jar file of the plugin -->
|
---|
| 37 | <target name="dist" depends="compile,revision">
|
---|
| 38 | <echo message="creating ${ant.project.name}.jar ... "/>
|
---|
| 39 | <copy todir="${plugin.build.dir}">
|
---|
| 40 | <fileset dir="conf"/>
|
---|
| 41 | </copy>
|
---|
| 42 | <copy todir="${plugin.build.dir}/images">
|
---|
| 43 | <fileset dir="images"/>
|
---|
| 44 | </copy>
|
---|
| 45 | <copy todir="${plugin.build.dir}/data">
|
---|
| 46 | <fileset dir="data"/>
|
---|
| 47 | </copy>
|
---|
| 48 | <copy todir="${plugin.build.dir}">
|
---|
| 49 | <fileset dir=".">
|
---|
| 50 | <include name="README"/>
|
---|
| 51 | <include name="LICENSE"/>
|
---|
| 52 | </fileset>
|
---|
| 53 | </copy>
|
---|
[31768] | 54 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifestencoding="UTF-8">
|
---|
[26174] | 55 | <manifest>
|
---|
| 56 | <attribute name="Author" value="Beata Jancso"/>
|
---|
| 57 | <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin"/>
|
---|
| 58 | <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
|
---|
[28807] | 59 | <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."/>
|
---|
[31923] | 60 | <attribute name="Plugin-Link" value="https://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust"/>
|
---|
[26174] | 61 | <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
|
---|
[31763] | 62 | <attribute name="Plugin-Requires" value="gson"/>
|
---|
[26174] | 63 | <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
|
---|
| 64 | <attribute name="Plugin-Icon" value="images/dialogs/mapdust_icon25.png"/>
|
---|
| 65 | </manifest>
|
---|
| 66 | </jar>
|
---|
| 67 | </target>
|
---|
| 68 | </project>
|
---|