<?xml version="1.0" encoding="utf-8"?>
<project name="apache-commons" default="dist" basedir=".">

    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    <property name="plugin.main.version" value="7777"/>

    <!-- Configure these properties (replace "..." accordingly).
         See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
    -->
    <property name="plugin.author" value="nokutu; Don-vip"/>
    <property name="plugin.class" value="org.openstreetmap.josm.plugins.commons.CommonsPlugin"/>
    <property name="plugin.description" value="Provides Apache Commons library components. Not meant to be installed directly by users, but rather as a dependency for other plugins."/>
    
	<property name="josm" location="../../core/dist/josm-custom.jar"/>
	<property name="plugin.dist.dir" value="../../dist"/>
    <!--<property name="plugin.requires" value=""/>-->
    <property name="plugin.stage" value="10"/>

    <!-- ** include targets that all plugins have in common ** -->
    <import file="../build-common.xml"/>

    <!--
    ***************************************************************
    ** compile_lang3 - compiles Apache Commons Lang 3 (not UTF-8 !)
    ***************************************************************
    -->
    <target name="compile_lang3" depends="init">
        <echo message="compiling Apache Commons Lang 3 ... "/>
        <javac srcdir="src" includes="org/apache/commons/lang3/**" debug="false" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="ISO-8859-1" />
    </target>

    <!--
    **********************************************************
    ** compile - compiles the source tree
    **********************************************************
    -->
    <target name="compile" depends="compile_lang3">
        <echo message="compiling sources for ${plugin.jar} ... "/>
        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}" includeAntRuntime="false" encoding="UTF-8">
            <exclude name="**/org/apache/commons/lang3/**" />
            <classpath>
                <pathelement path="${plugin.build.dir}"/>
                <pathelement location="${josm}"/>
            </classpath>
        </javac>
    </target>

</project>
