<?xml version="1.0" encoding="utf-8"?>
<project name="osmarender" default="install" basedir=".">

    <!-- enter the SVN commit message -->
    <property name="commit.message" value="Fixed #4360 - osmarender plugin does not load"/>
    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    <property name="plugin.main.version" value="13007"/>

    <property name="stylesheets" location="./stylesheets"/>
    <property name="xslt" location="./xslt"/>

    <property name="plugin.author" value="80n"/>
    <property name="plugin.class" value="org.openstreetmap.josm.plugins.osmarender.OsmarenderPlugin"/>
    <property name="plugin.description" value="Launches FireFox to display the current visible screen as a nice SVG image."/>

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

    <target name="setup-dist">
        <antcall target="setup-dist-default" />
        <copy todir="${plugin.build.dir}" file="${xslt}/osmarender.xsl"/>
        <copy tofile="${plugin.build.dir}/osm-map-features.xml" file="${stylesheets}/osm-map-features-z17.xml"/>
    </target>

    <target name="revision">
        <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
            <env key="LANG" value="C"/>
            <arg value="../getrevision.pl"/>
            <arg value="xslt"/>
            <arg value="stylesheets"/>
            <arg value="."/>
        </exec>
        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="true" failonerror="true">
            <env key="LANG" value="C"/>
            <arg value="info"/>
            <arg value="--xml"/>
            <arg value="."/>
        </exec>
        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
        <echo message="Revision is ${version.entry.commit.revision}"/>
        <delete file="REVISION"/>
    </target>

</project>
