Changeset 28991 in osm for applications/editors/josm/plugins/wikipedia/build.xml
- Timestamp:
- 2012-11-27T16:59:06+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/build.xml
r28807 r28991 1 1 <?xml version="1.0" encoding="utf-8"?> 2 <!--3 ** This is a template build file for a JOSM plugin.4 **5 ** Maintaining versions6 ** ====================7 ** see README.template8 **9 ** Usage10 ** =====11 ** To build it run12 **13 ** > ant dist14 **15 ** To install the generated plugin locally (in you default plugin directory) run16 **17 ** > ant install18 **19 ** The generated plugin jar is not automatically available in JOSMs plugin configuration20 ** 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 other23 ** JOSM users:24 ** set the properties commit.message and plugin.main.version25 ** and run26 ** > ant publish27 **28 **29 -->30 2 <project name="wikipedia" default="dist" basedir="."> 31 3 … … 35 7 <property name="plugin.main.version" value="5089"/> 36 8 37 <!-- 38 ********************************************************** 39 ** include targets that all plugins have in common 40 ********************************************************** 41 --> 9 <property name="plugin.author" value="simon04"/> 10 <property name="plugin.class" value="org.wikipedia.WikipediaPlugin"/> 11 <property name="plugin.description" value="Simplifys linking OSM objects to Wikipedia articles"/> 12 <property name="plugin.icon" value="images/dialogs/wikipedia.png"/> 13 <property name="plugin.link" value="http://josm.openstreetmap.de/wiki/Help/Plugin/Wikipedia"/> 14 15 <!-- ** include targets that all plugins have in common ** --> 42 16 <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"/> 64 </fileset> 65 </copy> 66 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}"> 67 <!-- 68 ************************************************ 69 ** configure these properties. Most of them will be copied to the plugins 70 ** manifest file. Property values will also show up in the list available 71 ** plugins: http://josm.openstreetmap.de/wiki/Plugins. 72 ** 73 ************************************************ 74 --> 75 <manifest> 76 <attribute name="Author" value="simon04"/> 77 <attribute name="Plugin-Class" value="org.wikipedia.WikipediaPlugin"/> 78 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/> 79 <attribute name="Plugin-Description" value="Simplifys linking OSM objects to Wikipedia articles"/> 80 <attribute name="Plugin-Icon" value="images/dialogs/wikipedia.png"/> 81 <attribute name="Plugin-Link" value="http://josm.openstreetmap.de/wiki/Help/Plugin/Wikipedia"/> 82 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/> 83 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 84 </manifest> 85 </jar> 86 </target> 17 87 18 </project>
Note:
See TracChangeset
for help on using the changeset viewer.