<project name="josm-plugins" default="build" basedir=".">

  <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
  <!--<property name="josm" location="../../../../editors/josm/dist/josm-custom.jar" />-->
  <!--<property name="josm" location="../josm/josm-latest.jar" ></property>-->
  
  <!-- target directory to place the plugin in -->
  <!-- Windows has a different home directory scheme then unix/linux -->
  <!-- I don't know an automatic way to find it with ant :-(, if you know, please fix -->
  <!--<property name="plugins" location="${user.home}/.josm/plugins" ></property>-->
  <!--<property name="plugins" location="${user.home}/Anwendungsdaten/JOSM/plugins" ></property>-->

  <!-- you should not need to modify anything below this! -->


  <target name="compile_josm">
    <ant dir="../core" target="dist" />
  </target>

  <target name="compile" depends="compile_josm">
  </target>

  <target name="build" depends="dist">
  </target>

  <target name="dist" depends="compile">
    <mkdir dir="dist"/>
    <ant	dir="colorscheme"	antfile="build.xml"	target="dist"/>
    <ant	dir="duplicateway"	antfile="build.xml"	target="dist"/>
    <ant	dir="lang"		antfile="build.xml"	target="dist"/>
    <ant	dir="mappaint"		antfile="build.xml"	target="dist"/>
    <ant	dir="namefinder"	antfile="build.xml"	target="dist"/>
    <ant	dir="nearclick"		antfile="build.xml"	target="dist"/>
    <ant	dir="openvisible"	antfile="build.xml"	target="dist"/>
    <ant	dir="osmarender"	antfile="build.xml"	target="dist"/>
    <ant	dir="plastic_laf"	antfile="build.xml"	target="dist"/>
    <ant	dir="slippymap"		antfile="build.xml"	target="dist"/>
    <ant	dir="tagging-preset-tester"	antfile="build.xml"	target="dist"/>
    <ant	dir="utilsplugin"	antfile="build.xml"	target="dist"/>
    <ant	dir="validator"		antfile="build.xml"	target="dist"/>
    <ant	dir="wmsplugin"		antfile="build.xml"	target="dist"/>
    <ant	dir="ywms"		antfile="build.xml"	target="dist"/>

    <ant	dir="livegps"		antfile="build.xml"	target="dist"/>
    <ant	dir="surveyor"		antfile="build.xml"	target="dist"/>
  </target>

  <target name="build_defect" depends="compile">
    <ant	dir="lakewalker"	antfile="build.xml"	target="dist"/>
    <ant	dir="navigator"		antfile="build.xml"	target="dist"/>
    <ant	dir="pluginmanager"	antfile="build.xml"	target="dist"/> 
    <ant	dir="waypoints"		antfile="build.xml"	target="dist"/>
    <ant	dir="grid"		antfile="build.xml"	target="dist"/>
  </target>

  <target name="clean">
    <ant	dir="colorscheme"	antfile="build.xml"	target="clean"/>
    <ant	dir="duplicateway"	antfile="build.xml"	target="clean"/>
    <ant	dir="grid"		antfile="build.xml"	target="clean"/>
    <ant	dir="lakewalker"	antfile="build.xml"	target="clean"/>
    <ant	dir="lang"		antfile="build.xml"	target="clean"/>
    <ant	dir="mappaint"		antfile="build.xml"	target="clean"/>
    <ant	dir="namefinder"	antfile="build.xml"	target="clean"/>
    <ant	dir="navigator"		antfile="build.xml"	target="clean"/>
    <ant	dir="nearclick"		antfile="build.xml"	target="clean"/>
    <ant	dir="openvisible"	antfile="build.xml"	target="clean"/>
    <ant	dir="osmarender"	antfile="build.xml"	target="clean"/>
    <ant	dir="plastic_laf"	antfile="build.xml"	target="clean"/>
    <ant	dir="pluginmanager"	antfile="build.xml"	target="clean"/>
    <ant	dir="slippymap"		antfile="build.xml"	target="clean"/>
    <ant	dir="tagging-preset-tester"	antfile="build.xml"	target="clean"/>
    <ant	dir="utilsplugin"	antfile="build.xml"	target="clean"/>
    <ant	dir="validator"		antfile="build.xml"	target="clean"/>
    <ant	dir="waypoints"		antfile="build.xml"	target="clean"/>
    <ant	dir="wmsplugin"		antfile="build.xml"	target="clean"/>
    <ant	dir="ywms"		antfile="build.xml"	target="clean"/>

    <ant	dir="surveyor"		antfile="build.xml"	target="clean"/>
    <ant	dir="livegps"		antfile="build.xml"	target="clean"/>
  </target>

  <target name="clean_install">
  </target>

  <target name="install" depends="dist">
  </target>

</project>
