source: osm/applications/editors/josm/plugins/trustosm/build.xml@ 30750

Last change on this file since 30750 was 30750, checked in by donvip, 10 years ago

[josm_trustosm] remove JGoodies, relies on plastic_laf plugin instead

  • Property svn:mime-type set to text/xml
File size: 5.0 KB
RevLine 
[26174]1<?xml version="1.0" encoding="utf-8"?>
[24389]2<project name="trustosm" default="dist" basedir=".">
[30750]3
[26174]4 <!-- enter the SVN commit message -->
5 <property name="commit.message" value="New plugin for digital signing osm data"/>
6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
[30750]7 <property name="plugin.main.version" value="7001" />
8
9 <!-- Configure these properties (replace "..." accordingly).
10 See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
[24389]11 -->
[30750]12 <property name="plugin.author" value="Christoph Wagner" />
13 <property name="plugin.class" value="org.openstreetmap.josm.plugins.trustosm.TrustOSMplugin" />
14 <property name="plugin.description" value="Plugin to digital sign OSM-Data" />
15 <property name="plugin.icon" value="images/trustosm.png" />
16 <property name="plugin.link" value=""/>
17 <property name="plugin.requires" value="plastic_laf"/>
18
19 <property name="josm" location="../../core/dist/josm-custom.jar" />
20 <property name="plugin.dist.dir" value="../../dist" />
21
22 <!-- ** include targets that all plugins have in common ** -->
23 <import file="../build-common.xml" />
24
25 <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
26 <include name="plastic_laf.jar"/>
27 </fileset>
[26174]28 <!-- create a property containing all .jar files, prefix lib/, and seperated with a space -->
29 <pathconvert property="libs.project" pathsep=" ">
30 <mapper>
31 <chainedmapper>
32 <!-- remove absolute path -->
33 <flattenmapper/>
34 <!-- add lib/ prefix -->
35 <globmapper from="*" to="${ant.project.name}/lib/*"/>
36 </chainedmapper>
37 </mapper>
38 <path>
39 <!-- plugin.lib.dir contains all jar files -->
40 <fileset dir="${plugin.lib.dir}">
41 <include name="**/*.jar"/>
42 </fileset>
43 </path>
44 </pathconvert>
[30750]45 <!-- additional entry in manifest -->
46 <target name="additional-manifest">
47 <manifest file="MANIFEST" mode="update">
48 <attribute name="Class-Path" value="${libs.project}"/>
49 </manifest>
50 </target>
[26174]51 <!--
[24389]52 **********************************************************
[30750]53 ** setup-dist - copies files for distribution
[24389]54 **********************************************************
55 -->
[30750]56 <target name="setup-dist">
57 <antcall target="setup-dist-default" />
[26174]58 <copy todir="${plugin.build.dir}/lib">
59 <fileset dir="${plugin.lib.dir}"/>
60 </copy>
61 </target>
[24389]62 <!--
63 **********************************************************
[30750]64 ** dist - creates the plugin jar
[24389]65 **********************************************************
66 -->
[30750]67 <target name="dist" depends="compile,revision">
68 <echo message="creating ${ant.project.name}.jar ... "/>
69 <antcall target="setup-dist" />
70 <delete file="MANIFEST" failonerror="no"/>
71 <manifest file="MANIFEST" mode="update">
72 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
73 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
74 <attribute name="Plugin-Class" value="${plugin.class}" />
75 <attribute name="Plugin-Description" value="${plugin.description}" />
76 <attribute name="Plugin-Date" value="${version.entry.commit.date}" />
77 <attribute name="Author" value="${plugin.author}"/>
78 </manifest>
79 <antcall target="add-manifest-attribute">
80 <param name="manifest.attribute" value="Plugin-Link"/>
81 <param name="property.name" value="plugin.link"/>
82 <param name="property.value" value="${plugin.link}"/>
83 </antcall>
84 <antcall target="add-manifest-attribute">
85 <param name="manifest.attribute" value="Plugin-Icon"/>
86 <param name="property.name" value="plugin.icon"/>
87 <param name="property.value" value="${plugin.icon}"/>
88 </antcall>
89 <antcall target="add-manifest-attribute">
90 <param name="manifest.attribute" value="Plugin-Early"/>
91 <param name="property.name" value="plugin.early"/>
92 <param name="property.value" value="${plugin.early}"/>
93 </antcall>
94 <antcall target="add-manifest-attribute">
95 <param name="manifest.attribute" value="Plugin-Requires"/>
96 <param name="property.name" value="plugin.requires"/>
97 <param name="property.value" value="${plugin.requires}"/>
98 </antcall>
99 <antcall target="add-manifest-attribute">
100 <param name="manifest.attribute" value="Plugin-Stage"/>
101 <param name="property.name" value="plugin.stage"/>
102 <param name="property.value" value="${plugin.stage}"/>
103 </antcall>
104 <antcall target="additional-manifest" />
105 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="MANIFEST"/>
106 <delete file="MANIFEST" failonerror="no"/>
107 <antcall target="post-dist" />
[24389]108 </target>
[30750]109</project>
Note: See TracBrowser for help on using the repository browser.