[26341] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
[26335] | 2 | <!--
|
---|
| 3 | ** Maintaining versions
|
---|
| 4 | ** ====================
|
---|
| 5 | ** see README.template
|
---|
| 6 | **
|
---|
| 7 | ** Usage
|
---|
| 8 | ** =====
|
---|
| 9 | ** To build it run
|
---|
| 10 | **
|
---|
[26341] | 11 | ** > ant
|
---|
| 12 | ** or
|
---|
| 13 | ** > ant clean dist
|
---|
[26335] | 14 | **
|
---|
| 15 | ** To install the generated plugin locally (in you default plugin directory) run
|
---|
| 16 | **
|
---|
[26341] | 17 | ** > ant install
|
---|
[26335] | 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 -->
|
---|
[26341] | 33 | <property name="commit.message" value="Commit message"/>
|
---|
[26335] | 34 | <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
|
---|
[26605] | 35 | <property name="plugin.main.version" value="4394"/>
|
---|
[26335] | 36 |
|
---|
| 37 | <!--
|
---|
| 38 | **********************************************************
|
---|
[26341] | 39 | ** include targets that all plugins have in common
|
---|
[26335] | 40 | **********************************************************
|
---|
| 41 | -->
|
---|
[26341] | 42 | <import file="../build-common.xml"/>
|
---|
[26335] | 43 |
|
---|
[26341] | 44 | <!-- classpath -->
|
---|
| 45 | <path id="classpath">
|
---|
| 46 | <fileset dir="${plugin.lib.dir}" includes="**/*.jar"/>
|
---|
| 47 | <pathelement path="${josm}"/>
|
---|
| 48 | </path>
|
---|
[26335] | 49 | <!--
|
---|
| 50 | **********************************************************
|
---|
| 51 | ** compile - complies the source tree
|
---|
[26341] | 52 | ** Overrides the target from build-common.xml
|
---|
[26335] | 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>
|
---|
[26341] | 73 | <copy todir="${plugin.build.dir}/data">
|
---|
| 74 | <fileset dir="data"/>
|
---|
| 75 | </copy>
|
---|
[26335] | 76 | <copy todir="${plugin.build.dir}">
|
---|
| 77 | <fileset dir=".">
|
---|
[26341] | 78 | <include name="README"/>
|
---|
| 79 | <include name="LICENSE"/>
|
---|
| 80 | <include name="gpl-2-cp.txt"/>
|
---|
| 81 | <include name="gpl-3.txt"/>
|
---|
[26335] | 82 | </fileset>
|
---|
| 83 | </copy>
|
---|
| 84 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
|
---|
[26341] | 85 | <!--
|
---|
[26335] | 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 | ************************************************
|
---|
[26341] | 92 | -->
|
---|
[26335] | 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>
|
---|
[26341] | 104 | <zipfileset src="${plugin.lib.dir}/jna.jar"/>
|
---|
[26335] | 105 | </jar>
|
---|
| 106 | </target>
|
---|
| 107 |
|
---|
| 108 | </project>
|
---|