[26174] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
[19066] | 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
|
---|
[22549] | 20 | ** SVN,
|
---|
[19066] | 21 | ** set the properties commit.message and plugin.main.version
|
---|
| 22 | ** and run
|
---|
| 23 | ** > ant publish
|
---|
| 24 | **
|
---|
| 25 | **
|
---|
| 26 | -->
|
---|
[14287] | 27 | <project name="routing" default="dist" basedir=".">
|
---|
[28288] | 28 |
|
---|
| 29 | <!-- enter the SVN commit message -->
|
---|
[27952] | 30 | <property name="commit.message" value="added one-way support in roundabouts"/>
|
---|
[28288] | 31 | <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
|
---|
[27852] | 32 | <property name="plugin.main.version" value="4980"/>
|
---|
[28288] | 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}">
|
---|
[26174] | 55 | <compilerarg value="-Xlint:deprecation"/>
|
---|
| 56 | <compilerarg value="-Xlint:unchecked"/>
|
---|
| 57 | </javac>
|
---|
| 58 | </target>
|
---|
[28288] | 59 |
|
---|
[26174] | 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>
|
---|
[28288] | 68 | <copy todir="${plugin.build.dir}/">
|
---|
| 69 | <fileset dir="resources">
|
---|
| 70 | <include name="*.xml"/>
|
---|
| 71 | </fileset>
|
---|
| 72 | </copy>
|
---|
[26174] | 73 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
|
---|
[28288] | 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 | -->
|
---|
[26174] | 82 | <manifest>
|
---|
| 83 | <attribute name="Author" value="Jose Vidal <vidalfree@gmail.com>, Juangui Jordán <juangui@gmail.com>, Hassan S <hassan.sabirin@gmail.com>"/>
|
---|
| 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>
|
---|
[28288] | 93 | <zipfileset src="${plugin.lib.dir}/jgrapht-jdk1.5.jar"/>
|
---|
| 94 | <zipfileset src="${plugin.lib.dir}/log4j-1.2.15.jar"/>
|
---|
[26174] | 95 | </jar>
|
---|
| 96 | </target>
|
---|
[14287] | 97 | </project>
|
---|