<?xml version="1.0" encoding="utf-8"?>
<project name="MicrosoftStreetside" default="dist" basedir="." xmlns:if="ant:if">

    <!-- Configure these properties (replace "..." accordingly).
             See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
         -->
    <!-- enter the SVN commit message -->
    <property name="commit.message" value="Commit message" />

    <!-- edit the properties of this plugin in the file `gradle.properties` -->
    <property file="${basedir}/gradle.properties"/>

    <property name="josm" location="../../core/dist/josm-custom.jar"/>
    <property name="plugin.dist.dir" value="../../dist"/>

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

    <fileset id="plugin.requires.jars" dir="${plugin.dist.dir}">
        <include name="apache-commons.jar"/>
        <include name="apache-http.jar"/>
        <include name="utilsplugin2.jar"/>
        <include name="javafx-windows.jar" if:set="isWindows"/>
        <include name="javafx-unixoid.jar" if:set="isUnix"/>
        <include name="javafx-osx.jar" if:set="isMac"/>
    </fileset>

    <target name="pre-compile" depends="fetch_dependencies">
        <!-- include fetch_dependencies task -->
    </target>

    <target name="install-plugin" depends="clean, dist, install">
        <echo>Installed Microsoft Streetside plugin</echo>
    </target>

    <target name="test-run" depends="install-plugin, runjosm">
    </target>
</project>
