<?xml version="1.0" encoding="utf-8"?>
<project name="routes" default="dist" basedir=".">
    <!-- enter the SVN commit message -->
    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    <property name="plugin.main.version" value="19044"/>

    <!-- Configure these properties (replace "..." accordingly).
         See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
    -->
    <property name="plugin.author" value="Jiri Klement"/>
    <property name="plugin.class" value="org.openstreetmap.josm.plugins.routes.RoutesPlugin"/>
    <property name="plugin.description" value="Renders routes (bus, hiking trails, bicycle routes, ..). Route types must be defined in routes.xml file in plugin directory"/>
    <!--<property name="plugin.icon" value="..."/>-->
    <!--<property name="plugin.link" value="..."/>-->
    <!--<property name="plugin.early" value="..."/>-->
    <property name="plugin.requires" value="jaxb"/>
    <!--<property name="plugin.stage" value="..."/>-->

    <!-- ** include targets that all plugins have in common ** -->
    <import file="../build-common.xml"/>

    <target name="pre-compile" depends="-jaxb_linux, -jaxb_windows" unless="jaxb.notRequired">
        <exec executable="${xjc}" failonerror="true">
            <arg value="-d"/>
            <arg value="src"/>
            <arg value="-p"/>
            <arg value="org.openstreetmap.josm.plugins.routes.xml"/>
            <arg value="-encoding"/>
            <arg value="UTF-8"/>
            <arg value="resources/org/openstreetmap/josm/plugins/routes/xml/routes.xsd"/>
        </exec>
    </target>

</project>
