source: subversion/applications/editors/josm/plugins/mapdust/build.xml @ 31768

Last change on this file since 31768 was 31768, checked in by donvip, 4 years ago

[josm_plugins] see #josm12048 - always use UTF-8 for jar manifests

  • Property svn:mime-type set to text/xml
File size: 3.0 KB
Line 
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    <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 
15        <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
16        <include name="gson.jar"/>
17    </fileset>
18
19    <target name="clean">
20        <delete dir="${plugin.build.dir}"/>
21        <delete dir="${apidoc.dir}"/>
22        <delete file="${plugin.jar}"/>
23    </target>
24
25    <!-- creates the javadocs -->
26    <target name="javadoc">
27        <mkdir dir="${apidoc.dir}"/>
28        <javadoc destdir="${apidoc.dir}" source="1.7" classpathref="classpath" windowtitle="MapDust plugin API">
29            <link href="http://java.sun.com/javase/7/docs/api/"/>
30            <link href="http://docs.jboss.org/hibernate/stable/core/api/"/>
31            <packageset dir="${plugin.src.dir}">
32            </packageset>
33        </javadoc>
34    </target>
35
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>
54        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifestencoding="UTF-8">
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}"/>
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."/>
60                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust"/>
61                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
62                <attribute name="Plugin-Requires" value="gson"/>
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>
Note: See TracBrowser for help on using the repository browser.