source: subversion/applications/editors/josm/plugins/routing/build.xml @ 29525

Last change on this file since 29525 was 29435, checked in by Dirk Stoecker, 6 years ago

i18n update

  • Property svn:mime-type set to text/xml
File size: 3.9 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        <fileset dir="../log4j/lib">
46            <include name="**/*.jar"/>
47        </fileset>
48    </path>
49    <!--
50    **********************************************************
51    ** compile - complies the source tree
52    ** Overrides the target from build-common.xml
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    <!-- Generate distribution -->
64    <target name="dist" depends="compile,revision" description="Generate distribution">
65        <copy todir="${plugin.build.dir}/images">
66            <fileset dir="images"/>
67        </copy>
68        <copy todir="${plugin.build.dir}/data">
69            <fileset dir="data"/>
70        </copy>
71        <copy todir="${plugin.build.dir}/">
72            <fileset dir="resources">
73                <include name="*.xml"/>
74            </fileset>
75        </copy>
76        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
77        <!--
78        ************************************************
79        ** configure these properties. Most of them will be copied to the plugins
80        ** manifest file. Property values will also show up in the list available
81        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
82        **
83        ************************************************
84        -->
85            <manifest>
86                <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;"/>
87                <attribute name="Plugin-Class" value="com.innovant.josm.plugin.routing.RoutingPlugin"/>
88                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
89                <attribute name="Plugin-Description" value="Provides routing capabilities."/>
90                <attribute name="Plugin-Icon" value="images/preferences/routing.png"/>
91                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/>
92                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
93                <attribute name="Plugin-Stage" value="50"/>
94                <attribute name="Plugin-Requires" value="log4j"/>
95                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
96            </manifest>
97            <zipfileset src="${plugin.lib.dir}/jgrapht-jdk1.5.jar"/>
98        </jar>
99    </target>
100</project>
Note: See TracBrowser for help on using the repository browser.