Index: applications/editors/josm/plugins/waypoints/build.xml
===================================================================
--- applications/editors/josm/plugins/waypoints/build.xml	(revision 5147)
+++ applications/editors/josm/plugins/waypoints/build.xml	(revision 5153)
@@ -1,3 +1,12 @@
-<project name="waypoints" default="build" basedir=".">
+<project name="waypoints" default="dist" basedir=".">
+
+  <!-- compilation properties -->
+  <property name="josm.build.dir"	value="../../core"/>
+  <property name="josm.home.dir"	value="${user.home}/.josm"/>
+  <property name="josm"			location="../../core/dist/josm-custom.jar" />
+  <property name="plugin.build.dir"	value="build"/>
+  <property name="plugin.dist.dir"	value="../dist"/>
+  <property name="plugin.name"		value="${ant.project.name}"/>
+  <property name="plugin.jar"		value="../dist/${plugin.name}.jar"/>
 
   <!-- point to your JOSM directory -->
@@ -17,5 +26,5 @@
   </target>
 
-  <target name="build" depends="compile">
+  <target name="dist" depends="compile">
     <!--
 	<copy todir="build/images">
@@ -31,10 +40,11 @@
   </target>
 
+  <!-- clean target -->
   <target name="clean">
-    <delete dir="build" />
-    <delete dir="dist" />
+    <delete dir="${plugin.build.dir}" />
+    <delete file="${plugin.jar}" />
   </target>
 
-  <target name="install" depends="build">
+  <target name="install" depends="dist">
     <copy file="dist/waypoints.jar" todir="${user.home}/.josm/plugins"/>
   </target>
