<?xml version="1.0" encoding="utf-8"?>
<project name="geotools" default="dist" basedir=".">
    <!-- enter the SVN commit message -->
    <property name="commit.message" value="Commit message"/>
    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    <property name="plugin.main.version" value="7001"/>
    
    <property name="plugin.author" value="Don-vip"/>
    <property name="plugin.class" value="org.openstreetmap.josm.plugins.geotools.GeoToolsPlugin"/>
    <property name="plugin.description" value="Provides parts of the GeoTools library for other JOSM plugins. Not meant to be installed directly by users, but rather as a dependency for other plugins."/>
    <property name="plugin.icon" value="images/compass.png"/>
    <property name="plugin.canloadatruntime" value="true"/>
    <!--<property name="plugin.link" value="..."/>-->
    <!--<property name="plugin.early" value="..."/>-->
    <property name="plugin.requires" value="jts"/>
    <property name="plugin.stage" value="20"/>

    <!-- ** include targets that all plugins have in common ** -->
    <import file="../build-common.xml"/>
    
    <!--
    **********************************************************
    ** post-dist - replaces files from the generated jar
    **********************************************************
    -->
    <target name="post-dist">
        <move file="${plugin.jar}" todir="${plugin.build.dir}" />
        <jar destfile="${plugin.jar}" filesetmanifest="merge">
            <fileset dir="jar"/>
            <zipfileset src="${plugin.build.dir}/${ant.project.name}.jar">
                <exclude name="*.class"/>
                <exclude name="*.html"/>
                <exclude name="META-INF/**/*"/>
                <exclude name="javax/*.txt"/>
            </zipfileset>
            <zipfileset src="${plugin.build.dir}/${ant.project.name}.jar">
                <include name="META-INF/MANIFEST.MF"/>
                <include name="META-INF/*.jai"/>
            </zipfileset>
        </jar>
        <delete file="${plugin.build.dir}/${ant.project.name}.jar" />
    </target>
</project>
