source: subversion/applications/editors/josm/plugins/tag2link/build.xml @ 28807

Last change on this file since 28807 was 28807, checked in by Dirk Stoecker, 7 years ago

build script cleanups, i18n update

File size: 3.5 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3** This is a template build file for the tag2link plugin.
4**
5** Maintaining versions
6** ====================
7** see README.template
8**
9** Usage
10** =====
11** To build it run
12**
13**    > ant  dist
14**
15** To install the generated plugin locally (in you default plugin directory) run
16**
17**    > ant  install
18**
19** The generated plugin jar is not automatically available in JOSMs plugin configuration
20** dialog. You have to check it in first.
21**
22** Use the ant target 'publish' to check in the plugin and make it available to other
23** JOSM users:
24**    set the properties commit.message and plugin.main.version
25** and run
26**    > ant  publish
27**
28**
29-->
30<project name="tag2link" default="dist" basedir=".">
31
32    <!-- enter the SVN commit message -->
33    <property name="commit.message" value="Commit message"/>
34    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
35    <property name="plugin.main.version" value="4968"/>
36
37    <!--
38    **********************************************************
39    ** include targets that all plugins have in common
40    **********************************************************
41    -->
42    <import file="../build-common.xml"/>
43
44    <!--
45    **********************************************************
46    ** dist - creates the plugin jar
47    **********************************************************
48    -->
49    <target name="dist" depends="compile,revision">
50        <echo message="creating ${ant.project.name}.jar ... "/>
51        <copy todir="${plugin.build.dir}/resources">
52            <fileset dir="resources"/>
53        </copy>
54        <copy todir="${plugin.build.dir}/images">
55            <fileset dir="images"/>
56        </copy>
57        <copy todir="${plugin.build.dir}/data">
58            <fileset dir="data"/>
59        </copy>
60        <copy todir="${plugin.build.dir}">
61            <fileset dir=".">
62                <include name="README"/>
63                <include name="LICENSE-2.0.txt"/>
64                <include name="gpl-3.0.txt"/>
65            </fileset>
66        </copy>
67        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
68            <!--
69            ************************************************
70            ** configure these properties. Most of them will be copied to the plugins
71            ** manifest file. Property values will also show up in the list available
72            ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
73            **
74            ************************************************
75            -->
76            <manifest>
77                <attribute name="Author" value="Don-vip &amp; FrViPofm"/>
78                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.tag2link.Tag2LinkPlugin"/>
79                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
80                <attribute name="Plugin-Description" value="Launch browser to a Web resource about a selected object having known tags, such as Wikipedia"/>
81                <attribute name="Plugin-Early" value="false"/>
82                <attribute name="Plugin-Icon" value="images/tag2linkv2_24x24.png"/>
83                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Tag2Link"/>
84                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
85                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
86            </manifest>
87        </jar>
88    </target>
89</project>
Note: See TracBrowser for help on using the repository browser.