source: osm/applications/editors/josm/plugins/native-password-manager/build.xml@ 30662

Last change on this file since 30662 was 30530, checked in by donvip, 11 years ago

[josm_plugins] add eclipse projects + fix "includeantruntime" warnings

  • Property svn:mime-type set to text/xml
File size: 3.6 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<project name="native_password_manager" default="dist" basedir=".">
3
4 <!-- enter the SVN commit message -->
5 <property name="commit.message" value="Commit message"/>
6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
7 <property name="plugin.main.version" value="7001"/>
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 ** compile - complies the source tree
24 ** Overrides the target from build-common.xml
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 <!--
36 **********************************************************
37 ** dist - creates the plugin jar
38 **********************************************************
39 -->
40 <target name="dist" depends="compile,revision">
41 <echo message="creating ${ant.project.name}.jar ... "/>
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 <include name="gpl-2-cp.txt"/>
53 <include name="gpl-3.txt"/>
54 </fileset>
55 </copy>
56 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
57 <!--
58 ************************************************
59 ** configure these properties. Most of them will be copied to the plugins
60 ** manifest file. Property values will also show up in the list available
61 ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
62 **
63 ************************************************
64 -->
65 <manifest>
66 <attribute name="Author" value="Paul Hartmann"/>
67 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.npm.NPMPlugin"/>
68 <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.npm.NPMPlugin"/>
69 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
70 <attribute name="Plugin-Description" value="Use your system''s password manager to store the API username and password. (KWallet and gnome-keyring are supported.)"/>
71 <attribute name="Plugin-Icon" value="images/lock24x24.png"/>
72 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Native_Password_Manager"/>
73 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
74 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
75 </manifest>
76 <zipfileset src="${plugin.lib.dir}/jna.jar"/>
77 </jar>
78 </target>
79</project>
Note: See TracBrowser for help on using the repository browser.