source: osm/applications/editors/josm/plugins/routing/build.xml@ 28807

Last change on this file since 28807 was 28606, checked in by donvip, 12 years ago

[josm_routing] Bump JOSM version as plugin needs to be recompiled (fix #josm7995)

File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3** This is the build file for the routing plugin
4**
5** Maintaining versions
6** ====================
7** see README.template
8**
9** Usage
10** =====
11** To build it run
12**
13** > ant dist
14**
15** To install the generated plugin locally (in your default plugin directory) run
16**
17** > ant install
18**
19** To build against the core in ../../core, create a correct manifest and deploy to
20** SVN,
21** set the properties commit.message and plugin.main.version
22** and run
23** > ant publish
24**
25**
26-->
27<project name="routing" default="dist" basedir=".">
28
29 <!-- enter the SVN commit message -->
30 <property name="commit.message" value="added one-way support in roundabouts"/>
31 <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
32 <property name="plugin.main.version" value="5464"/>
33
34 <!--
35 **********************************************************
36 ** include targets that all plugins have in common
37 **********************************************************
38 -->
39 <import file="../build-common.xml"/>
40
41 <!-- classpath -->
42 <path id="classpath">
43 <fileset dir="${plugin.lib.dir}" includes="**/*.jar"/>
44 <pathelement path="${josm}"/>
45 </path>
46 <!--
47 **********************************************************
48 ** compile - complies the source tree
49 ** Overrides the target from build-common.xml
50 **********************************************************
51 -->
52 <target name="compile" depends="init">
53 <echo message="compiling sources for ${plugin.jar} ..."/>
54 <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}">
55 <compilerarg value="-Xlint:deprecation"/>
56 <compilerarg value="-Xlint:unchecked"/>
57 </javac>
58 </target>
59
60 <!-- Generate distribution -->
61 <target name="dist" depends="compile,revision" description="Generate distribution">
62 <copy todir="${plugin.build.dir}/images">
63 <fileset dir="images"/>
64 </copy>
65 <copy todir="${plugin.build.dir}/data">
66 <fileset dir="data"/>
67 </copy>
68 <copy todir="${plugin.build.dir}/">
69 <fileset dir="resources">
70 <include name="*.xml"/>
71 </fileset>
72 </copy>
73 <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
74 <!--
75 ************************************************
76 ** configure these properties. Most of them will be copied to the plugins
77 ** manifest file. Property values will also show up in the list available
78 ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
79 **
80 ************************************************
81 -->
82 <manifest>
83 <attribute name="Author" value="Jose Vidal &lt;vidalfree@gmail.com&gt;, Juangui Jordán &lt;juangui@gmail.com&gt;, Hassan S &lt;hassan.sabirin@gmail.com&gt;"/>
84 <attribute name="Plugin-Class" value="com.innovant.josm.plugin.routing.RoutingPlugin"/>
85 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
86 <attribute name="Plugin-Description" value="Provides routing capabilities."/>
87 <attribute name="Plugin-Icon" value="images/preferences/routing.png"/>
88 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/>
89 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
90 <attribute name="Plugin-Stage" value="50"/>
91 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
92 </manifest>
93 <zipfileset src="${plugin.lib.dir}/jgrapht-jdk1.5.jar"/>
94 <zipfileset src="${plugin.lib.dir}/log4j-1.2.15.jar"/>
95 </jar>
96 </target>
97</project>
Note: See TracBrowser for help on using the repository browser.