Index: applications/editors/josm/plugins/osmarender/build.xml
===================================================================
--- applications/editors/josm/plugins/osmarender/build.xml	(revision 5147)
+++ applications/editors/josm/plugins/osmarender/build.xml	(revision 5153)
@@ -1,3 +1,12 @@
 <project name="osmarender" default="install" 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"/>
 
   <property name="josm" location="../../core/dist/josm-custom.jar" />
@@ -5,16 +14,16 @@
 
   <target name="compile">
-    <mkdir dir="bin"></mkdir>
-    <mkdir dir="dist"></mkdir>
-    <javac srcdir="src" debug="true" classpath="${josm}" destdir="bin">
+    <mkdir dir="${plugin.build.dir}"></mkdir>
+    <mkdir dir="${plugin.dist.dir}"></mkdir>
+    <javac srcdir="src" debug="true" classpath="${josm}" destdir="${plugin.build.dir}">
       <include name="**/*.java" />
     </javac>
   </target>
 
-  <target name="build"  depends="compile">
-    <copy todir="bin" file="${rendering}/osmarender6/osmarender.xsl"/>
-    <copy tofile="bin/osm-map-features.xml"
+  <target name="dist"  depends="compile">
+    <copy todir="${plugin.build.dir}" file="${rendering}/osmarender6/osmarender.xsl"/>
+    <copy tofile="${plugin.build.dir}/osm-map-features.xml"
 	  file="${rendering}/osmarender5/osm-map-features-z17.xml"/>
-    <jar destfile="dist/osmarender.jar" basedir="bin">
+    <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
       <manifest>
 	<attribute name="Plugin-Class" value="OsmarenderPlugin" />
@@ -25,9 +34,9 @@
 
   <target name="clean">
-    <delete dir="bin" />
-    <delete dir="dist" />
+    <delete dir="${plugin.build.dir}" />
+    <delete file="${plugin.jar}" />
   </target>
 
-  <target name="install" depends="compile,build" />
+  <target name="install" depends="compile,dist" />
 
 </project>
