[26174] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
[14287] | 2 | <project name="routing" default="dist" basedir=".">
|
---|
[28288] | 3 |
|
---|
| 4 | <!-- enter the SVN commit message -->
|
---|
[27952] | 5 | <property name="commit.message" value="added one-way support in roundabouts"/>
|
---|
[28288] | 6 | <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
|
---|
[29596] | 7 | <property name="plugin.main.version" value="5960"/>
|
---|
[28288] | 8 |
|
---|
| 9 | <!--
|
---|
| 10 | **********************************************************
|
---|
| 11 | ** include targets that all plugins have in common
|
---|
| 12 | **********************************************************
|
---|
| 13 | -->
|
---|
| 14 | <import file="../build-common.xml"/>
|
---|
| 15 |
|
---|
| 16 | <!-- classpath -->
|
---|
| 17 | <path id="classpath">
|
---|
| 18 | <fileset dir="${plugin.lib.dir}" includes="**/*.jar"/>
|
---|
| 19 | <pathelement path="${josm}"/>
|
---|
[28966] | 20 | <fileset dir="../log4j/lib">
|
---|
| 21 | <include name="**/*.jar"/>
|
---|
| 22 | </fileset>
|
---|
[28288] | 23 | </path>
|
---|
| 24 | <!--
|
---|
| 25 | **********************************************************
|
---|
| 26 | ** compile - complies the source tree
|
---|
| 27 | ** Overrides the target from build-common.xml
|
---|
| 28 | **********************************************************
|
---|
| 29 | -->
|
---|
| 30 | <target name="compile" depends="init">
|
---|
| 31 | <echo message="compiling sources for ${plugin.jar} ..."/>
|
---|
| 32 | <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}">
|
---|
[26174] | 33 | <compilerarg value="-Xlint:deprecation"/>
|
---|
| 34 | <compilerarg value="-Xlint:unchecked"/>
|
---|
| 35 | </javac>
|
---|
| 36 | </target>
|
---|
[28288] | 37 |
|
---|
[26174] | 38 | <!-- Generate distribution -->
|
---|
| 39 | <target name="dist" depends="compile,revision" description="Generate distribution">
|
---|
| 40 | <copy todir="${plugin.build.dir}/images">
|
---|
| 41 | <fileset dir="images"/>
|
---|
| 42 | </copy>
|
---|
| 43 | <copy todir="${plugin.build.dir}/data">
|
---|
| 44 | <fileset dir="data"/>
|
---|
| 45 | </copy>
|
---|
[28288] | 46 | <copy todir="${plugin.build.dir}/">
|
---|
| 47 | <fileset dir="resources">
|
---|
| 48 | <include name="*.xml"/>
|
---|
| 49 | </fileset>
|
---|
| 50 | </copy>
|
---|
[26174] | 51 | <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
|
---|
[28288] | 52 | <!--
|
---|
| 53 | ************************************************
|
---|
| 54 | ** configure these properties. Most of them will be copied to the plugins
|
---|
| 55 | ** manifest file. Property values will also show up in the list available
|
---|
| 56 | ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
|
---|
| 57 | **
|
---|
| 58 | ************************************************
|
---|
| 59 | -->
|
---|
[26174] | 60 | <manifest>
|
---|
| 61 | <attribute name="Author" value="Jose Vidal <vidalfree@gmail.com>, Juangui Jordán <juangui@gmail.com>, Hassan S <hassan.sabirin@gmail.com>"/>
|
---|
| 62 | <attribute name="Plugin-Class" value="com.innovant.josm.plugin.routing.RoutingPlugin"/>
|
---|
| 63 | <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
|
---|
| 64 | <attribute name="Plugin-Description" value="Provides routing capabilities."/>
|
---|
| 65 | <attribute name="Plugin-Icon" value="images/preferences/routing.png"/>
|
---|
| 66 | <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/>
|
---|
| 67 | <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
|
---|
| 68 | <attribute name="Plugin-Stage" value="50"/>
|
---|
[28966] | 69 | <attribute name="Plugin-Requires" value="log4j"/>
|
---|
[26174] | 70 | <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
|
---|
| 71 | </manifest>
|
---|
[28288] | 72 | <zipfileset src="${plugin.lib.dir}/jgrapht-jdk1.5.jar"/>
|
---|
[26174] | 73 | </jar>
|
---|
| 74 | </target>
|
---|
[14287] | 75 | </project>
|
---|