source: subversion/applications/editors/josm/plugins/native-password-manager/build.xml @ 29007

Last change on this file since 29007 was 28658, checked in by donvip, 7 years ago

[josm_native-password-manager] fix compilation error

File size: 4.1 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3** Maintaining versions
4** ====================
5** see README.template
6**
7** Usage
8** =====
9** To build it run
10**
11**    > ant
12** or
13**    > ant clean 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="native_password_manager" 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="5422"/>
36
37    <!--
38    **********************************************************
39    ** include targets that all plugins have in common
40    **********************************************************
41    -->
42    <import file="../build-common.xml"/>
43
44    <!-- classpath -->
45    <path id="classpath">
46        <fileset dir="${plugin.lib.dir}" includes="**/*.jar"/>
47        <pathelement path="${josm}"/>
48    </path>
49    <!--
50    **********************************************************
51    ** compile - complies the source tree
52    ** Overrides the target from build-common.xml
53    **********************************************************
54    -->
55    <target name="compile" depends="init">
56        <echo message="compiling sources for ${plugin.jar} ..."/>
57        <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}">
58            <compilerarg value="-Xlint:deprecation"/>
59            <compilerarg value="-Xlint:unchecked"/>
60        </javac>
61    </target>
62
63    <!--
64    **********************************************************
65    ** dist - creates the plugin jar
66    **********************************************************
67    -->
68    <target name="dist" depends="compile,revision">
69        <echo message="creating ${ant.project.name}.jar ... "/>
70        <copy todir="${plugin.build.dir}/images">
71            <fileset dir="images"/>
72        </copy>
73        <copy todir="${plugin.build.dir}/data">
74            <fileset dir="data"/>
75        </copy>
76        <copy todir="${plugin.build.dir}">
77            <fileset dir=".">
78                <include name="README"/>
79                <include name="LICENSE"/>
80                <include name="gpl-2-cp.txt"/>
81                <include name="gpl-3.txt"/>
82            </fileset>
83        </copy>
84        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
85        <!--
86        ************************************************
87        ** configure these properties. Most of them will be copied to the plugins
88        ** manifest file. Property values will also show up in the list available
89        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
90        **
91        ************************************************
92        -->
93            <manifest>
94                <attribute name="Author" value="Paul Hartmann"/>
95                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.npm.NPMPlugin"/>
96                <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.npm.NPMPlugin"/>
97                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
98                <attribute name="Plugin-Description" value="Use your system''s password manager to store the API username and password. (KWallet and gnome-keyring are supported.)"/>
99                <attribute name="Plugin-Icon" value="images/lock24x24.png"/>
100                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Native_Password_Manager"/>
101                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
102                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
103            </manifest>
104            <zipfileset src="${plugin.lib.dir}/jna.jar"/>
105        </jar>
106    </target>
107</project>
Note: See TracBrowser for help on using the repository browser.