Index: applications/editors/josm/plugins/mappaint/build.xml
===================================================================
--- applications/editors/josm/plugins/mappaint/build.xml	(revision 5147)
+++ applications/editors/josm/plugins/mappaint/build.xml	(revision 5153)
@@ -1,4 +1,13 @@
-<project name="mappaint" default="build" basedir=".">
+<project name="mappaint" 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"/>
+  
   <!-- There's no josm.jar in the svn, so point "josm" to a local copy of your JOSM binary -->
   <property name="josm" location="../../core/dist/josm-custom.jar" />
@@ -25,5 +34,5 @@
   </target>
 
-  <target name="build" depends="compile">
+  <target name="dist" depends="compile">
     <copy todir="build/standard">
       <fileset dir="styles/standard"></fileset>
@@ -37,5 +46,5 @@
     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
     <delete file="REVISION"/>
-    <jar destfile="dist/mappaint.jar" basedir="build">
+    <jar destfile="${plugin.jar}" basedir="build">
       <manifest>
 	<attribute name="Plugin-Class" value="mappaint.MapPaintPlugin" />
@@ -49,6 +58,6 @@
 
   <target name="clean">
-    <delete dir="build" />
-    <delete dir="dist" />
+    <delete dir="${plugin.build.dir}" />
+    <delete file="${plugin.jar}" />
   </target>
 
@@ -57,6 +66,6 @@
   </target>
 
-  <target name="install" depends="build">
-    <copy file="dist/mappaint.jar" todir="${plugins}"/>
+  <target name="install" depends="dist">
+    <copy file="${plugin.jar}" todir="${plugins}"/>
   </target>
 
