source: osm/applications/editors/josm/plugins/conflation/build.xml@ 28027

Last change on this file since 28027 was 27968, checked in by jttt, 13 years ago

Fix build

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 dist
12**
13** To install the generated plugin locally (in you default plugin directory) run
14**
15** > ant install
16**
17** The generated plugin jar is not automatically available in JOSMs plugin configuration
18** dialog. You have to check it in first.
19**
20** Use the ant target 'publish' to check in the plugin and make it available to other
21** JOSM users:
22** set the properties commit.message and plugin.main.version
23** and run
24** > ant publish
25**
26**
27-->
28<project name="conflation" default="dist" basedir=".">
29 <!-- enter the SVN commit message -->
30 <property name="commit.message" value="Commit message"/>
31 <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
32 <property name="plugin.main.version" value="4980"/>
33
34 <!--
35 **********************************************************
36 ** include targets that all plugins have in common
37 **********************************************************
38 -->
39 <import file="../build-common.xml"/>
40
41 <!-- Needs to be used after import, otherwise ${plugin.dist.dir} is not defined -->
42 <property name="utilsplugin2" location="${plugin.dist.dir}/utilsplugin2.jar"/>
43
44 <!--
45 **********************************************************
46 ** compile - complies the source tree
47 **********************************************************
48 -->
49 <target name="compile" depends="init">
50 <echo message="compiling sources for ${plugin.jar} ... "/>
51 <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
52 <classpath>
53 <pathelement path="${josm}"/>
54 <pathelement location="${utilsplugin2}"/>
55 </classpath>
56 <compilerarg value="-Xlint:deprecation"/>
57 <compilerarg value="-Xlint:unchecked"/>
58 </javac>
59 </target>
60 <!--
61 **********************************************************
62 ** dist - creates the plugin jar
63 **********************************************************
64 -->
65 <target name="dist" depends="compile,revision">
66 <echo message="creating ${ant.project.name}.jar ... "/>
67 <copy todir="${plugin.build.dir}/resources">
68 <fileset dir="resources"/>
69 </copy>
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 </fileset>
81 </copy>
82 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
83 <!--
84 ************************************************
85 ** configure these properties. Most of them will be copied to the plugins
86 ** manifest file. Property values will also show up in the list available
87 ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
88 **
89 ************************************************
90 -->
91 <manifest>
92 <attribute name="Author" value="Josh Doe &lt;josh@joshdoe.com&gt;"/>
93 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.conflation.ConflationPlugin"/>
94 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
95 <attribute name="Plugin-Description" value="(Warning: Experimental!) Tool for conflating (merging) data"/>
96 <attribute name="Plugin-Icon" value="images/conflation.png"/>
97 <attribute name="Plugin-Requires" value="utilsplugin2"/>
98 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Conflation"/>
99 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
100 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
101 </manifest>
102 </jar>
103 </target>
104</project>
Note: See TracBrowser for help on using the repository browser.