Index: applications/editors/josm/plugins/00_plugin_dir_template/build.xml
===================================================================
--- applications/editors/josm/plugins/00_plugin_dir_template/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/00_plugin_dir_template/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,17 @@
 -->
 <project name="myPluginName" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message" />
+    <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="" />
-
-
-    <!--
-      ************************************************
-      ** should not be necessary to change the following properties
-     -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="plugin.main.version" value=""/>
+    <!-- should not be necessary to change the following properties -->
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +50,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +62,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -84,19 +75,22 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
             <!--
-        ************************************************
-        ** configure these properties. Most of them will be copied to the plugins
-        ** manifest file. Property values will also show up in the list available
-        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
-        **
-        ************************************************
-    -->
+            ************************************************
+            ** configure these properties. Most of them will be copied to the plugins
+            ** manifest file. Property values will also show up in the list available
+            ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
+            **
+            ************************************************
+            -->
             <manifest>
                 <attribute name="Author" value="..."/>
@@ -111,5 +105,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -120,5 +113,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -130,5 +122,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -140,5 +131,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -155,14 +145,11 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
     -->
     <!--
-        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-        ** property ${coreversion.info.entry.revision}
-        **
-        -->
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+    ** property ${coreversion.info.entry.revision}
+    -->
     <target name="core-info">
         <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
@@ -175,10 +162,7 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
-    <!--
-        ** commits the source tree for this plugin
-        -->
+        <delete file="core.info.xml"/>
+    </target>
+    <!-- commits the source tree for this plugin -->
     <target name="commit-current">
         <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
@@ -190,8 +174,5 @@
         </exec>
     </target>
-
-    <!--
-        ** updates (svn up) the source tree for this plugin
-        -->
+    <!-- updates (svn up) the source tree for this plugin -->
     <target name="update-current">
         <echo>Updating plugin source ...</echo>
@@ -208,8 +189,5 @@
         </exec>
     </target>
-
-    <!--
-        ** commits the plugin.jar 
-        -->
+    <!-- commits the plugin.jar -->
     <target name="commit-dist">
         <echo>
@@ -230,10 +208,9 @@
         </exec>
     </target>
-
-    <!-- ** make sure svn is present as a command line tool ** -->
+    <!-- make sure svn is present as a command line tool -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -241,5 +218,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -248,9 +225,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/ColumbusCSV/build.xml
===================================================================
--- applications/editors/josm/plugins/ColumbusCSV/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/ColumbusCSV/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -26,13 +26,12 @@
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"          location="../../core/dist/josm-custom.jar"/>
-	<property name="josm_stable"   location="../../core/dist/3529/josm-tested.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="josm_stable" location="../../core/dist/3529/josm-tested.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -41,7 +40,6 @@
     -->
     <target name="init">
-        <mkdir dir="${plugin.build.dir}"/>    	
+        <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -56,5 +54,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -63,5 +60,5 @@
     -->
     <target name="dist" depends="compile,revision">
-    	<mkdir dir="${plugin.dist.dir}"/>
+        <mkdir dir="${plugin.dist.dir}"/>
         <echo message="creating ${plugin.jar} ... "/>
         <copy todir="${plugin.build.dir}/resources">
@@ -71,12 +68,15 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-    <!--
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -91,13 +91,12 @@
                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
                 <attribute name="Plugin-Description" value="Imports proprietary CSV files of the Columbus/Visiontac V-900 GPS logger into a GPX layer."/>
-            	<attribute name="de_Plugin-Description" value="Importiert die CSV-Dateien des Columbus/Visiontac V-900 GPS Loggers in GPX-Daten."/>
+                <attribute name="de_Plugin-Description" value="Importiert die CSV-Dateien des Columbus/Visiontac V-900 GPS Loggers in GPX-Daten."/>
                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ColumbusCSV"/>
                 <attribute name="Plugin-Mainversion" value="3835"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-            	<attribute name="Plugin-Icon" value="images/colcsvicon.png"/>
+                <attribute name="Plugin-Icon" value="images/colcsvicon.png"/>
             </manifest>
-        </jar>        
+        </jar>
     </target>
-
     <!--
     **********************************************************
@@ -108,15 +107,14 @@
     -->
     <target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-    	            <env key="LANG" value="C"/>
-    	            <arg value="info"/>
-    	            <arg value="--xml"/>
-    	            <arg value="build.xml"/>
-    	        </exec>
-    	<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-    	<echo message="Revision: ${version.entry.commit.revision}"/>
-    	<delete file="REVISION"/>
-   	</target>
-
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="build.xml"/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <echo message="Revision: ${version.entry.commit.revision}"/>
+        <delete file="REVISION"/>
+    </target>
     <!--
     **********************************************************
@@ -128,5 +126,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
Index: applications/editors/josm/plugins/CommandLine/build.xml
===================================================================
--- applications/editors/josm/plugins/CommandLine/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/CommandLine/build.xml	(revision 26174)
@@ -1,24 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <project name="CommandLine" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Moar bugfixes" />
+    <property name="commit.message" value="Moar bugfixes"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3835" />
-
-
+    <property name="plugin.main.version" value="3835"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -29,5 +25,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -42,5 +37,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -56,8 +50,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -85,5 +82,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -94,5 +90,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -104,5 +99,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -114,5 +108,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -129,6 +122,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -149,7 +140,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -164,5 +154,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -182,5 +171,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -204,10 +192,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -215,5 +202,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -222,9 +209,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/Create_grid_of_ways/build.xml
===================================================================
--- applications/editors/josm/plugins/Create_grid_of_ways/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/Create_grid_of_ways/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the Create_grid_of_ways  plugin.
@@ -29,164 +29,158 @@
 -->
 <project name="Create_grid_of_ways" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed constructor signature, updated build.xml" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Jorge Luis Chamorro"/>
-				<attribute name="Plugin-Class" value="CreateGridOfWaysPlugin.CreateGridOfWaysPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Create a grid of ways."/>
-				<attribute name="Plugin-Icon" value="images/creategridofways.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/Create_grid_of_ways"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed constructor signature, updated build.xml"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Jorge Luis Chamorro"/>
+                <attribute name="Plugin-Class" value="CreateGridOfWaysPlugin.CreateGridOfWaysPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Create a grid of ways."/>
+                <attribute name="Plugin-Icon" value="images/creategridofways.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/Create_grid_of_ways"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/DirectDownload/build.xml
===================================================================
--- applications/editors/josm/plugins/DirectDownload/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/DirectDownload/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="DirectDownload" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message" />
+    <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3835" />
-
-
+    <property name="plugin.main.version" value="3835"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -84,8 +78,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -104,5 +101,5 @@
                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
                 <attribute name="Plugin-Description" value="Download your GPX tracks from openstreetmap.org"/>
-<!--
+                <!--
                 <attribute name="Plugin-Icon" value="..."/>
                 <attribute name="Plugin-Link" value="..."/>
@@ -113,5 +110,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -122,5 +118,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -132,5 +127,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -142,5 +136,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -157,6 +150,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -177,7 +168,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -192,5 +182,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -210,5 +199,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -232,10 +220,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -243,5 +230,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -250,9 +237,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/DirectUpload/build.xml
===================================================================
--- applications/editors/josm/plugins/DirectUpload/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/DirectUpload/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the DirectUpload plugin
@@ -26,120 +26,118 @@
 -->
 <project name="DirectUpload" default="dist" basedir=".">
-
-	<property name="commit.message" value="applied JOSM Ticket 4498 (patch by ax) - oauth support for gpx upload (I accidentally committed parts of the path in [24236])" />
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Subhodip Biswas"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="This plugin directly upload GPS Traces from current active layer in JOSM to openstreetmap.org."/>
-				<attribute name="Plugin-Icon" value="images/UploadAction.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/User:Subhodip/GSoC_Doc#DirectUpload_Plugin_in_JOSM_:"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-	<!--
-	 ************************** Publishing the plugin ***********************************
-	-->
-	<!--
-	** extracts the JOSM release for the JOSM version in ../core and saves it in the
-	** property ${coreversion.info.entry.revision}
-	**
-	-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-	** commits the source tree for this plugin
-	-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-	** updates (svn up) the source tree for this plugin
-	-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-	** commits the plugin.jar
-	-->
-	<target name="commit-dist">
-		<echo>
+    <property name="commit.message" value="applied JOSM Ticket 4498 (patch by ax) - oauth support for gpx upload (I accidentally committed parts of the path in [24236])"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Subhodip Biswas"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.DirectUpload.UploadDataGuiPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="This plugin directly upload GPS Traces from current active layer in JOSM to openstreetmap.org."/>
+                <attribute name="Plugin-Icon" value="images/UploadAction.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/User:Subhodip/GSoC_Doc#DirectUpload_Plugin_in_JOSM_:"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+     ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+    ** property ${coreversion.info.entry.revision}
+    **
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+    ** commits the source tree for this plugin
+    -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+    ** updates (svn up) the source tree for this plugin
+    -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+    ** commits the plugin.jar
+    -->
+    <target name="commit-dist">
+        <echo>
 ***** Properties of published ${plugin.jar} *****
 Commit message    : '${commit.message}'
@@ -151,35 +149,33 @@
 Now commiting ${plugin.jar} ...
 </echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/ElevationProfile/build.xml
===================================================================
--- applications/editors/josm/plugins/ElevationProfile/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/ElevationProfile/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -26,13 +26,12 @@
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"          location="../../core/dist/josm-custom.jar"/>
-	<property name="josm_stable"   location="../../core/dist/3529/josm-tested.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="josm_stable" location="../../core/dist/3529/josm-tested.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -43,5 +42,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -56,5 +54,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -63,27 +60,25 @@
     -->
     <target name="dist" depends="compile,revision">
-    	<condition property="josm.dist.dir" value="../../dist" else="dist">
-    	    	            <and>
-    	    	                <os family="windows"/>
-    	    	            </and>
-    	    	        </condition>
-    	<mkdir dir="${plugin.dist.dir}"/>
+        <condition property="josm.dist.dir" value="../../dist" else="dist">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <mkdir dir="${plugin.dist.dir}"/>
         <echo message="creating ${plugin.jar} ... "/>
-    	<!--
-        <copy todir="${plugin.build.dir}/resources">
-            <fileset dir="resources"/>
-        </copy>
-        -->        
         <copy todir="${plugin.build.dir}/images">
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-    <!--
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -98,13 +93,12 @@
                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
                 <attribute name="Plugin-Description" value="Shows the elevation profile and some statistical data of a GPX track."/>
-            	<attribute name="de_Plugin-Description" value="Zeigt das Höhenprofil und statistische Werte eines GPX-Tracks."/>
+                <attribute name="de_Plugin-Description" value="Zeigt das Höhenprofil und statistische Werte eines GPX-Tracks."/>
                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ElevationProfile"/>
                 <attribute name="Plugin-Mainversion" value="3835"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-            	<attribute name="Plugin-Icon" value="images/elevation.png"/>
+                <attribute name="Plugin-Icon" value="images/elevation.png"/>
             </manifest>
-        </jar>        
+        </jar>
     </target>
-
     <!--
     **********************************************************
@@ -115,15 +109,14 @@
     -->
     <target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-    	            <env key="LANG" value="C"/>
-    	            <arg value="info"/>
-    	            <arg value="--xml"/>
-    	            <arg value="build.xml"/>
-    	        </exec>
-    	<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-    	<echo message="Revision: ${version.entry.commit.revision}"/>
-    	<delete file="REVISION"/>
-   	</target>
-
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="build.xml"/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <echo message="Revision: ${version.entry.commit.revision}"/>
+        <delete file="REVISION"/>
+    </target>
     <!--
     **********************************************************
@@ -135,5 +128,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -147,5 +139,5 @@
                 <os family="windows"/>
             </and>
-        </condition>    	
+        </condition>
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
Index: applications/editors/josm/plugins/FastDraw/.classpath
===================================================================
--- applications/editors/josm/plugins/FastDraw/.classpath	(revision 26174)
+++ applications/editors/josm/plugins/FastDraw/.classpath	(revision 26174)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry combineaccessrules="false" kind="src" path="/josm"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>
Index: applications/editors/josm/plugins/FastDraw/.project
===================================================================
--- applications/editors/josm/plugins/FastDraw/.project	(revision 26174)
+++ applications/editors/josm/plugins/FastDraw/.project	(revision 26174)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>josm-ImproveWayAccuracy</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>
Index: applications/editors/josm/plugins/FastDraw/build.xml
===================================================================
--- applications/editors/josm/plugins/FastDraw/build.xml	(revision 26174)
+++ applications/editors/josm/plugins/FastDraw/build.xml	(revision 26174)
@@ -0,0 +1,253 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+** This is a template build file for a JOSM  plugin.
+**
+** Maintaining versions
+** ====================
+** see README.template
+**
+** Usage
+** =====
+** To build it run
+**
+**    > ant  dist
+**
+** To install the generated plugin locally (in you default plugin directory) run
+**
+**    > ant  install
+**
+** The generated plugin jar is not automatically available in JOSMs plugin configuration
+** dialog. You have to check it in first.
+**
+** Use the ant target 'publish' to check in the plugin and make it available to other
+** JOSM users:
+**    set the properties commit.message and plugin.main.version
+** and run
+**    > ant  publish
+**
+**
+-->
+<project name="FastDraw" default="dist" basedir=".">
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="FastDraw: plugin icon"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
+      ************************************************
+      ** should not be necessary to change the following properties
+     -->
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="josm_location" value="../../core/dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
+    **********************************************************
+    ** init - initializes the build
+    **********************************************************
+    -->
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** compile - complies the source tree
+    **********************************************************
+    -->
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
+    **********************************************************
+    ** dist - creates the plugin jar
+    **********************************************************
+    -->
+    <target name="dist" depends="compile, revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
+        ************************************************
+        ** configure these properties. Most of them will be copied to the plugins
+        ** manifest file. Property values will also show up in the list available
+        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
+        **
+        ************************************************
+    -->
+            <manifest>
+                <attribute name="Author" value="Alexei Kasatkin"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.fastdraw.FastDrawingPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Icon" value="images/favicon.png"/>
+                <attribute name="Plugin-Description" value="Fast drawing ways by mouse"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/FastDraw"/>
+                <attribute name="ru_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/RU:JOSM/Plugins/FastDraw"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
+    **********************************************************
+    ** revision - extracts the current revision number for the
+    **    file build.number and stores it in the XML property
+    **    version.*
+    **********************************************************
+    -->
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+    **********************************************************
+    ** clean - clean up the build environment
+    **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** install - install the plugin in your local JOSM installation
+    **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}" force="true"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                    
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                    
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="dist_and_launch" depends="clean,dist">
+        <copy file="${plugin.jar}" tofile="${josm_location}/appdata/JOSM/plugins/${ant.project.name}.jar"/>
+        <exec executable="${josm_location}/josm-custom-launch.bat"/>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
+    <target name="runjosm" depends="install">
+        <java jar="${josm}" fork="true">
+            <arg line="../../core/data_nodist/restriction.osm"/>
+        </java>
+    </target>
+</project>
Index: applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/DrawnPolyLine.java
===================================================================
--- applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/DrawnPolyLine.java	(revision 26174)
+++ applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/DrawnPolyLine.java	(revision 26174)
@@ -0,0 +1,301 @@
+package org.openstreetmap.josm.plugins.fastdraw;
+
+import java.awt.Point;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.ListIterator;
+import java.util.Set;
+import org.openstreetmap.josm.data.coor.LatLon;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import org.openstreetmap.josm.gui.MapView;
+
+public class DrawnPolyLine {
+    MapView mv;
+    private LinkedList<LatLon> points = new LinkedList<LatLon>();
+    private LinkedList<LatLon> simplePoints = new LinkedList<LatLon>();
+    private Set<LatLon> used;
+    private Set<LatLon> fixed = new HashSet<LatLon>();
+    
+    private int lastIdx;
+    private boolean closedFlag;
+
+    public DrawnPolyLine() {
+        clear();
+    }
+    public void setMv(MapView mv) {
+        this.mv = mv;
+    }
+
+    boolean isFixed(LatLon pp2) {
+        return fixed.contains(pp2);
+    }
+
+    LinkedList<LatLon> getPoints() {
+        if (simplePoints!=null) return simplePoints; else return points;
+    }
+
+    boolean wasSimplified() {
+        return (simplePoints!=null && simplePoints.size()>0);
+    }
+    
+    int findClosestPoint(Point p, double d) {
+        double x=p.x, y=p.y;
+        int n=points.size();
+        int idx=-1;
+        double dist,minD=1e10;
+        for (int i=0;i<n;i++) {
+            dist = Math.sqrt(getPoint(points.get(i)).distanceSq(x,y));
+            if (dist<d && dist<minD) {
+                idx=i;
+                minD=dist;
+            };
+        }
+        return idx;
+    }
+
+    void clear() {
+        points.clear();
+        used=null;
+        lastIdx=0;
+        closedFlag=false;
+        fixed.clear();
+        simplePoints=null;
+    }
+
+    void undo() {
+        //if (points.size() > 0) points.removeLast();
+        if (lastIdx>0 && lastIdx<points.size()){
+        points.remove(lastIdx);
+        lastIdx--;
+        }
+    }
+    
+    void fixPoint(LatLon p) {
+        fixed.add(p);
+    }
+
+    void addFixed(LatLon coor) {
+         addLast(coor);
+        fixed.add(coor);
+    }
+    void addLast(LatLon coor) {
+        if (closedFlag && lastIdx>points.size()-1) return;
+        if (lastIdx>=points.size()-1) {
+            //System.out.println("add last "+points.size());
+            points.addLast(coor);if (points.size()>1) lastIdx++;
+            //System.out.println("lastIdx="+lastIdx);
+            }
+        else {points.add(lastIdx+1, coor); lastIdx++; 
+            //System.out.println("add at "+lastIdx+"/"+points.size());
+        }
+    }
+  
+    Point getLastPoint() {
+        return getPoint(points.get(lastIdx));
+    }
+
+    Point getPoint(LatLon p) {
+        return mv.getPoint(p);
+    }
+    
+    /**
+     * Simplified drawn line, not touching the nodes includes in "fixed" set.
+     */
+    void simplify(double epsilon) {
+        //System.out.println("Simplify polyline...");
+        int n = points.size();
+        if (n < 3) return;
+        used = new HashSet<LatLon>(n);
+        int start = 0;
+        for (int i = 0; i < n; i++) {
+            LatLon p = points.get(i);
+            if (fixed.contains(p) || i == n - 1) {
+                if (start < 0) {
+                    start = i;
+                } else {
+                    douglasPeucker(start, i, epsilon, 0);
+                }
+            }
+        }
+        simplePoints = new LinkedList<LatLon>();
+        simplePoints.addAll(points);
+        simplePoints.retainAll(used);
+        //Main.map.mapView.repaint();
+        used = null;
+    }
+
+    /**
+     * Simplification of the line specified by "points" field.
+     * Remainin points are included to "used" set.
+     * @param start - starting index
+     * @param end - ending index
+     * @param epsilon - min point-to line distance in pixels (tolerance)
+     * @param depth - recursion level
+     */
+    private void douglasPeucker(int start, int end, double epsilon, int depth) {
+        if (depth > 500) return;
+        if (end - start < 1) return; // incorrect invocation
+        LatLon first = points.get(start);
+        LatLon last = points.get(end);
+        Point firstp = getPoint(first);
+        Point lastp = getPoint(last);
+        used.add(first);
+        used.add(last);
+
+        if (end - start < 2) return;
+        
+        int farthest_node = -1;
+        double farthest_dist = 0;
+
+        double d = 0;
+
+        for (int i = start + 1; i < end; i++) {
+            d = pointLineDistance(getPoint(points.get(i)), firstp, lastp);
+            if (d > farthest_dist) {
+                farthest_dist = d;
+                farthest_node = i;
+            }
+        }
+
+        if (farthest_dist > epsilon) {
+            douglasPeucker(start, farthest_node, epsilon, depth + 1);
+            douglasPeucker(farthest_node, end, epsilon, depth + 1);
+        }
+    }
+
+    /** Modfified funclion from LakeWalker
+     * Gets distance from point p1 to line p2-p3
+     */
+    public double pointLineDistance(Point p1, Point p2, Point p3) {
+        double x0 = p1.x;        double y0 = p1.y;
+        double x1 = p2.x;        double y1 = p2.y;
+        double x2 = p3.x;        double y2 = p3.y;
+        if (x2 == x1 && y2 == y1) {
+            return Math.hypot(x1 - x0, y1 - y0);
+        } else {
+            return Math.abs((x2-x1)*(y1-y0)-(x1-x0)*(y2-y1))/Math.hypot(x2 - x1,y2 - y1);
+        }
+    }
+
+    void closeLine() {
+        points.add(points.getFirst());
+        closedFlag=true;
+    }
+    boolean isClosed() {
+        return closedFlag;
+    }
+    
+    void deleteNode(int idx) {
+        if (idx<=lastIdx) lastIdx--;
+        fixed.remove(points.get(idx));
+        points.remove(idx); 
+    }
+    void tryToDeleteSegment(Point p) {
+        if (points.size()<3) return;
+        
+        LatLon start;
+        start = findBigSegment(p);
+        ListIterator<LatLon> it= points.listIterator();
+        LatLon pp;
+        boolean f=false;
+        int i=0,idx=-1;
+        while (it.hasNext()) {
+            pp=it.next();
+            if (f &&(fixed.contains(pp))) {
+                // if end of line fragment reached
+                lastIdx=idx;
+                return;
+            }if (f &&(!it.hasNext())) {
+                // if end of whole line reached
+                closedFlag=false;
+                it.remove();
+                lastIdx=points.size()-1;
+                return;
+            }
+            
+            // if we are deleting this segment
+            if (f) it.remove(); 
+            if (pp == start) {f=true;idx=i;} // next node should be removed
+            i++;
+        }
+        lastIdx=points.size()-1;
+        }
+
+    /** find starting point of the polyline line fragment close to p
+     *  line fragment = segments between two fixed (green) nodes
+     * @param p
+     * @return 
+     */
+    LatLon findBigSegment(Point p) {
+        if (points.size()<2) return null;
+        Iterator<LatLon> it1 = points.listIterator(0);
+        Iterator<LatLon> it2 = points.listIterator(1);
+        Point p1,p2;
+        LatLon pp1,pp2,start=null;
+        start=points.getFirst();
+        do {
+        pp1=it1.next();
+        pp2=it2.next();
+        p1 = getPoint(pp1);
+        p2 = getPoint(pp2);
+        // maintain segment start end end
+        if (fixed.contains(pp1) ) { start=pp1; }
+        if (pointSegmentDistance(p,p1,p2) < 5) {
+            return start;
+        } 
+        } while (it2.hasNext());
+        return null;
+        
+    }
+
+    private double pointSegmentDistance(Point p, Point p1, Point p2) {
+        double a,b,x,y,l,h,kt,kn,dist;
+        x=p.x-p1.x; y=p.y-p1.y; 
+        a=p2.x-p1.x; b=p2.y-p1.y;
+        l=Math.hypot(a,b);
+        if (l==0) return Math.hypot(x, y); // p1 = p2
+        kt=(x*a+y*b)/l;
+        kn=Math.abs((-x*b+y*a)/l);
+        if (kt>=0 && kt<l) dist=kn; else {
+            dist=Math.min(Math.hypot(x, y), Math.hypot(x-a, y-b));
+        }
+        return dist;
+    }
+
+    void clearSimplifiedVersion() {
+        simplePoints=null;
+    }
+
+    boolean isLastPoint(int i) {
+        return (lastIdx==i);
+    }
+
+    void moveToTheEnd() {
+        lastIdx=points.size()-1;
+    }
+
+    void toggleFixed(int idx) {
+        LatLon p = points.get(idx);
+        if (fixed.contains(p)) fixed.remove(p);
+        else fixed.add(p);
+    }
+
+    void moveNode(int dragNode, LatLon coor) {
+        LatLon dragged = points.get(dragNode);
+        // points.getLast().equals(points.getFirst()
+        if (closedFlag && points.getFirst().equals(dragged)) {
+            // move both ends
+            points.set(0, coor);
+            points.set(points.size()-1, coor);
+        } else {
+            points.set(dragNode, coor);
+        }
+        if (fixed.contains(dragged)) {
+                fixed.remove(dragged);
+                fixed.add(coor);
+         }
+    }
+
+}
Index: applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/FastDrawingMode.java
===================================================================
--- applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/FastDrawingMode.java	(revision 26174)
+++ applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/FastDrawingMode.java	(revision 26174)
@@ -0,0 +1,566 @@
+/*
+ * This file is part of ImproveWayAccuracy plugin for JOSM.
+ * http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ImproveWayAccuracy
+ *
+ * Licence: GPL v2 or later
+ * Author:  Alexei Kasatkin, 2011
+ * Thanks to authors of BuildingTools, ImproveWayAccuracy and LakeWalker
+ * for good sample code
+ */
+package org.openstreetmap.josm.plugins.fastdraw;
+
+import java.awt.AWTEvent;
+import java.awt.BasicStroke;
+import java.awt.Color;
+import java.awt.Point;
+import java.awt.event.MouseEvent;
+import org.openstreetmap.josm.data.coor.LatLon;
+import org.openstreetmap.josm.data.osm.Tag;
+import static org.openstreetmap.josm.tools.I18n.tr;
+
+import java.awt.Cursor;
+import java.awt.Graphics2D;
+import java.awt.Stroke;
+import java.awt.Toolkit;
+import java.awt.event.AWTEventListener;
+import java.awt.event.ActionEvent;
+import java.awt.event.InputEvent;
+import java.awt.event.KeyEvent;
+import java.io.IOException;
+import java.lang.annotation.Target;
+import java.util.*;
+import javax.swing.JOptionPane;
+
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.PasteTagsAction.TagPaster;
+import org.openstreetmap.josm.actions.mapmode.MapMode;
+import org.openstreetmap.josm.command.AddCommand;
+import org.openstreetmap.josm.command.Command;
+import org.openstreetmap.josm.command.SequenceCommand;
+import org.openstreetmap.josm.data.Bounds;
+import org.openstreetmap.josm.data.osm.Node;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import org.openstreetmap.josm.data.osm.Way;
+import org.openstreetmap.josm.gui.MapFrame;
+import org.openstreetmap.josm.gui.MapView;
+import org.openstreetmap.josm.gui.layer.Layer;
+import org.openstreetmap.josm.gui.layer.MapViewPaintable;
+import org.openstreetmap.josm.gui.layer.OsmDataLayer;
+import org.openstreetmap.josm.tools.ImageProvider;
+import org.openstreetmap.josm.tools.Shortcut;
+
+class FastDrawingMode extends MapMode implements MapViewPaintable,
+        AWTEventListener {
+    private static final String SIMPLIFYMODE_MESSAGE=
+            tr("Press Enter to simplify or save, Ctrl-Enter to save with tags, Up/Down to tune simplification");
+    private static final String DRAWINGMODE_MESSAGE=
+    tr("Click or Click&drag to continue, Ctrl-Click to add fixed node, Shift-Click to delete, Enter to simplify or save, Ctrl-Shift-Click to start new line");
+
+    private Color COLOR_FIXED;
+    private Color COLOR_NORMAL;
+    private Color COLOR_DELETE;
+    private Color COLOR_SELECTEDFRAGMENT;
+    private Color COLOR_EDITEDFRAGMENT;
+
+    private double maxDist;
+    private double epsilonMult;
+    //private double deltaLatLon;
+    /// When drawing line, distance between points will be this
+    private double minPixelsBetweenPoints;
+    /// Initial tolerance for Douglas-Pecker algorithm
+    private double startingEps;
+
+    private DrawnPolyLine line;
+    private MapView mv;
+    private String statusText;
+    private boolean drawing;
+    private boolean ctrl;
+    private boolean shift;
+    private boolean oldCtrl;
+    private boolean oldShift;
+    private double eps;
+    private final Stroke strokeForSimplified;
+    private final Stroke strokeForOriginal;
+    private final Cursor cursorDraw;
+    private final Cursor cursorCtrl;
+    private final Cursor cursorShift;
+    private final Cursor cursorReady;
+    private final Cursor cursorNode;
+    private boolean nearpoint;
+    private LatLon highlighted;
+    private int nearestIdx;
+    private Stroke strokeForDelete;
+    private int dragNode=-1;
+
+
+    FastDrawingMode(MapFrame mapFrame) {
+        super(tr("FastDrawing"), "turbopen.png", tr("Fast drawing mode"), Shortcut.registerShortcut(
+                "mapmode:FastDraw",
+                tr("Mode: {0}", tr("Fast drawing mode")),
+                KeyEvent.VK_T, Shortcut.GROUP_EDIT), mapFrame, Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
+        line=new DrawnPolyLine();
+        strokeForOriginal = new BasicStroke();
+        strokeForDelete = new BasicStroke(3);
+        strokeForSimplified = new BasicStroke(1,BasicStroke.CAP_ROUND,BasicStroke.JOIN_BEVEL,5f,
+                new float[]{5.f,5f},0f);
+        cursorDraw = ImageProvider.getCursor("crosshair", null);
+        cursorCtrl = ImageProvider.getCursor("crosshair", "fixed");
+        cursorShift = ImageProvider.getCursor("crosshair", "new");
+        cursorReady = ImageProvider.getCursor("crosshair", "ready");
+        cursorNode = ImageProvider.getCursor("crosshair", "joinnode");
+        //loadPrefs();
+    }
+
+// <editor-fold defaultstate="collapsed" desc="Event listeners">
+
+    @Override
+    public void enterMode() {
+        if (!isEnabled()) return;
+        super.enterMode();
+        loadPrefs();
+        mv = Main.map.mapView;
+        line.setMv(mv);
+
+        if (getCurrentDataSet() == null) return;
+
+        Main.map.mapView.addMouseListener(this);
+        Main.map.mapView.addMouseMotionListener(this);
+        Main.map.mapView.addTemporaryLayer(this);
+
+        Main.map.mapView.setCursor(cursorDraw);
+
+        try {
+            Toolkit.getDefaultToolkit().addAWTEventListener(this,
+                    AWTEvent.KEY_EVENT_MASK);
+        } catch (SecurityException ex) {
+        }
+    }
+
+    @Override
+    public void exitMode() {
+        super.exitMode();
+
+        Main.map.mapView.removeMouseListener(this);
+        Main.map.mapView.removeMouseMotionListener(this);
+
+        Main.map.mapView.removeTemporaryLayer(this);
+
+        try {
+            Toolkit.getDefaultToolkit().removeAWTEventListener(this);
+        } catch (SecurityException ex) {
+        }
+        savePrefs();
+        Main.map.mapView.setCursor(cursorDraw);
+        repaint();
+    }
+
+    @Override
+    public boolean layerIsSupported(Layer l) {
+        return l instanceof OsmDataLayer;
+    }
+
+    @Override
+    protected void updateEnabledState() {
+        setEnabled(getEditLayer() != null);
+    }
+
+    //////////    Event listener methods
+
+    @Override
+    public void paint(Graphics2D g, MapView mv, Bounds bbox) {
+        LinkedList<LatLon> pts=line.getPoints();
+        if (pts.isEmpty()) return;
+
+        if (line.wasSimplified()) {
+            // we are drawing simplified version, that exists
+            g.setStroke(strokeForSimplified);
+        } else {
+            g.setStroke(strokeForOriginal);
+        }
+
+        Point p1, p2;
+        LatLon pp1, pp2;
+        p1 = line.getPoint(pts.get(0));
+        g.setColor(COLOR_FIXED);
+        g.fillOval(p1.x - 3, p1.y - 3, 7, 7);
+        Color lineColor=COLOR_NORMAL;
+        if (pts.size() > 1) {
+        Iterator<LatLon> it1,it2;
+        it1=pts.listIterator(0);
+        it2=pts.listIterator(1);
+            for (int i = 0; i < pts.size() - 1; i++) {
+                pp1 = it1.next();
+                p1 = line.getPoint(pp1);
+                pp2 = it2.next();
+                p2 = line.getPoint(pp2);
+                if (shift && highlighted==pp1 && nearestIdx<0) {lineColor=COLOR_SELECTEDFRAGMENT;}
+                if (!shift && line.isLastPoint(i)) { lineColor=COLOR_EDITEDFRAGMENT; }
+                g.setColor(lineColor);
+                g.drawLine(p1.x, p1.y, p2.x, p2.y);
+  //                  g.fillOval(p2.x - 5, p2.y - 5, 11, 11);
+                if (line.isFixed(pp2)) {
+                    lineColor=COLOR_NORMAL;
+                    g.setColor(COLOR_FIXED);
+                    g.fillOval(p2.x - 3, p2.y - 3, 7, 7);
+                } else {
+                    g.fillRect(p2.x - 1, p2.y - 1, 3, 3);
+                }
+                if (!drawing) {
+                    if (shift && !line.wasSimplified() && nearestIdx==i+1 ) {
+                        // highlight node to delete
+                        g.setStroke(strokeForDelete);
+                        g.setColor(COLOR_DELETE);
+                        g.drawLine(p2.x - 5, p2.y - 5,p2.x + 5, p2.y + 5);
+                        g.drawLine(p2.x - 5, p2.y + 5,p2.x + 5, p2.y - 5);
+                        g.setStroke(strokeForOriginal);
+                    }
+                    if (ctrl && !line.wasSimplified() && nearestIdx==i+1 ) {
+                        // highlight node to toggle fixation
+                        g.setStroke(strokeForDelete);
+                        g.setColor( line.isFixed(pp2) ? COLOR_NORMAL: COLOR_FIXED);
+                        g.drawOval(p2.x - 5, p2.y - 5, 11, 11);
+                        g.setStroke(strokeForOriginal);
+                    }
+                }
+            }
+        }
+    }
+
+    @Override
+    public void eventDispatched(AWTEvent event) {
+        if (Main.map == null || Main.map.mapView == null
+                || !Main.map.mapView.isActiveLayerDrawable()) {
+            return;
+        }
+        updateKeyModifiers((InputEvent) event);
+        if (event.getID() == KeyEvent.KEY_PRESSED) {
+            doKeyEvent((KeyEvent) event);
+        }
+        updateCursor();
+//        updateStatusLine();
+        repaint();
+    }
+
+    @Override
+    public void mousePressed(MouseEvent e) {
+        if (!isEnabled()) return;
+        if (e.getButton() != MouseEvent.BUTTON1) return;
+
+
+        int idx=line.findClosestPoint(e.getPoint(),maxDist);
+        if (idx==0 && !line.isClosed()) {
+            line.closeLine();
+            // the way should become closed
+            drawing=false;
+            dragNode=0;
+            updateCursor();
+            return;
+        }
+
+        if (ctrl && shift) newDrawing();
+        if (!ctrl && shift) {
+            if (idx>=0) {line.deleteNode(idx); nearestIdx=-1;}
+            else line.tryToDeleteSegment(e.getPoint());
+            return;
+        }
+        if (idx>=0) {
+            if (ctrl) {
+                // toggle fixed point
+                line.toggleFixed(idx);
+            }
+            // node dragging
+            dragNode=idx;
+            return;
+        }
+
+        //if (line.isClosed()) { setStatusLine(tr(SIMPLIFYMODE_MESSAGE));return;  }
+        drawing = true;
+
+        LatLon p = getLatLon(e);
+        Node nd1 = getNearestNode(e.getPoint(), maxDist);
+        if (nd1!=null) {
+            // found node, make it fixed point of the line
+            //System.out.println("node "+nd1);
+            p=nd1.getCoor();
+            line.fixPoint(p);
+        }
+
+        line.addLast(p);
+        if (ctrl) line.fixPoint(p);
+        line.clearSimplifiedVersion();
+
+        setStatusLine(tr("Please move the mouse to draw new way"));
+        repaint();
+
+    }
+
+    @Override
+    public void mouseReleased(MouseEvent e) {
+        if (!isEnabled()) return;
+        if (e.getButton() != MouseEvent.BUTTON1) return;
+        dragNode = -1;
+        drawing = false;
+        highlighted=null;
+        if (!line.isClosed()) setStatusLine(DRAWINGMODE_MESSAGE);
+        repaint();
+    }
+
+    @Override
+    public void mouseDragged(MouseEvent e) {
+        mouseMoved(e);
+    }
+
+    @Override
+    public void mouseMoved(MouseEvent e) {
+        if (!isEnabled()) return;
+        Node nd1 = getNearestNode(e.getPoint(), maxDist);
+        boolean nearpoint2=nd1!=null;
+        if (nearpoint!=nearpoint2) {nearpoint=nearpoint2;updateCursor();}
+
+        nearestIdx=line.findClosestPoint(e.getPoint(),maxDist);
+
+        if (!drawing) {
+            if (dragNode>=0) {
+                line.moveNode(dragNode,getLatLon(e));
+                repaint();
+                return;
+            }
+
+            if (shift) {
+                // find line fragment to highlight
+                LatLon h2=line.findBigSegment(e.getPoint());
+                if (highlighted!=h2) {
+                    highlighted=h2;
+                    repaint();
+                }
+            }
+            return;
+        }
+        if (line.isClosed()) setStatusLine(SIMPLIFYMODE_MESSAGE);
+
+        // do not draw points close to existing points - we do not want self-intersections
+        if (nearestIdx>=0) { return; }
+
+        Point lastP = line.getLastPoint(); // last point of line fragment being edited
+
+        if (nearpoint){
+            if ( Math.hypot(e.getX() - lastP.x, e.getY() - lastP.y) > 1e-2) {
+                line.addFixed(nd1.getCoor()); // snap to node coords
+                repaint();
+            }
+        } else {
+            if (Math.hypot(e.getX() - lastP.x, e.getY() - lastP.y) > minPixelsBetweenPoints) {
+                line.addLast(getLatLon(e)); // free mouse-drawing
+                repaint();
+            }
+        }
+
+        //statusText = getLatLon(e).toString();        updateStatusLine();
+    }
+
+    private void doKeyEvent(KeyEvent e) {
+        ///  System.out.println(e);
+        if (e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {
+            if (line.wasSimplified()) {
+                line.clearSimplifiedVersion();
+                repaint();
+                eps=startingEps;
+            }
+            back();
+        }
+        if (e.getKeyCode() == KeyEvent.VK_ENTER) {
+            // first Enter = simplify, second = save the way
+            if (!line.wasSimplified()) {
+                line.simplify(eps);
+                setStatusLine(SIMPLIFYMODE_MESSAGE);
+            } else saveAsWay();
+        }
+        if (e.getKeyCode() == KeyEvent.VK_DOWN) {
+            // more details
+            e.consume();
+            changeEpsilon(epsilonMult);
+        }
+        if (e.getKeyCode() == KeyEvent.VK_UP) {
+            // less details
+            e.consume();
+            changeEpsilon(1/epsilonMult);
+        }
+        if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
+            // less details
+            e.consume();
+            line.moveToTheEnd();
+        }
+
+
+    }
+
+    /**
+     * Updates shift and ctrl key states
+     */
+    private void updateKeyModifiers(InputEvent e) {
+        oldCtrl = ctrl;
+        oldShift = shift;
+        ctrl = (e.getModifiers() & ActionEvent.CTRL_MASK) != 0;
+        shift = (e.getModifiers() & ActionEvent.SHIFT_MASK) != 0;
+    }
+
+    @Override
+    protected void updateStatusLine() {
+        Main.map.statusLine.setHelpText(statusText);
+        Main.map.statusLine.repaint();
+    }
+// </editor-fold>
+
+// <editor-fold defaultstate="collapsed" desc="Different action helper methods">
+    public void newDrawing() {
+        eps=startingEps;
+        line.clear();
+    }
+    private void saveAsWay() {
+        List<LatLon> pts=line.getPoints();
+        int n = pts.size();
+        if (n == 0) return;
+
+        Collection<Command> cmds = new LinkedList<Command>();
+        int i = 0;
+        Way w = new Way();
+        LatLon first=pts.get(0);
+        Node firstNode=null;
+
+        for (LatLon p : pts) {
+            Node nd=null;
+            if (line.isFixed(p)) {
+                // there may be a node with same ccoords!
+                nd = Main.map.mapView.getNearestNode(line.getPoint(p), OsmPrimitive.isUsablePredicate);
+            }
+            if (nd==null) {
+                if (i>0 && p.equals(first)) nd=firstNode; else {
+                    nd = new Node(p);
+                    cmds.add(new AddCommand(nd));
+                }
+            }
+            if (nd.getCoor().isOutSideWorld()) {
+                JOptionPane.showMessageDialog(Main.parent,
+                        tr("Cannot place node outside of the world."));
+                return;
+            }
+            if (i==0) firstNode=nd;
+            w.addNode(nd);
+            i++;
+        }
+        if (ctrl) {
+            // paste tags - from ctrl-shift-v
+            Set <OsmPrimitive> ts = new HashSet<OsmPrimitive>();
+            ts.add(w);
+            TagPaster tp = new TagPaster(Main.pasteBuffer.getDirectlyAdded(), ts);
+            List<Tag> execute = tp.execute();
+            Map<String,String> tgs=new HashMap<String,String>();
+            for (Tag t : execute) {
+                w.put(t.getKey(), t.getValue());
+            }
+        }
+        cmds.add(new AddCommand(w));
+        Command c = new SequenceCommand(tr("Draw the way by mouse"), cmds);
+        Main.main.undoRedo.add(c);
+        newDrawing(); // stop drawing
+        // Select this way and switch drawing mode off
+        exitMode();
+        getCurrentDataSet().setSelected(w);
+        Main.map.selectSelectTool(false);
+    }
+
+    private void repaint() {
+        Main.map.mapView.repaint();
+    }
+
+    public void back() {
+        line.undo();
+        repaint();
+    }
+
+    void changeEpsilon(double k) {
+        //System.out.println(tr("Eps={0}", eps));
+        eps*=k;
+        /* I18N: Eps = Epsilon, the tolerance parameter */ setStatusLine(tr("Eps={0}", eps));
+        line.simplify(eps);
+        repaint();
+    }
+
+    private void setStatusLine(String tr) {
+        statusText=tr;
+        updateStatusLine();
+    }
+
+    /*private Node findClosestNode(LatLon p, double d) {
+        Node nn=null;
+        double dist,minD=1e10,x,y;
+        Point pscreen=getPoint(p);   x=pscreen.x; y=pscreen.y;
+        BBox b=new BBox(new LatLon(p.lat()-deltaLatLon,p.lon()-deltaLatLon),
+                new LatLon(p.lat()+deltaLatLon,p.lon()+deltaLatLon));
+        List<Node> nodes = getCurrentDataSet().searchNodes(b);
+        for (Node n: nodes) {
+            dist = Math.sqrt(getPoint(n.getCoor()).distanceSq(x,y));
+            if (dist<d && dist<minD) {
+                nn=n;
+                minD=dist;
+            };
+        }
+        return nn;
+    }*/
+
+
+    void loadPrefs() {
+        COLOR_DELETE = Main.pref.getColor("fastdraw.color.delete", Color.red);
+        COLOR_EDITEDFRAGMENT = Main.pref.getColor("fastdraw.color.edit", Color.orange);
+        COLOR_FIXED = Main.pref.getColor("fastdraw.color.fixed", Color.green);
+        COLOR_NORMAL = Main.pref.getColor("fastdraw.color.normal", Color.red);
+        COLOR_SELECTEDFRAGMENT = Main.pref.getColor("fastdraw.color.select", Color.blue);
+        maxDist = Main.pref.getDouble("fastdraw.maxdist", 5);
+        epsilonMult = Main.pref.getDouble("fastdraw.epsilonmult", 1.1);
+        //deltaLatLon = Main.pref.getDouble("fastdraw.deltasearch", 0.01);
+        minPixelsBetweenPoints = Main.pref.getDouble("fastdraw.mindelta", 20);
+        startingEps = Main.pref.getDouble("fastdraw.startingEps", 20);
+        eps=startingEps;
+    }
+
+    void savePrefs() {
+         Main.pref.putColor("fastdraw.color.delete", COLOR_DELETE );
+         Main.pref.putColor("fastdraw.color.edit", COLOR_EDITEDFRAGMENT);
+         Main.pref.putColor("fastdraw.color.fixed", COLOR_FIXED);
+         Main.pref.putColor("fastdraw.color.normal", COLOR_NORMAL);
+         Main.pref.putColor("fastdraw.color.select", COLOR_SELECTEDFRAGMENT);
+         Main.pref.putDouble("fastdraw.maxdist", maxDist);
+         Main.pref.putDouble("fastdraw.epsilonmult", epsilonMult);
+         //Main.pref.putDouble("fastdraw.deltasearch", deltaLatLon);
+         Main.pref.putDouble("fastdraw.mindelta",minPixelsBetweenPoints);
+         Main.pref.putDouble("fastdraw.startingEps",startingEps);
+         try {Main.pref.save();} catch (IOException e) {
+             System.err.println(tr("Can not save preferences"));
+         }
+    }
+
+    private void updateCursor() {
+        if (shift) Main.map.mapView.setCursor(cursorShift); else
+        if (line.isClosed()) Main.map.mapView.setCursor(cursorReady); else
+        if (ctrl) Main.map.mapView.setCursor(cursorCtrl); else
+        if (nearpoint) Main.map.mapView.setCursor(cursorCtrl); else
+        Main.map.mapView.setCursor(cursorDraw);
+
+
+    }
+// </editor-fold>
+
+// <editor-fold defaultstate="collapsed" desc="Helper functions">
+
+    private Node getNearestNode(Point point, double maxDist) {
+       Node nd = Main.map.mapView.getNearestNode(point, OsmPrimitive.isUsablePredicate);
+       if (nd!=null && line.getPoint(nd.getCoor()).distance(point)<=maxDist) return nd;
+       else return null;
+    }
+
+    LatLon getLatLon(MouseEvent e) {
+        return mv.getLatLon(e.getX(), e.getY());
+    }
+// </editor-fold>
+
+}
Index: applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/FastDrawingPlugin.java
===================================================================
--- applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/FastDrawingPlugin.java	(revision 26174)
+++ applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/FastDrawingPlugin.java	(revision 26174)
@@ -0,0 +1,27 @@
+/*
+ * This file is part of ImproveWayAccuracy plugin for JOSM.
+ * http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ImproveWayAccuracy
+ *
+ * Licence: GPL v2 or later
+ * Author:  Alexei Kasatkin, 2011
+ */
+
+package org.openstreetmap.josm.plugins.fastdraw;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.gui.IconToggleButton;
+import org.openstreetmap.josm.gui.MapFrame;
+import org.openstreetmap.josm.plugins.Plugin;
+import org.openstreetmap.josm.plugins.PluginInformation;
+public class FastDrawingPlugin extends Plugin {
+
+    public FastDrawingPlugin(PluginInformation info) {
+        super(info);
+    }
+
+    @Override
+    public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) {
+        if (oldFrame == null && newFrame != null) {
+            Main.map.addMapMode(new IconToggleButton(new FastDrawingMode(Main.map)));
+        }
+    }
+}
Index: applications/editors/josm/plugins/FixAddresses/build.xml
===================================================================
--- applications/editors/josm/plugins/FixAddresses/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/FixAddresses/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -26,13 +26,12 @@
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"          location="../../core/dist/josm-custom.jar"/>
-	<property name="josm_3529"     location="../../core/dist/3529/josm-tested.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="josm_3529" location="../../core/dist/3529/josm-tested.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -41,7 +40,6 @@
     -->
     <target name="init">
-        <mkdir dir="${plugin.build.dir}"/>    	
+        <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -56,5 +54,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -63,5 +60,5 @@
     -->
     <target name="dist" depends="compile,revision">
-    	<mkdir dir="${plugin.dist.dir}"/>
+        <mkdir dir="${plugin.dist.dir}"/>
         <echo message="creating ${plugin.jar} ... "/>
         <copy todir="${plugin.build.dir}/resources">
@@ -71,13 +68,16 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="GPL-v2.0.txt" />
-            	<include name="GPL-v3.0.txt" />
+                <include name="README"/>
+                <include name="GPL-v2.0.txt"/>
+                <include name="GPL-v3.0.txt"/>
             </fileset>
         </copy>
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-    <!--
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -92,13 +92,12 @@
                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
                 <attribute name="Plugin-Description" value="Finds and fixes invalid street addresses in a comfortable way."/>
-            	<attribute name="de_Plugin-Description" value="Findet ungültige Addressen und bietet Unterstützung zur deren Korrektur."/>
+                <attribute name="de_Plugin-Description" value="Findet ungültige Addressen und bietet Unterstützung zur deren Korrektur."/>
                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/FixAddresses"/>
                 <attribute name="Plugin-Mainversion" value="3835"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-            	<attribute name="Plugin-Icon" value="images/fixaddresses.png"/>
+                <attribute name="Plugin-Icon" value="images/fixaddresses.png"/>
             </manifest>
-        </jar>        
+        </jar>
     </target>
-
     <!--
     **********************************************************
@@ -109,15 +108,14 @@
     -->
     <target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-    	            <env key="LANG" value="C"/>
-    	            <arg value="info"/>
-    	            <arg value="--xml"/>
-    	            <arg value="."/>
-    	        </exec>
-    	<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-    	<echo message="Revision: ${version.entry.commit.revision}"/>
-    	<delete file="REVISION"/>
-   	</target>
-
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <echo message="Revision: ${version.entry.commit.revision}"/>
+        <delete file="REVISION"/>
+    </target>
     <!--
     **********************************************************
@@ -129,5 +127,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
Index: applications/editors/josm/plugins/ImportImagePlugin/build.xml
===================================================================
--- applications/editors/josm/plugins/ImportImagePlugin/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/ImportImagePlugin/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,41 +29,36 @@
 -->
 <project name="ImportImagePlugin" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="use consistent plugin name (don't mix up the words)" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="4065" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="use consistent plugin name (don't mix up the words)"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="4065"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
             <classpath>
                 <pathelement location="${josm}"/>
@@ -72,40 +67,40 @@
                 </fileset>
             </classpath>
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		
-		<copy todir="${plugin.build.dir}/lib">
-			<fileset dir="lib">
-				  <not>
-				    <filename name="log4j-1.2.12.jar"/>
-				  </not>
-			</fileset>
-		</copy>
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/lib">
+            <fileset dir="lib">
+                <not>
+                    <filename name="log4j-1.2.12.jar"/>
+                </not>
+            </fileset>
+        </copy>
         <unjar src="lib/log4j-1.2.12.jar" dest="${plugin.build.dir}"/>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-        	
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -115,6 +110,5 @@
         ************************************************
     -->
-
-			<manifest>
+            <manifest>
                 <attribute name="Author" value="Christoph Beekmans, Fabian Kowitz, Anna Robaszkiewicz, Oliver Kuhn, Martin Ulitzny"/>
                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ImportImagePlugin.ImportImagePlugin"/>
@@ -124,9 +118,8 @@
                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -135,149 +128,136 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
-	
-	<target name="unjar-test" >
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
+    <target name="unjar-test">
         <!--unjar dest="C:/Workspace_2/geotoolstest/lib/unjartest">
             <fileset dir="lib"/>
         </unjar-->
-        
-        		<jar destfile="C:/Workspace_2/geotoolstest/lib/unjartest/${ant.project.name}.jar" basedir="C:/Workspace_2/geotoolstest/lib/unjartest">
-
-			<manifest>
+        <jar destfile="C:/Workspace_2/geotoolstest/lib/unjartest/${ant.project.name}.jar" basedir="C:/Workspace_2/geotoolstest/lib/unjartest">
+            <manifest>
                 <attribute name="Author" value="Christoph Beekmans, Fabian Kowitz, Anna Robaszkiewicz, Oliver Kuhn, Martin Ulitzny"/>
                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.CoveragePlugin.CoveragePlugin"/>
@@ -287,8 +267,7 @@
                 <attribute name="Plugin-Mainversion" value=".."/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-                <attribute name="Class-path" value=" . CoveragePlugin/lib/commons-beanutils-1.7.0.jar CoveragePlugin/lib/commons-pool-1.5.3.jar CoveragePlugin/lib/geoapi-2.3-M1.jar CoveragePlugin/lib/geoapi-pending-2.3-M1.jar CoveragePlugin/lib/geoapi.jar CoveragePlugin/lib/gt-api-2.6.0.jar CoveragePlugin/lib/gt-coverage-2.6.0.jar CoveragePlugin/lib/gt-epsg-extension-2.6.0.jar CoveragePlugin/lib/gt-epsg-hsql-2.6.0.jar CoveragePlugin/lib/gt-geotiff-2.6.0.jar CoveragePlugin/lib/gt-main-2.6.0.jar CoveragePlugin/lib/gt-metadata-2.6.0.jar CoveragePlugin/lib/gt-referencing-2.6.0.jar CoveragePlugin/lib/hsqldb-1.8.0.7.jar CoveragePlugin/lib/imageio-ext-tiff-1.0.4.jar CoveragePlugin/lib/imageio-ext-utilities-1.0.4.jar CoveragePlugin/lib/jai_codec-1.1.3.jar CoveragePlugin/lib/jai_core.jar CoveragePlugin/lib/jai_imageio-1.1.jar CoveragePlugin/lib/jdom-1.0.jar CoveragePlugin/lib/jsr-275-1.0-beta-2.jar CoveragePlugin/lib/jts-1.10.jar CoveragePlugin/lib/log4j-1.2.12.jar CoveragePlugin/lib/vecmath-1.3.2.jar" />
-			</manifest>
-		</jar>
-	</target>
-	
+                <attribute name="Class-path" value=" . CoveragePlugin/lib/commons-beanutils-1.7.0.jar CoveragePlugin/lib/commons-pool-1.5.3.jar CoveragePlugin/lib/geoapi-2.3-M1.jar CoveragePlugin/lib/geoapi-pending-2.3-M1.jar CoveragePlugin/lib/geoapi.jar CoveragePlugin/lib/gt-api-2.6.0.jar CoveragePlugin/lib/gt-coverage-2.6.0.jar CoveragePlugin/lib/gt-epsg-extension-2.6.0.jar CoveragePlugin/lib/gt-epsg-hsql-2.6.0.jar CoveragePlugin/lib/gt-geotiff-2.6.0.jar CoveragePlugin/lib/gt-main-2.6.0.jar CoveragePlugin/lib/gt-metadata-2.6.0.jar CoveragePlugin/lib/gt-referencing-2.6.0.jar CoveragePlugin/lib/hsqldb-1.8.0.7.jar CoveragePlugin/lib/imageio-ext-tiff-1.0.4.jar CoveragePlugin/lib/imageio-ext-utilities-1.0.4.jar CoveragePlugin/lib/jai_codec-1.1.3.jar CoveragePlugin/lib/jai_core.jar CoveragePlugin/lib/jai_imageio-1.1.jar CoveragePlugin/lib/jdom-1.0.jar CoveragePlugin/lib/jsr-275-1.0-beta-2.jar CoveragePlugin/lib/jts-1.10.jar CoveragePlugin/lib/log4j-1.2.12.jar CoveragePlugin/lib/vecmath-1.3.2.jar"/>
+            </manifest>
+        </jar>
+    </target>
 </project>
Index: applications/editors/josm/plugins/ImproveWayAccuracy/build.xml
===================================================================
--- applications/editors/josm/plugins/ImproveWayAccuracy/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/ImproveWayAccuracy/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,67 +29,64 @@
 -->
 <project name="ImproveWayAccuracy" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Initial JOSM ImproveWayAccuracy plugin commit" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Initial JOSM ImproveWayAccuracy plugin commit"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm" location="../../core/dist/josm-custom.jar" />
-    <property name="josm_location" value="../../core/dist" />
-	
-	<property name="plugin.build.dir" value="build" />
-	<property name="plugin.src.dir" value="src" />
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir" value="../../dist" />
-	<property name="ant.build.javac.target" value="1.5" />
-	<property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar" />
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="josm_location" value="../../core/dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}" />
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... " />
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile, revision">
-		<echo message="creating ${ant.project.name}.jar ... " />
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources" />
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images" />
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile, revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -99,19 +96,18 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Alexander Kachkaev" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.iwa.IWAPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Icon" value="images/favicon.png" />
-				<attribute name="Plugin-Description" value="Can be useful when you are improving accuracy of existing ways. The idea of the plugin is to substitute dragging and dropping nodes with clicking to quicken the editing process." />
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ImproveWayAccuracy" />
-                <attribute name="ru_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/RU:JOSM/Plugins/ImproveWayAccuracy" />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Alexander Kachkaev"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.iwa.IWAPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Icon" value="images/favicon.png"/>
+                <attribute name="Plugin-Description" value="Can be useful when you are improving accuracy of existing ways. The idea of the plugin is to substitute dragging and dropping nodes with clicking to quicken the editing process."/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ImproveWayAccuracy"/>
+                <attribute name="ru_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/RU:JOSM/Plugins/ImproveWayAccuracy"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -120,99 +116,91 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
-		<delete file="REVISION" />
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}" />
-		<delete file="${plugin.jar}" />
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-
-	<!--
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
     ************************** Publishing the plugin *********************************** 
     -->
-	<!--
+    <!--
         ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
         ** property ${coreversion.info.entry.revision}
         **
         -->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="../../core" />
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" />
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
         ** commits the source tree for this plugin
         -->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="commit" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="." />
-		</exec>
-	</target>
-
-	<!--
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
         ** updates (svn up) the source tree for this plugin
         -->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="." />
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="../dist/${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!--
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
         ** commits the plugin.jar 
         -->
-	<target name="commit-dist">
-		<echo>
+    <target name="commit-dist">
+        <echo>
     ***** Properties of published ${plugin.jar} *****
     Commit message    : '${commit.message}'                    
@@ -224,40 +212,37 @@
     Now commiting ${plugin.jar} ...
     </echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="commit" />
-			<arg value="${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="dist_and_launch" depends="clean,dist">
-		<copy file="${plugin.jar}" tofile="${josm_location}/appdata/JOSM/plugins/${ant.project.name}.jar" />
-		<exec executable="${josm_location}/josm-custom-launch.bat" />
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="dist_and_launch" depends="clean,dist">
+        <copy file="${plugin.jar}" tofile="${josm_location}/appdata/JOSM/plugins/${ant.project.name}.jar"/>
+        <exec executable="${josm_location}/josm-custom-launch.bat"/>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/OpeningHoursEditor/build.xml
===================================================================
--- applications/editors/josm/plugins/OpeningHoursEditor/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/OpeningHoursEditor/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,39 +29,32 @@
 -->
 <project name="OpeningHoursEditor" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="fixed main version" />
+    <property name="commit.message" value="fixed main version"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
+    <property name="plugin.main.version" value="3835"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-
-	<!--
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** javacc-otc - compiles OpeningTimeCompiler
     **
-	** can be changed see http://www.engr.mun.ca/~theo/JavaCC-FAQ/javacc-faq-moz.htm#tth_sEc2.5
-    **********************************************************
-    -->
-	<target name="javacc-otc">
-		<echo message="compiling OpeningTimeCompiler with javacc ... " />
-		<exec executable="javacc" dir="src/org/openstreetmap/josm/plugins/ohe/parser/">
-			<arg value="OpeningTimeCompiler.jj" />
-		</exec>
-	</target>
-	
-	
+    ** can be changed see http://www.engr.mun.ca/~theo/JavaCC-FAQ/javacc-faq-moz.htm#tth_sEc2.5
+    **********************************************************
+    -->
+    <target name="javacc-otc">
+        <echo message="compiling OpeningTimeCompiler with javacc ... "/>
+        <exec executable="javacc" dir="src/org/openstreetmap/josm/plugins/ohe/parser/">
+            <arg value="OpeningTimeCompiler.jj"/>
+        </exec>
+    </target>
     <!--
     **********************************************************
@@ -72,5 +65,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -85,5 +77,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -96,8 +87,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -111,17 +105,16 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Falko Thomale" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ohe.OhePlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Description" value="extended options for editing opening_hours" />
+            <manifest>
+                <attribute name="Author" value="Falko Thomale"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.ohe.OhePlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="extended options for editing opening_hours"/>
                 <attribute name="Plugin-Icon" value="images/opening_hours.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpeningHoursEditor" />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-			</manifest>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/OpeningHoursEditor"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -132,5 +125,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -142,5 +134,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -152,5 +143,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -167,6 +157,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -187,7 +175,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -202,5 +189,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -220,5 +206,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -242,10 +227,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -253,5 +237,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -260,9 +244,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/addrinterpolation/build.xml
===================================================================
--- applications/editors/josm/plugins/addrinterpolation/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/addrinterpolation/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -22,65 +22,62 @@
 -->
 <project name="AddrInterpolation" default="dist" basedir=".">
-
-
-	<property name="commit.message" value="Impoved Icon" />
-	<property name="plugin.main.version" value="3835" />
-
-	<!--
+    <property name="commit.message" value="Impoved Icon"/>
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${plugin.jar.name} ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${plugin.jar.name} ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -90,18 +87,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Mike Nice"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.AddrInterpolation.AddrInterpolationPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Group common Address Interpolation inputs in a single dialog, as well as an option to automatically generate individual house number nodes from a Way."/>
-				<attribute name="Plugin-Icon" value="images/AddrInterpolation.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/AddrInterpolation"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Mike Nice"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.AddrInterpolation.AddrInterpolationPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Group common Address Interpolation inputs in a single dialog, as well as an option to automatically generate individual house number nodes from a Way."/>
+                <attribute name="Plugin-Icon" value="images/AddrInterpolation.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/AddrInterpolation"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -110,137 +106,129 @@
     **********************************************************
     -->
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	 ************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-	** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-	** property ${coreversion.info.entry.revision}
-	**
-	-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-	** commits the source tree for this plugin
-	-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-	** updates (svn up) the source tree for this plugin
-	-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-	** commits the plugin.jar 
-	-->
-	<target name="commit-dist">
-		<echo>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+     ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+    ** property ${coreversion.info.entry.revision}
+    **
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+    ** commits the source tree for this plugin
+    -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+    ** updates (svn up) the source tree for this plugin
+    -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+    ** commits the plugin.jar 
+    -->
+    <target name="commit-dist">
+        <echo>
 ***** Properties of published ${plugin.jar} *****
-Commit message    : '${commit.message}'					
+Commit message    : '${commit.message}'                 
 Plugin-Mainversion: ${plugin.main.version}
 JOSM build version: ${coreversion.info.entry.revision}
 Plugin-Version    : ${version.entry.commit.revision}
-***** / Properties of published ${plugin.jar} *****					
-					
+***** / Properties of published ${plugin.jar} *****                 
+                    
 Now commiting ${plugin.jar} ...
 </echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/alignways/build.xml
===================================================================
--- applications/editors/josm/plugins/alignways/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/alignways/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,259 +29,228 @@
 -->
 <project name="alignways" default="dist" basedir=".">
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="fix shortcut conflict"/>
+    <!--
+        enter the *lowest* JOSM version this plugin is currently compatible
+        with
+    -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
+        ************************************************ ** should not be
+        necessary to change the following properties
+    -->
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <property name="plugin.lib.dir" value="lib"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
+        ********************************************************** ** init -
+        initializes the build
+        **********************************************************
+    -->
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
+        ********************************************************** ** compile
+        - complies the source tree
+        **********************************************************
+    -->
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm};${plugin.lib.dir}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir="lib"/>
+        </copy>
+    </target>
+    <!--
+        ********************************************************** ** dist -
+        creates the plugin jar
+        **********************************************************
+    -->
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
+                ************************************************ ** configure these
+                properties. Most of them will be copied to the plugins ** manifest
+                file. Property values will also show up in the list available **
+                plugins: http://josm.openstreetmap.de/wiki/Plugins. **
+                ************************************************
+            -->
+            <manifest>
+                <attribute name="Author" value="Attila Szász"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.alignways.AlignWaysPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Makes a pair of selected way segments parallel by rotating one of them around a chosen pivot."/>
+                <attribute name="Plugin-Icon" value="images/alignways.png"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/AlignWayS"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
+        ********************************************************** ** revision
+        - extracts the current revision number for the ** file build.number
+        and stores it in the XML property ** version.*
+        **********************************************************
+    -->
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+        ********************************************************** ** clean -
+        clean up the build environment
+        **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+        ********************************************************** ** install
+        - install the plugin in your local JOSM installation
+        **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+        ************************** Publishing the plugin
+        ***********************************
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves
+        it in the ** property ${coreversion.info.entry.revision} **
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision
+            ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+            ***** Properties of published ${plugin.jar} *****
+            Commit message
+            : '${commit.message}'
+            Plugin-Mainversion: ${plugin.main.version}
+            JOSM
+            build version: ${coreversion.info.entry.revision}
+            Plugin-Version :
+            ${version.entry.commit.revision}
+            ***** / Properties of published
+            ${plugin.jar} *****
 
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="fix shortcut conflict" />
-	<!--
-		enter the *lowest* JOSM version this plugin is currently compatible
-		with
-	-->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!--
-		************************************************ ** should not be
-		necessary to change the following properties
-	-->
-	<property name="josm" location="../../core/dist/josm-custom.jar" />
-	<property name="plugin.build.dir" value="build" />
-	<property name="plugin.src.dir" value="src" />
-	<property name="plugin.lib.dir" value="lib" />
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir" value="../../dist" />
-	<property name="ant.build.javac.target" value="1.5" />
-	<property name="plugin.dist.dir" value="../../dist" />
-	<property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar" />
-
-	<!--
-		********************************************************** ** init -
-		initializes the build
-		**********************************************************
-	-->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}" />
-	</target>
-
-	<!--
-		********************************************************** ** compile
-		- complies the source tree
-		**********************************************************
-	-->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... " />
-		<javac srcdir="src" classpath="${josm};${plugin.lib.dir}" debug="true"
-			destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir="lib" />
-		</copy>
-	</target>
-
-	<!--
-		********************************************************** ** dist -
-		creates the plugin jar
-		**********************************************************
-	-->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... " />
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources" />
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images" />
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
-				************************************************ ** configure these
-				properties. Most of them will be copied to the plugins ** manifest
-				file. Property values will also show up in the list available **
-				plugins: http://josm.openstreetmap.de/wiki/Plugins. **
-				************************************************
-			-->
-			<manifest>
-				<attribute name="Author" value="Attila Szász" />
-				<attribute name="Plugin-Class"
-					value="org.openstreetmap.josm.plugins.alignways.AlignWaysPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Description"
-					value="Makes a pair of selected way segments parallel by rotating one of them around a chosen pivot." />
-				<attribute name="Plugin-Icon" value="images/alignways.png"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-				<attribute name="Plugin-Link"
-					value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/AlignWayS" />
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
-		********************************************************** ** revision
-		- extracts the current revision number for the ** file build.number
-		and stores it in the XML property ** version.*
-		**********************************************************
-	-->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn"
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false"
-			collapseAttributes="true" />
-		<delete file="REVISION" />
-	</target>
-
-	<!--
-		********************************************************** ** clean -
-		clean up the build environment
-		**********************************************************
-	-->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}" />
-		<delete file="${plugin.jar}" />
-	</target>
-
-	<!--
-		********************************************************** ** install
-		- install the plugin in your local JOSM installation
-		**********************************************************
-	-->
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins"
-			else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-
-	<!--
-		************************** Publishing the plugin
-		***********************************
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves
-		it in the ** property ${coreversion.info.entry.revision} **
-	-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn"
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="../../core" />
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion"
-			keepRoot="true" collapseAttributes="true" />
-		<echo>Building against core revision
-			${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn"
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="commit" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="." />
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn"
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="." />
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn"
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="../dist/${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-			***** Properties of published ${plugin.jar} *****
-			Commit message
-			: '${commit.message}'
-			Plugin-Mainversion: ${plugin.main.version}
-			JOSM
-			build version: ${coreversion.info.entry.revision}
-			Plugin-Version :
-			${version.entry.commit.revision}
-			***** / Properties of published
-			${plugin.jar} *****
-
-			Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn"
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="commit" />
-			<arg value="${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn"
-			failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail
-			message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail
-			message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!--
-				error code from SVN? Most likely svn is not what we are looking on
-				this system
-			-->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish"
-		depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+            Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!--
+                error code from SVN? Most likely svn is not what we are looking on
+                this system
+            -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/build.xml
===================================================================
--- applications/editors/josm/plugins/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/build.xml	(revision 26174)
@@ -1,9 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
 <project name="josm-plugins" default="build" basedir=".">
     <target name="compile_josm" unless="skip-josm">
-    <echo message="test"/>
-        <ant dir="../core" target="dist" />
+        <echo message="test"/>
+        <ant dir="../core" target="dist"/>
     </target>
-    <target name="compile" depends="compile_josm"></target>
-    <target name="build" depends="dist"></target>
+    <target name="compile" depends="compile_josm"/>
+    <target name="build" depends="dist"/>
     <target name="dist" depends="compile">
         <mkdir dir="../dist"/>
@@ -25,4 +26,5 @@
         <ant antfile="build.xml" target="dist" dir="epsg31287"/>
         <ant antfile="build.xml" target="dist" dir="ext_tools"/>
+        <ant antfile="build.xml" target="dist" dir="FastDraw"/>
         <ant antfile="build.xml" target="dist" dir="FixAddresses"/>
         <ant antfile="build.xml" target="dist" dir="globalsat"/>
@@ -35,4 +37,5 @@
         <ant antfile="build.xml" target="dist" dir="ImproveWayAccuracy"/>
         <ant antfile="build.xml" target="dist" dir="irsrectify"/>
+        <ant antfile="build.xml" target="dist" dir="junctionchecking"/>
         <ant antfile="build.xml" target="dist" dir="lakewalker"/>
         <ant antfile="build.xml" target="dist" dir="livegps"/>
@@ -41,4 +44,5 @@
         <ant antfile="build.xml" target="dist" dir="michigan_left"/>
         <ant antfile="build.xml" target="dist" dir="multipoly-convert"/>
+        <ant antfile="build.xml" target="dist" dir="namemanager"/>
         <ant antfile="build.xml" target="dist" dir="nearclick"/>
         <ant antfile="build.xml" target="dist" dir="OpeningHoursEditor"/>
@@ -52,4 +56,5 @@
         <ant antfile="build.xml" target="dist" dir="proj4j"/>
         <ant antfile="build.xml" target="dist" dir="public_transport"/>
+        <ant antfile="build.xml" target="dist" dir="reltoolbox"/>
         <ant antfile="build.xml" target="dist" dir="restart"/>
         <ant antfile="build.xml" target="dist" dir="reverter"/>
@@ -67,4 +72,5 @@
         <ant antfile="build.xml" target="dist" dir="touchscreenhelper"/>
         <ant antfile="build.xml" target="dist" dir="tracer"/>
+        <ant antfile="build.xml" target="dist" dir="turnlanes"/>
         <ant antfile="build.xml" target="dist" dir="turnrestrictions"/>
         <ant antfile="build.xml" target="dist" dir="undelete"/>
@@ -88,4 +94,5 @@
         <ant antfile="build.xml" target="clean" dir="cadastre-fr"/>
         <ant antfile="build.xml" target="clean" dir="colorscheme"/>
+        <ant antfile="build.xml" target="clean" dir="ColumbusCSV"/>
         <ant antfile="build.xml" target="clean" dir="CommandLine"/>
         <ant antfile="build.xml" target="clean" dir="Create_grid_of_ways"/>
@@ -96,6 +103,9 @@
         <ant antfile="build.xml" target="clean" dir="download_along"/>
         <ant antfile="build.xml" target="clean" dir="editgpx"/>
+        <ant antfile="build.xml" target="clean" dir="ElevationProfile"/>
         <ant antfile="build.xml" target="clean" dir="epsg31287"/>
         <ant antfile="build.xml" target="clean" dir="ext_tools"/>
+        <ant antfile="build.xml" target="clean" dir="FastDraw"/>
+        <ant antfile="build.xml" target="clean" dir="FixAddresses"/>
         <ant antfile="build.xml" target="clean" dir="globalsat"/>
         <ant antfile="build.xml" target="clean" dir="gpxfilter"/>
@@ -107,4 +117,5 @@
         <ant antfile="build.xml" target="clean" dir="ImproveWayAccuracy"/>
         <ant antfile="build.xml" target="clean" dir="irsrectify"/>
+        <ant antfile="build.xml" target="clean" dir="junctionchecking"/>
         <ant antfile="build.xml" target="clean" dir="lakewalker"/>
         <ant antfile="build.xml" target="clean" dir="livegps"/>
@@ -113,4 +124,5 @@
         <ant antfile="build.xml" target="clean" dir="michigan_left"/>
         <ant antfile="build.xml" target="clean" dir="multipoly-convert"/>
+        <ant antfile="build.xml" target="clean" dir="namemanager"/>
         <ant antfile="build.xml" target="clean" dir="nearclick"/>
         <ant antfile="build.xml" target="clean" dir="OpeningHoursEditor"/>
@@ -124,4 +136,5 @@
         <ant antfile="build.xml" target="clean" dir="proj4j"/>
         <ant antfile="build.xml" target="clean" dir="public_transport"/>
+        <ant antfile="build.xml" target="clean" dir="reltoolbox"/>
         <ant antfile="build.xml" target="clean" dir="restart"/>
         <ant antfile="build.xml" target="clean" dir="reverter"/>
@@ -129,5 +142,5 @@
         <ant antfile="build.xml" target="clean" dir="roadsigns"/>
         <ant antfile="build.xml" target="clean" dir="routes"/>
-        <ant antfile="build.xml" target="clean" dir="routing"/>        
+        <ant antfile="build.xml" target="clean" dir="routing"/>
         <ant antfile="build.xml" target="clean" dir="simplifyarea"/>
         <ant antfile="build.xml" target="clean" dir="smed"/>
@@ -141,4 +154,5 @@
         <ant antfile="build.xml" target="clean" dir="touchscreenhelper"/>
         <ant antfile="build.xml" target="clean" dir="tracer"/>
+        <ant antfile="build.xml" target="clean" dir="turnlanes"/>
         <ant antfile="build.xml" target="clean" dir="trustosm"/>
         <ant antfile="build.xml" target="clean" dir="turnrestrictions"/>
@@ -152,5 +166,5 @@
         <ant antfile="build.xml" target="clean" dir="wms-turbo-challenge2"/>
     </target>
-    <target name="clean_install"></target>
-    <target name="install" depends="dist"></target>
+    <target name="clean_install"/>
+    <target name="install" depends="dist"/>
 </project>
Index: applications/editors/josm/plugins/buildings_tools/build.xml
===================================================================
--- applications/editors/josm/plugins/buildings_tools/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/buildings_tools/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,67 +29,64 @@
 -->
 <project name="buildings_tools" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="update (23630 was committed together with the code which is not right)" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3922" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="update (23630 was committed together with the code which is not right)"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3922"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -99,21 +96,19 @@
         ************************************************
     -->
-			<manifest>
-		                <attribute name="Author" value="Upliner"/>
-		                <attribute name="Plugin-Class" value="buildings_tools.BuildingsToolsPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-		                <attribute name="Plugin-Description" value="Tools for drawing buildings."/>
-				<attribute name="Plugin-Icon" value="images/mapmode/building.png"/>
-
-		                <attribute name="ru_Plugin-Description" value="Инструменты для прорисовки зданий."/>
-		                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/BuildingsTools"/>
-		                <attribute name="ru_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/RU:JOSM/Plugins/BuildingsTools"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Upliner"/>
+                <attribute name="Plugin-Class" value="buildings_tools.BuildingsToolsPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Tools for drawing buildings."/>
+                <attribute name="Plugin-Icon" value="images/mapmode/building.png"/>
+                <attribute name="ru_Plugin-Description" value="Инструменты для прорисовки зданий."/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/BuildingsTools"/>
+                <attribute name="ru_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/RU:JOSM/Plugins/BuildingsTools"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -122,139 +117,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/cadastre-fr/build.xml
===================================================================
--- applications/editors/josm/plugins/cadastre-fr/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/cadastre-fr/build.xml	(revision 26174)
@@ -1,2 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for the cadastre-fr plugin.
@@ -25,15 +26,11 @@
 -->
 <project name="cadastre-fr" default="dist" basedir=".">
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <property name="ant.build.javac.target" value="1.5"/>
-
-
-
-	<property name="commit.message" value="Changed constructor for Plugin" />
-	<property name="plugin.main.version" value="3835" />
-
+    <property name="commit.message" value="Changed constructor for Plugin"/>
+    <property name="plugin.main.version" value="3835"/>
     <target name="init">
         <mkdir dir="${plugin.build.dir}"/>
@@ -49,4 +46,7 @@
         <copy todir="${plugin.build.dir}/images">
             <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
         </copy>
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
@@ -87,80 +87,75 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+              ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+              ** property ${coreversion.info.entry.revision}
+              **
+            -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+             ** commits the source tree for this plugin
+            -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+            ** updates (svn up) the source tree for this plugin
+            -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+             ** commits the plugin.jar
+             -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-			<!--
-			  ** extracts the JOSM release for the JOSM version in ../core and saves it in the
-			  ** property ${coreversion.info.entry.revision}
-			  **
-			-->
-			<target name="core-info">
-		        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-		                    <env key="LANG" value="C"/>
-		                    <arg value="info"/>
-		                    <arg value="--xml"/>
-		                    <arg value="../../core"/>
-		        </exec>
-		        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-				<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-				<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-				<delete file="core.info.xml" />
-			</target>
-
-			<!--
-			 ** commits the source tree for this plugin
-			-->
-			<target name="commit-current">
-				<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-			    <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			                    <env key="LANG" value="C"/>
-			                    <arg value="commit"/>
-			                    <arg value="-m '${commit.message}'"/>
-			                    <arg value="."/>
-			    </exec>
-			</target>
-
-			<!--
-			** updates (svn up) the source tree for this plugin
-			-->
-			<target name="update-current">
-				<echo>Updating plugin source ...</echo>
-			    <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			                    <env key="LANG" value="C"/>
-			                    <arg value="up"/>
-			                    <arg value="."/>
-			    </exec>
-				<echo>Updating ${plugin.jar} ...</echo>
-			    <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			                    <env key="LANG" value="C"/>
-			                    <arg value="up"/>
-			                    <arg value="../dist/${plugin.jar}"/>
-			    </exec>
-			</target>
-
-			<!--
-			 ** commits the plugin.jar
-			 -->
-			<target name="commit-dist">
-					<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-				    <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-				                    <env key="LANG" value="C"/>
-					    			<arg value="-m '${commit.message}'"/>
-				    				<arg value="commit"/>
-	            			        <arg value="${plugin.jar}"/>
-				    </exec>
-		   	</target>
-
-			<target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist">
-			</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist">
+            </target>
 </project>
Index: applications/editors/josm/plugins/colorscheme/build.xml
===================================================================
--- applications/editors/josm/plugins/colorscheme/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/colorscheme/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the colorscheme plugin
@@ -26,162 +26,156 @@
 -->
 <project name="colorscheme" default="dist" basedir=".">
-
-
-	<property name="commit.message" value="Uses new constructor for Plugin" />
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}">
-			<fileset dir="src">
-				<include name="*.xml"/>
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Christof Dallermassl"/>
-				<attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Allows the user to create different color schemes and to switch between them. Just change the colors and create a new scheme. Used to switch to a white background with matching colors for better visibility in bright sunlight. See dialog in JOSM's preferences and 'Map Settings' (strange but true :-)" />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	 ************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-	** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-	** property ${coreversion.info.entry.revision}
-	**
-	-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-	** commits the source tree for this plugin
-	-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-	** updates (svn up) the source tree for this plugin
-	-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-	** commits the plugin.jar 
-	-->
-	<target name="commit-dist">
-		<echo>
+    <property name="commit.message" value="Uses new constructor for Plugin"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}">
+            <fileset dir="src">
+                <include name="*.xml"/>
+            </fileset>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Christof Dallermassl"/>
+                <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.colorscheme.ColorSchemePlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Allows the user to create different color schemes and to switch between them. Just change the colors and create a new scheme. Used to switch to a white background with matching colors for better visibility in bright sunlight. See dialog in JOSM's preferences and 'Map Settings' (strange but true :-)"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+     ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+    ** property ${coreversion.info.entry.revision}
+    **
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+    ** commits the source tree for this plugin
+    -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+    ** updates (svn up) the source tree for this plugin
+    -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+    ** commits the plugin.jar 
+    -->
+    <target name="commit-dist">
+        <echo>
 ***** Properties of published ${plugin.jar} *****
-Commit message    : '${commit.message}'					
+Commit message    : '${commit.message}'                 
 Plugin-Mainversion: ${plugin.main.version}
 JOSM build version: ${coreversion.info.entry.revision}
 Plugin-Version    : ${version.entry.commit.revision}
-***** / Properties of published ${plugin.jar} *****					
-					
+***** / Properties of published ${plugin.jar} *****                 
+                    
 Now commiting ${plugin.jar} ...
 </echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/conflation/build.xml
===================================================================
--- applications/editors/josm/plugins/conflation/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/conflation/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the conflation JOSM plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="conflation" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message" />
+    <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="" />
-
-
+    <property name="plugin.main.version" value=""/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -84,8 +78,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -111,5 +108,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -120,5 +116,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -130,5 +125,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -140,5 +134,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -155,6 +148,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -175,7 +166,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -190,5 +180,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -208,5 +197,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -230,10 +218,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -241,5 +228,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -248,9 +235,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/czechaddress/build.xml
===================================================================
--- applications/editors/josm/plugins/czechaddress/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/czechaddress/build.xml	(revision 26174)
@@ -1,42 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
 <project name="czechaddress" default="dist" basedir=".">
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-    <property name="plugin.manifest"        value="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="plugin.manifest" value="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
     <property name="ant.build.javac.target" value="1.5"/>
-
-
-
     <target name="clean" description="Removes all build files and the plugins's jar">
         <delete dir="${plugin.build.dir}"/>
         <delete file="${plugin.jar}"/>
     </target>
-
-
-
     <target name="init">
         <mkdir dir="${plugin.build.dir}"/>
         <mkdir dir="${plugin.dist.dir}"/>
     </target>
-
-
-
-    <target name="compile" depends="init,revision"
-            description="Compile the plugin and make it ready for running">
-
-        <javac srcdir="src"
-               classpath="${josm}"
-               debug="true"
-               encoding="utf8"
-               destdir="${plugin.build.dir}">
+    <target name="compile" depends="init,revision" description="Compile the plugin and make it ready for running">
+        <javac srcdir="src" classpath="${josm}" debug="true" encoding="utf8" destdir="${plugin.build.dir}">
             <compilerarg value="-Xlint:deprecation"/>
             <compilerarg value="-Xlint:unchecked"/>
         </javac>
-
         <copy todir="${plugin.build.dir}/images">
             <fileset dir="images"/>
         </copy>
-
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <manifest file="${plugin.manifest}">
             <attribute name="Author" value="Radomír Černoch"/>
@@ -48,17 +35,8 @@
             <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
         </manifest>
-
     </target>
-
-
-
     <target name="dist" depends="compile">
-        <jar destfile="${plugin.jar}"
-             basedir ="${plugin.build.dir}"
-             manifest="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifest="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
     </target>
-
-
-
     <target name="revision">
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
@@ -68,23 +46,16 @@
             <arg value="."/>
         </exec>
-        <xmlproperty file="REVISION" prefix="version"
-                     keepRoot="false" collapseAttributes="true"/>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
         <delete file="REVISION"/>
     </target>
-
-
-
     <target name="install" depends="dist">
         <property environment="env"/>
-        <condition property="josm.plugins.dir"
-                   value="${env.APPDATA}/JOSM/plugins"
-                   else="${user.home}/.josm/plugins">
-            <and><os family="windows"/></and>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
         </condition>
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
-
     <target name="run" depends="compile">
         <java classname="JOSM" fork="true">
@@ -103,9 +74,5 @@
         </java>
     </target>
-
-
-
-    <target name="profile" depends="compile"
-            description="Profile CzechAddress with Netbeans">
+    <target name="profile" depends="compile" description="Profile CzechAddress with Netbeans">
         <fail unless="netbeans.home">
             This target can only run inside the NetBeans IDE.
@@ -129,10 +96,6 @@
         </java>
     </target>
-
-    <target name="debug" depends="compile"
-            description="Debug CzechAddress with Netbeans">
-        <nbjpdastart addressproperty="jpda.address"
-                     name="czechaddress"
-                     transport="dt_socket"/>
+    <target name="debug" depends="compile" description="Debug CzechAddress with Netbeans">
+        <nbjpdastart addressproperty="jpda.address" name="czechaddress" transport="dt_socket"/>
         <java classname="JOSM" fork="true">
             <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
@@ -150,4 +113,3 @@
         </java>
     </target>
-
 </project>
Index: applications/editors/josm/plugins/dataimport/build.xml
===================================================================
--- applications/editors/josm/plugins/dataimport/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/dataimport/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the dataimport plugin.
@@ -28,66 +28,64 @@
 -->
 <project name="dataimport" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed constructor signature, updated build.xml" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed constructor signature, updated build.xml"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-			<classpath>
-				<pathelement location="${josm}"/>
-				<fileset dir="lib">
-					<include name="**/*.jar"/>
-				</fileset>
-			</classpath>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+            <classpath>
+                <pathelement location="${josm}"/>
+                <fileset dir="lib">
+                    <include name="**/*.jar"/>
+                </fileset>
+            </classpath>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -97,22 +95,19 @@
         ************************************************
     -->
-			<zipfileset src="lib/jsr173-1.0_api.jar" includes="**/*.class"/>
-			<zipfileset src="lib/jaxb-api.jar" includes="**/*.class"/>
-			<zipfileset src="lib/jaxb-api.jar" includes="**/*.properties"/>
-
-			<zipfileset src="lib/jaxb-impl.jar" includes="**/*.class"/>
-
-			<manifest>
-				<attribute name="Author" value="Dieter Muecke"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.dataimport.DataImportPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Allows to import various file formats into JOSM directly."/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <zipfileset src="lib/jsr173-1.0_api.jar" includes="**/*.class"/>
+            <zipfileset src="lib/jaxb-api.jar" includes="**/*.class"/>
+            <zipfileset src="lib/jaxb-api.jar" includes="**/*.properties"/>
+            <zipfileset src="lib/jaxb-impl.jar" includes="**/*.class"/>
+            <manifest>
+                <attribute name="Author" value="Dieter Muecke"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.dataimport.DataImportPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Allows to import various file formats into JOSM directly."/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -121,138 +116,129 @@
     **********************************************************
     -->
-	<target name="revision">
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+    **********************************************************
+    ** clean - clean up the build environment
+    **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** install - install the plugin in your local JOSM installation
+    **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** clean - clean up the build environment
-    **********************************************************
-    -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	************************** Publishing the plugin ***********************************
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/download_along/build.xml
===================================================================
--- applications/editors/josm/plugins/download_along/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/download_along/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,63 +29,61 @@
 -->
 <project name="download_along" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${plugin.jar.name} ... "/>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${plugin.jar.name} ... "/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -95,18 +93,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Nakor"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugin.download_along.DownloadAlong"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Downloads OSM data along a way"/>
-				<attribute name="Plugin-Icon" value="images/download_along.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/DownloadAlong"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Nakor"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugin.download_along.DownloadAlong"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Downloads OSM data along a way"/>
+                <attribute name="Plugin-Icon" value="images/download_along.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/DownloadAlong"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -115,138 +112,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/editgpx/build.xml
===================================================================
--- applications/editors/josm/plugins/editgpx/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/editgpx/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the editgpx plugin
@@ -26,124 +26,119 @@
 -->
 <project name="editgpx" default="dist" basedir=".">
-
-
-	<property name="commit.message" value="Changed constructor signature of plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Martin Garbe" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.editgpx.EditGpxPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Allows the user to anonymize timestamps and delete parts of huge GPX tracks very fast." />
-				<attribute name="Plugin-Icon" value="images/mapmode/editgpx_mode.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/EditGpx" />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	 ************************** Publishing the plugin ***********************************
-	-->
-	<!--
-	** extracts the JOSM release for the JOSM version in ../core and saves it in the
-	** property ${coreversion.info.entry.revision}
-	**
-	-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<!-- <arg value="../../core"/>-->
-			<arg value="../JOSM"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-	** commits the source tree for this plugin
-	-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-	** updates (svn up) the source tree for this plugin
-	-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-	** commits the plugin.jar
-	-->
-	<target name="commit-dist">
-		<echo>
+    <property name="commit.message" value="Changed constructor signature of plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Martin Garbe"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.editgpx.EditGpxPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Allows the user to anonymize timestamps and delete parts of huge GPX tracks very fast."/>
+                <attribute name="Plugin-Icon" value="images/mapmode/editgpx_mode.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/EditGpx"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+     ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+    ** property ${coreversion.info.entry.revision}
+    **
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <!-- <arg value="../../core"/>-->
+            <arg value="../JOSM"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+    ** commits the source tree for this plugin
+    -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+    ** updates (svn up) the source tree for this plugin
+    -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+    ** commits the plugin.jar
+    -->
+    <target name="commit-dist">
+        <echo>
 ***** Properties of published ${plugin.jar} *****
 Commit message    : '${commit.message}'
@@ -155,35 +150,33 @@
 Now commiting ${plugin.jar} ...
 </echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/epsg31287/build.xml
===================================================================
--- applications/editors/josm/plugins/epsg31287/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/epsg31287/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,28 +29,24 @@
 -->
 <project name="epsg31287" default="dist" basedir=".">
-
     <!-- read build.properties for local settings -->
-    <property file="build.properties" />
+    <property file="build.properties"/>
     <!-- enter the SVN command file name -->
-    <property name="svn" value="svn" />
+    <property name="svn" value="svn"/>
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="fixed proj4 Parameters (thanks to Hetzi + Mikael Rittri)" />
+    <property name="commit.message" value="fixed proj4 Parameters (thanks to Hetzi + Mikael Rittri)"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3872" />
-
-
+    <property name="plugin.main.version" value="3872"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -61,5 +57,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -74,5 +69,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -88,12 +82,15 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-    		<!-- <zipfileset src="lib/javaproj-1.0.6.jar" /> -->
+            <!-- <zipfileset src="lib/javaproj-1.0.6.jar" /> -->
             <!--
         ************************************************
@@ -112,9 +109,8 @@
                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-            	<!-- <attribute name="Plugin-Version" value="0.3"/> -->
+                <!-- <attribute name="Plugin-Version" value="0.3"/> -->
             </manifest>
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -125,5 +121,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="${svn}" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -135,5 +130,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -145,5 +139,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -160,6 +153,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -180,7 +171,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -193,11 +183,10 @@
             <arg value="-m '${commit.message}'"/>
             <arg value="."/>
-        	<arg value="${svn.username_arg}"/>
-        	<arg value="${svn.username}"/>
-        	<arg value="${svn.password_arg}"/>
-        	<arg value="${svn.password}"/>
-        </exec>
-    </target>
-
+            <arg value="${svn.username_arg}"/>
+            <arg value="${svn.username}"/>
+            <arg value="${svn.password_arg}"/>
+            <arg value="${svn.password}"/>
+        </exec>
+    </target>
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -217,5 +206,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -237,16 +225,15 @@
             <arg value="commit"/>
             <arg value="${plugin.jar}"/>
-        	<arg value="${svn.username_arg}"/>
-        	<arg value="${svn.username}"/>
-        	<arg value="${svn.password_arg}"/>
-        	<arg value="${svn.password}"/>
-        </exec>
-    </target>
-
+            <arg value="${svn.username_arg}"/>
+            <arg value="${svn.username}"/>
+            <arg value="${svn.password_arg}"/>
+            <arg value="${svn.password}"/>
+        </exec>
+    </target>
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="${svn}" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -254,5 +241,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -261,9 +248,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/ext_tools/build.xml
===================================================================
--- applications/editors/josm/plugins/ext_tools/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/ext_tools/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,67 +29,64 @@
 -->
 <project name="ext_tools" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="show error if script cannot be executed" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="4065" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="show error if script cannot be executed"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="4065"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -99,18 +96,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Upliner"/>
-				<attribute name="Plugin-Class" value="ext_tools.ExtToolsPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Use external scripts in JOSM"/>
-				<attribute name="Plugin-Icon" value="images/ext.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ExtTools"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Upliner"/>
+                <attribute name="Plugin-Class" value="ext_tools.ExtToolsPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Use external scripts in JOSM"/>
+                <attribute name="Plugin-Icon" value="images/ext.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ExtTools"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -119,139 +115,129 @@
     **********************************************************
     -->
-	<target name="revision">
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+    **********************************************************
+    ** clean - clean up the build environment
+    **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** install - install the plugin in your local JOSM installation
+    **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** clean - clean up the build environment
-    **********************************************************
-    -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin ***********************************
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/globalsat/build.xml
===================================================================
--- applications/editors/josm/plugins/globalsat/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/globalsat/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the globalsat  plugin.
@@ -29,169 +29,164 @@
 -->
 <project name="globalsat" default="dist" basedir=".">
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed constructor signature of plugin main class"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="RXTX" location="./libs/RXTXcomm.jar"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+            <classpath>
+                <pathelement location="${josm}"/>
+                <pathelement location="${RXTX}"/>
+            </classpath>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <unjar dest="${plugin.build.dir}" src="${RXTX}"/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Raphael Mack"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.globalsat.GlobalsatPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Download GPS points from Globalsat dg100 data logger directly in JOSM."/>
+                <attribute name="Plugin-Icon" value="images/globalsatImport.png"/>
+                <attribute name="Plugin-Link" value="http://www.raphael-mack.de/josm-globalsat-gpx-import-plugin/"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+        ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+            ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+            ** property ${coreversion.info.entry.revision}
+            **
+            -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+            ** commits the source tree for this plugin
+            -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+            ** updates (svn up) the source tree for this plugin
+            -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+            ** commits the plugin.jar
+            -->
+    <target name="commit-dist">
+        <echo>
+        ***** Properties of published ${plugin.jar} *****
+        Commit message    : '${commit.message}'
+        Plugin-Mainversion: ${plugin.main.version}
+        JOSM build version: ${coreversion.info.entry.revision}
+        Plugin-Version    : ${version.entry.commit.revision}
+        ***** / Properties of published ${plugin.jar} *****
 
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed constructor signature of plugin main class" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="RXTX"                   location="./libs/RXTXcomm.jar"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-			<classpath>
-				<pathelement location="${josm}"/>
-				<pathelement location="${RXTX}"/>
-			</classpath>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<unjar dest="${plugin.build.dir}" src="${RXTX}"/>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Raphael Mack"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.globalsat.GlobalsatPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Download GPS points from Globalsat dg100 data logger directly in JOSM."/>
-				<attribute name="Plugin-Icon" value="images/globalsatImport.png"/>
-				<attribute name="Plugin-Link" value="http://www.raphael-mack.de/josm-globalsat-gpx-import-plugin/"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-		************************** Publishing the plugin ***********************************
-		-->
-	<!--
-			** extracts the JOSM release for the JOSM version in ../core and saves it in the
-			** property ${coreversion.info.entry.revision}
-			**
-			-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-			** commits the source tree for this plugin
-			-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-			** updates (svn up) the source tree for this plugin
-			-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-			** commits the plugin.jar
-			-->
-	<target name="commit-dist">
-		<echo>
-		***** Properties of published ${plugin.jar} *****
-		Commit message    : '${commit.message}'
-		Plugin-Mainversion: ${plugin.main.version}
-		JOSM build version: ${coreversion.info.entry.revision}
-		Plugin-Version    : ${version.entry.commit.revision}
-		***** / Properties of published ${plugin.jar} *****
-
-		Now commiting ${plugin.jar} ...
-		</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        Now commiting ${plugin.jar} ...
+        </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/gpxfilter/build.xml
===================================================================
--- applications/editors/josm/plugins/gpxfilter/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/gpxfilter/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="gpxfilter" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message" />
+    <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3835" />
-
-
+    <property name="plugin.main.version" value="3835"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -84,8 +78,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -110,5 +107,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -119,5 +115,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -129,5 +124,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -139,5 +133,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -154,6 +147,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -174,7 +165,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -189,5 +179,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -207,5 +196,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -229,10 +217,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -240,5 +227,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -247,9 +234,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/graphview/build.xml
===================================================================
--- applications/editors/josm/plugins/graphview/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/graphview/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the graphview plugin
@@ -26,17 +26,14 @@
 -->
 <project name="graphview" default="dist" basedir=".">
-
-	<property name="commit.message" value="option to change graph colors; closes ticket 5523 in JOSM Trac" />
-	<property name="plugin.main.version" value="3835" />
-
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="commit.message" value="option to change graph colors; closes ticket 5523 in JOSM Trac"/>
+    <property name="plugin.main.version" value="4126"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -47,5 +44,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -60,5 +56,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -71,4 +66,7 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}/files">
             <fileset dir="files"/>
@@ -76,5 +74,5 @@
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="LICENSE" />
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -92,5 +90,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -101,5 +98,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -111,5 +107,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -121,5 +116,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -136,103 +130,96 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-		<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-		<target name="core-info">
-			<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-				<env key="LANG" value="C"/>
-				<arg value="info"/>
-				<arg value="--xml"/>
-				<arg value="../../core"/>
-			</exec>
-			<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-			<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-			<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-			<delete file="core.info.xml" />
-		</target>
-
-		<!--
-		** commits the source tree for this plugin
-		-->
-		<target name="commit-current">
-			<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-			<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-				<env key="LANG" value="C"/>
-				<arg value="commit"/>
-				<arg value="-m '${commit.message}'"/>
-				<arg value="."/>
-			</exec>
-		</target>
-
-		<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-		<target name="update-current">
-			<echo>Updating plugin source ...</echo>
-			<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-				<env key="LANG" value="C"/>
-				<arg value="up"/>
-				<arg value="."/>
-			</exec>
-			<echo>Updating ${plugin.jar} ...</echo>
-			<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-				<env key="LANG" value="C"/>
-				<arg value="up"/>
-				<arg value="../dist/${plugin.jar}"/>
-			</exec>
-		</target>
-
-		<!--
-		** commits the plugin.jar
-		-->
-		<target name="commit-dist">
-			<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-			<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-				<env key="LANG" value="C"/>
-				<arg value="-m '${commit.message}'"/>
-				<arg value="commit"/>
-				<arg value="${plugin.jar}"/>
-			</exec>
-		</target>
-
-		<!-- ** make sure svn is present as a command line tool ** -->
-		<target name="ensure-svn-present">
-			<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-				<env key="LANG" value="C" />
-				<arg value="--version" />
-			</exec>
-			<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-				<!-- return code not set at all? Most likely svn isn't installed -->
-				<condition>
-					<not>
-						<isset property="svn.exit.code" />
-					</not>
-				</condition>
-			</fail>
-			<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-				<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-				<condition>
-					<isfailure code="${svn.exit.code}" />
-				</condition>
-			</fail>
-		</target>
-
-		<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-		</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+        </target>
 </project>
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/access/AccessRulesetReader.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/access/AccessRulesetReader.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/access/AccessRulesetReader.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.core.access;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.io.IOException;
@@ -120,5 +122,5 @@
 
                 if (currentSection != Section.NONE) {
-                    throw new SAXException("classes element below root child level");
+                    throw new SAXException(tr("Classes element below root child level"));
                 }
 
@@ -130,7 +132,7 @@
 
                 if (currentSection != Section.CLASSES) {
-                    throw new SAXException("class element (" + className + ") outside classes element");
+                    throw new SAXException(tr("Class element ({0}) outside classes element", className));
                 } else if (className == null) {
-                    throw new SAXException("class element without name");
+                    throw new SAXException(tr("Class element without name"));
                 }
 
@@ -144,5 +146,5 @@
 
                 if (currentSection != Section.NONE) {
-                    throw new SAXException("classes element below root child level");
+                    throw new SAXException(tr("Classes element below root child level"));
                 }
 
@@ -154,5 +156,5 @@
                     baseTags.add(readTag(attributes));
                 } else {
-                    throw new SAXException("tag element outside basetag and implication elements");
+                    throw new SAXException(tr("Tag element outside basetag and implication elements"));
                 }
 
@@ -160,5 +162,5 @@
 
                 if (currentSection != Section.NONE) {
-                    throw new SAXException("implications element below root child level");
+                    throw new SAXException(tr("Implications element below root child level"));
                 }
 
@@ -176,7 +178,7 @@
 
             if (key == null) {
-                throw new SAXException("tag without key");
+                throw new SAXException(tr("Tag without key"));
             } else if (value == null) {
-                throw new SAXException("tag without value (key is " + key + ")");
+                throw new SAXException(tr("Tag without value (key is {0})", key));
             }
 
@@ -195,7 +197,7 @@
 
                 if (currentSection != Section.CLASSES) {
-                    throw new SAXException("closed classes while it wasn't open");
+                    throw new SAXException(tr("Closed classes while it was not open"));
                 } else if (currentAccessClass != null) {
-                    throw new SAXException("closed classes element before all class elements were closed");
+                    throw new SAXException(tr("Closed classes element before all class elements were closed"));
                 }
 
@@ -205,5 +207,5 @@
 
                 if (currentAccessClass == null) {
-                    throw new SAXException("closed class element while none was open");
+                    throw new SAXException(tr("Closed class element while none was open"));
                 }
 
@@ -213,5 +215,5 @@
 
                 if (currentSection != Section.BASETAGS) {
-                    throw new SAXException("closed basetags while it wasn't open");
+                    throw new SAXException(tr("Closed basetags while it was not open"));
                 }
 
@@ -221,5 +223,5 @@
 
                 if (currentSection != Section.IMPLICATIONS) {
-                    throw new SAXException("closed implications while it wasn't open");
+                    throw new SAXException(tr("Closed implications while it was not open"));
                 }
 
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/access/ImplicationXMLReader.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/access/ImplicationXMLReader.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/access/ImplicationXMLReader.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.core.access;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.util.ArrayList;
@@ -67,5 +69,5 @@
                 if ("tag".equals(name)) {
                     if (tagOpen) {
-                        throw new SAXException("tag element inside other tag element");
+                        throw new SAXException(tr("Tag element inside other tag element"));
                     }
                     currentImpliedTags.add(readTag(attributes));
@@ -78,5 +80,5 @@
 
         //all vaild paths end with return; reaching this indicates an invalid tag
-        throw new SAXException("invalid opening xml tag <" + name + "> in state " + state);
+        throw new SAXException(tr("Invalid opening xml tag <{0}> in state {1}", name, state));
 
     }
@@ -91,5 +93,5 @@
                 if (name.equals("condition")) {
                     if (!currentConditionReader.isFinished()) {
-                        throw new SAXException("condition isn't finished at </condition> tag");
+                        throw new SAXException(tr("Condition isn't finished at </condition> tag"));
                     } else {
                         currentCondition = currentConditionReader.getCondition();
@@ -110,5 +112,5 @@
                 } else if (name.equals("tag")) {
                     if (!tagOpen) {
-                        throw new SAXException("closing tag element that was not open");
+                        throw new SAXException(tr("Closing tag element that was not open"));
                     }
                     tagOpen = false;
@@ -131,5 +133,5 @@
 
         //all vaild paths end with return; reaching this indicates an invalid tag
-        throw new SAXException("invalid closing xml tag </" + name + "> in state " + state);
+        throw new SAXException(tr("Invalid closing xml tag </{0}> in state {1}", name, state));
 
     }
@@ -138,5 +140,5 @@
 
         if (state != State.BEFORE_IMPLICATION) {
-            throw new SAXException("some tags not been closed; now in state " + state);
+            throw new SAXException(tr("Some tags not been closed; now in state {0}", state));
         } else {
             return new ArrayList<Implication>(implications);
@@ -150,7 +152,7 @@
 
         if (key == null) {
-            throw new SAXException("tag without key");
+            throw new SAXException(tr("Tag without key"));
         } else if (value == null) {
-            throw new SAXException("tag without value (key is " + key + ")");
+            throw new SAXException(tr("Tag without value (key is {0})", key));
         }
 
@@ -163,5 +165,5 @@
 
         if (key == null) {
-            throw new SAXException("key element without attribute k");
+            throw new SAXException(tr("Key element without attribute k"));
         }
 
@@ -185,5 +187,5 @@
 
             if (finished) {
-                throw new SAXException("condition is already finished at <" + name + ">");
+                throw new SAXException(tr("Condition is already finished at <{0}>", name));
             }
 
@@ -203,5 +205,5 @@
                     condition = TagConditionLogic.key(readKey(attributes));
                 } else if (!("or".equals(name)) && !("and".equals(name)) && !("not".equals(name))) {
-                    throw new SAXException("unknown tag for condition: " + name);
+                    throw new SAXException(tr("Unknown tag for condition: {0}", name));
                 }
 
@@ -210,5 +212,5 @@
 
                 if ("tag".equals(openingName) || "key".equals(openingName)) {
-                    throw new SAXException("element must not have childs: " + openingName);
+                    throw new SAXException(tr("Element must not have childs: {0}", openingName));
                 }
 
@@ -224,5 +226,5 @@
 
             if (finished) {
-                throw new SAXException("condition is already finished at </" + name + ">");
+                throw new SAXException(tr("Condition is already finished at </{0}>", name));
             }
 
@@ -250,5 +252,5 @@
                             condition = TagConditionLogic.and(childConditions);
                         } else {
-                            throw new SAXException("<and> needs at least one child");
+                            throw new SAXException(tr("<and> needs at least one child"));
                         }
                     } else if ("or".equals(openingName)) {
@@ -256,5 +258,5 @@
                             condition = TagConditionLogic.or(childConditions);
                         } else {
-                            throw new SAXException("<or> needs at least one child");
+                            throw new SAXException(tr("<or> needs at least one child"));
                         }
                     } else if ("not".equals(openingName)) {
@@ -262,5 +264,5 @@
                             condition = TagConditionLogic.not(childConditions.get(0));
                         } else {
-                            throw new SAXException("<not> needs at least one child");
+                            throw new SAXException(tr("<not> needs at least one child"));
                         }
                     }
@@ -269,6 +271,5 @@
 
                 } else {
-                    throw new SAXException("wrong closing tag " + name +
-                            " (</" + openingName + "> expected");
+                    throw new SAXException(tr("Wrong closing tag {0} (</{1}> expected)", name, openingName));
                 }
 
@@ -283,5 +284,5 @@
         public TagCondition getCondition() {
             if (!finished) {
-                throw new IllegalStateException("condition " + openingName + " not yet finished");
+                throw new IllegalStateException(tr("Condition {0} not yet finished", openingName));
             } else {
                 assert condition != null;
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/graph/ConnectorEvaluationGroup.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/graph/ConnectorEvaluationGroup.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/graph/ConnectorEvaluationGroup.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.core.graph;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.util.ArrayList;
@@ -60,5 +62,5 @@
         assert targetNode != null && borderNodes.contains(targetNode);
 
-        if (!evaluated) { throw new IllegalStateException("group not yet evaluated"); }
+        if (!evaluated) { throw new IllegalStateException(tr("Group not yet evaluated")); }
 
         int inboundIndex = borderNodes.indexOf(startNode);
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/graph/JunctionEvaluationGroup.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/graph/JunctionEvaluationGroup.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/graph/JunctionEvaluationGroup.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.core.graph;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.util.ArrayList;
@@ -36,5 +38,5 @@
      */
     public Collection<Segment> getInboundSegments() {
-        if (!evaluated) { throw new IllegalStateException("group not yet evaluated"); }
+        if (!evaluated) { throw new IllegalStateException(tr("Group not yet evaluated")); }
         return inboundSegments;
     }
@@ -47,5 +49,5 @@
      */
     public Collection<Segment> getOutboundSegments() {
-        if (!evaluated) { throw new IllegalStateException("group not yet evaluated"); }
+        if (!evaluated) { throw new IllegalStateException(tr("Group not yet evaluated")); }
         return outboundSegments;
     }
@@ -66,5 +68,5 @@
         assert outboundSegment != null && outboundSegments.contains(outboundSegment);
 
-        if (!evaluated) { throw new IllegalStateException("group not yet evaluated"); }
+        if (!evaluated) { throw new IllegalStateException(tr("Group not yet evaluated")); }
 
         int inboundIndex = inboundSegments.indexOf(inboundSegment);
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/property/RoadValueLimit.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/property/RoadValueLimit.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/property/RoadValueLimit.java	(revision 26174)
@@ -67,5 +67,5 @@
                 case MINIMUM: return vehicleValue >= (Float) propertyValue;
                 case MAXIMUM: return vehicleValue <= (Float) propertyValue;
-                default:      throw new Error("unhandled LimitType");
+                default:      throw new Error("Unhandled LimitType");
             }
         } else {
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/util/TagConditionLogic.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/util/TagConditionLogic.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/core/util/TagConditionLogic.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.core.util;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.util.Collection;
@@ -88,5 +90,5 @@
     public static TagCondition and(final Collection<TagCondition> conditions) {
         if (conditions.size() == 0) {
-            throw new IllegalArgumentException("collection must contain at least one condition");
+            throw new IllegalArgumentException(tr("Collection must contain at least one condition"));
         }
         return new TagCondition() {
@@ -155,5 +157,5 @@
     public static TagCondition or(final Collection<TagCondition> conditions) {
         if (conditions.size() == 0) {
-            throw new IllegalArgumentException("collection must contain at least one condition");
+            throw new IllegalArgumentException(tr("Collection must contain at least one condition"));
         }
         return new TagCondition() {
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/GraphViewPlugin.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/GraphViewPlugin.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/GraphViewPlugin.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.plugin;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.io.File;
@@ -92,5 +94,5 @@
 
                 if (accessRuleset == null) {
-                    JOptionPane.showMessageDialog(Main.parent, "No ruleset has been selected!", "No ruleset", JOptionPane.ERROR_MESSAGE);
+                    JOptionPane.showMessageDialog(Main.parent, tr("No ruleset has been selected!"), tr("No ruleset"), JOptionPane.ERROR_MESSAGE);
                 } else {
                     transitionStructure.setAccessParametersAndRuleset(preferences.getCurrentParameterBookmark(), accessRuleset);
@@ -103,6 +105,6 @@
 
                 if (accessRuleset == null) {
-                    JOptionPane.showMessageDialog(Main.parent, "No ruleset has been selected!",
-                            "No ruleset", JOptionPane.ERROR_MESSAGE);
+                    JOptionPane.showMessageDialog(Main.parent, tr("No ruleset has been selected!"),
+                            tr("No ruleset"), JOptionPane.ERROR_MESSAGE);
                 } else {
 
@@ -126,11 +128,11 @@
 
         } catch (AccessRulesetSyntaxException e) {
-            JOptionPane.showMessageDialog(Main.parent, "syntax exception in access ruleset:\n" + e);
+            JOptionPane.showMessageDialog(Main.parent, tr("Syntax exception in access ruleset:\n{0}", e));
             e.printStackTrace();
         } catch (FileNotFoundException e) {
-            JOptionPane.showMessageDialog(Main.parent, "file not found:\n" + e);
+            JOptionPane.showMessageDialog(Main.parent, tr("File not found:\n{0}", e));
             e.printStackTrace();
         } catch (IOException e) {
-            JOptionPane.showMessageDialog(Main.parent, "problem when accessing a file:\n" + e);
+            JOptionPane.showMessageDialog(Main.parent, tr("Problem when accessing a file:\n{0}", e));
             e.printStackTrace();
         }
@@ -148,6 +150,6 @@
 
                 if (accessRuleset == null) {
-                    JOptionPane.showMessageDialog(Main.parent, "No ruleset has been selected!",
-                            "No ruleset", JOptionPane.ERROR_MESSAGE);
+                    JOptionPane.showMessageDialog(Main.parent, tr("No ruleset has been selected!"),
+                            tr("No ruleset"), JOptionPane.ERROR_MESSAGE);
                 } else {
                     transitionStructure.setAccessParametersAndRuleset(
@@ -159,11 +161,11 @@
 
         } catch (AccessRulesetSyntaxException e) {
-            JOptionPane.showMessageDialog(Main.parent, "syntax exception in access ruleset:\n" + e);
+            JOptionPane.showMessageDialog(Main.parent, tr("Syntax exception in access ruleset:\n{0}", e));
             e.printStackTrace();
         } catch (FileNotFoundException e) {
-            JOptionPane.showMessageDialog(Main.parent, "file not found:\n" + e);
+            JOptionPane.showMessageDialog(Main.parent, tr("File not found:\n", e));
             e.printStackTrace();
         } catch (IOException e) {
-            JOptionPane.showMessageDialog(Main.parent, "problem when accessing a file:\n" + e);
+            JOptionPane.showMessageDialog(Main.parent, tr("Problem when accessing a file:\n{0}", e));
             e.printStackTrace();
         }
@@ -206,5 +208,5 @@
                 rulesetInputStream = rulesetURL.openStream();
             } else {
-                throw new FileNotFoundException("couldn't find built-in ruleset " + ruleset);
+                throw new FileNotFoundException(tr("Couldn't find built-in ruleset {0}", ruleset));
             }
 
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/AccessParameterDialog.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/AccessParameterDialog.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/AccessParameterDialog.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.plugin.dialogs;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import static org.openstreetmap.josm.plugins.graphview.core.property.VehiclePropertyTypes.MAX_INCLINE_DOWN;
@@ -50,10 +52,10 @@
     static {
         FLOAT_PROPERTIES = new LinkedHashMap<VehiclePropertyType<Float>, String>();
-        FLOAT_PROPERTIES.put(VehiclePropertyTypes.HEIGHT, "height (m)");
-        FLOAT_PROPERTIES.put(VehiclePropertyTypes.WIDTH, "width (m)");
-        FLOAT_PROPERTIES.put(VehiclePropertyTypes.LENGTH, "length (m)");
-        FLOAT_PROPERTIES.put(VehiclePropertyTypes.SPEED, "speed (km/h)");
-        FLOAT_PROPERTIES.put(VehiclePropertyTypes.WEIGHT, "weight (t)");
-        FLOAT_PROPERTIES.put(VehiclePropertyTypes.AXLELOAD, "axleload (t)");
+        FLOAT_PROPERTIES.put(VehiclePropertyTypes.HEIGHT, tr("height (m)"));
+        FLOAT_PROPERTIES.put(VehiclePropertyTypes.WIDTH, tr("width (m)"));
+        FLOAT_PROPERTIES.put(VehiclePropertyTypes.LENGTH, tr("length (m)"));
+        FLOAT_PROPERTIES.put(VehiclePropertyTypes.SPEED, tr("speed (km/h)"));
+        FLOAT_PROPERTIES.put(VehiclePropertyTypes.WEIGHT, tr("weight (t)"));
+        FLOAT_PROPERTIES.put(VehiclePropertyTypes.AXLELOAD, tr("axleload (t)"));
     }
 
@@ -67,5 +69,5 @@
         public BookmarkNamePanel(String initialName) {
             super();
-            this.setBorder(BorderFactory.createTitledBorder("bookmark name"));
+            this.setBorder(BorderFactory.createTitledBorder(tr("Bookmark name")));
 
             this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
@@ -81,5 +83,5 @@
 
             if (existingBookmarkNames.contains(name)) {
-                JOptionPane.showMessageDialog(this, "Bookmark name already exists!");
+                JOptionPane.showMessageDialog(this, tr("Bookmark name already exists!"));
                 return null;
             }
@@ -87,6 +89,5 @@
             for (char nameChar : name.toCharArray()) {
                 if (FORBIDDEN_CHARS.contains(nameChar)) {
-                    JOptionPane.showMessageDialog(this, "Bookmark name must not contain '" +
-                            nameChar + "'!");
+                    JOptionPane.showMessageDialog(this, tr("Bookmark name must not contain ''{0}''!", nameChar));
                     return null;
                 }
@@ -103,5 +104,5 @@
         public AccessClassPanel(PreferenceAccessParameters initialParameters) {
             super();
-            this.setBorder(BorderFactory.createTitledBorder("access class"));
+            this.setBorder(BorderFactory.createTitledBorder(tr("Access class")));
 
             this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
@@ -118,6 +119,5 @@
             for (char nameChar : name.toCharArray()) {
                 if (FORBIDDEN_CHARS.contains(nameChar)) {
-                    JOptionPane.showMessageDialog(this, "Access class must not contain '" +
-                            nameChar + "'!");
+                    JOptionPane.showMessageDialog(this, tr("Access class must not contain ''{0}''!", nameChar));
                     return null;
                 }
@@ -137,5 +137,5 @@
         public AccessTypesPanel(PreferenceAccessParameters initialParameters) {
             super();
-            this.setBorder(BorderFactory.createTitledBorder("access types"));
+            this.setBorder(BorderFactory.createTitledBorder(tr("Access types")));
 
             this.setLayout(
@@ -174,5 +174,5 @@
         public VehiclePropertiesPanel(PreferenceAccessParameters initialParameters) {
             super();
-            this.setBorder(BorderFactory.createTitledBorder("vehicle properties"));
+            this.setBorder(BorderFactory.createTitledBorder(tr("Vehicle properties")));
 
             this.setLayout(new GridLayout(((COLS-1 + FLOAT_PROPERTIES.size()) / COLS),
@@ -223,5 +223,5 @@
         public RoadQualityPanel(PreferenceAccessParameters initialParameters) {
             super();
-            this.setBorder(BorderFactory.createTitledBorder("road requirements"));
+            this.setBorder(BorderFactory.createTitledBorder(tr("Road requirements")));
 
 
@@ -230,6 +230,6 @@
             /* incline up */
             {
-                JLabel inclineUpLabel = new JLabel("max. incline up (%, pos.)");
-                inclineUpLabel.setToolTipText("maximum incline the vehicle can go up");
+                JLabel inclineUpLabel = new JLabel(tr("Max. incline up (%, pos.)"));
+                inclineUpLabel.setToolTipText(tr("Maximum incline the vehicle can go up"));
                 this.add(inclineUpLabel);
 
@@ -241,5 +241,5 @@
                     inclineUpTextField.setText(vehiclePropertyString);
                 }
-                inclineUpTextField.setToolTipText("maximum incline the vehicle can go up");
+                inclineUpTextField.setToolTipText(tr("Maximum incline the vehicle can go up"));
 
                 this.add(inclineUpTextField);
@@ -248,6 +248,6 @@
             /* incline down */
             {
-                JLabel inclineDownLabel = new JLabel("max. incline down (%, pos.)");
-                inclineDownLabel.setToolTipText("maximum incline the vehicle can go down");
+                JLabel inclineDownLabel = new JLabel(tr("Max. incline down (%, pos.)"));
+                inclineDownLabel.setToolTipText(tr("Maximum incline the vehicle can go down"));
                 this.add(inclineDownLabel);
 
@@ -259,5 +259,5 @@
                     inclineDownTextField.setText(vehiclePropertyString);
                 }
-                inclineDownTextField.setToolTipText("maximum incline the vehicle can go down");
+                inclineDownTextField.setToolTipText(tr("Maximum incline the vehicle can go down"));
 
                 this.add(inclineDownTextField);
@@ -266,7 +266,7 @@
             /* surface */
             {
-                JLabel surfaceLabel = new JLabel("surface blacklist");
-                surfaceLabel.setToolTipText("list of surfaces the vehicle cannot use, "
-                        + "values are separated by semicolons (;)");
+                JLabel surfaceLabel = new JLabel(tr("Surface blacklist"));
+                surfaceLabel.setToolTipText(tr("List of surfaces the vehicle cannot use, "
+                        + "values are separated by semicolons (;)"));
                 this.add(surfaceLabel);
 
@@ -280,6 +280,6 @@
                 }
 
-                surfaceTextField.setToolTipText("list of surfaces the vehicle cannot use, "
-                        + "values are separated by semicolons (;)");
+                surfaceTextField.setToolTipText(tr("List of surfaces the vehicle cannot use, "
+                        + "values are separated by semicolons (;)"));
 
                 this.add(surfaceTextField);
@@ -288,7 +288,7 @@
             /* tracktype */
             {
-                JLabel tracktypeLabel = new JLabel("max. tracktype grade");
-                tracktypeLabel.setToolTipText("worst tracktype (1-5) the vehicle can still use,"
-                        + " 0 for none");
+                JLabel tracktypeLabel = new JLabel(tr("max. tracktype grade"));
+                tracktypeLabel.setToolTipText(tr("Worst tracktype (1-5) the vehicle can still use,"
+                        + " 0 for none"));
                 this.add(tracktypeLabel);
 
@@ -300,6 +300,6 @@
                     tracktypeTextField.setText(vehiclePropertyString);
                 }
-                tracktypeTextField.setToolTipText("worst tracktype (1-5) the vehicle can still use,"
-                        + " 0 for none");
+                tracktypeTextField.setToolTipText(tr("Worst tracktype (1-5) the vehicle can still use,"
+                        + " 0 for none"));
 
                 this.add(tracktypeTextField);
@@ -343,5 +343,5 @@
             new BoxLayout(this, BoxLayout.X_AXIS);
 
-            JButton okButton = new JButton(existingBookmark?"Change bookmark":"Create bookmark");
+            JButton okButton = new JButton(existingBookmark?tr("Change bookmark"):tr("Create bookmark"));
             okButton.addActionListener(new ActionListener() {
                 public void actionPerformed(ActionEvent e) {
@@ -358,5 +358,5 @@
             this.add(okButton);
 
-            JButton cancelButton = new JButton("Cancel");
+            JButton cancelButton = new JButton(tr("Cancel"));
             cancelButton.addActionListener(new ActionListener() {
                 public void actionPerformed(ActionEvent e) {
@@ -384,5 +384,5 @@
             Collection<String> existingBookmarkNames,
             PreferenceAccessParameters initialAccessParameters, BookmarkAction okAction) {
-        super(owner, "edit access parameters", true);
+        super(owner, tr("Edit access parameters"), true);
 
         this.existingBookmark = existingBookmark;
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewDialog.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.plugin.dialogs;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.awt.BorderLayout;
@@ -65,6 +67,6 @@
     public GraphViewDialog(final GraphViewPlugin plugin) {
 
-        super("Graph View Dialog", "graphview",
-                "Open the dialog for graph view configuration.", (Shortcut)null, HEIGHT);
+        super(tr("Graph View Dialog"), "graphview",
+                tr("Open the dialog for graph view configuration."), (Shortcut)null, HEIGHT);
 
         this.preferences = GraphViewPreferences.getInstance();
@@ -73,15 +75,15 @@
         availableColorSchemes = new LinkedHashMap<String, ColorScheme>();
 
-        availableColorSchemes.put("default",
+        availableColorSchemes.put(tr("default"),
                 new PreferencesColorScheme(preferences));
-        availableColorSchemes.put("end nodes",
+        availableColorSchemes.put(tr("end nodes"),
                 new EndNodeColorScheme(Color.GRAY, Color.RED, Color.GRAY));
-        availableColorSchemes.put("maxspeed",
+        availableColorSchemes.put(tr("maxspeed"),
                 new MaxspeedColorScheme());
-        availableColorSchemes.put("maxweight",
+        availableColorSchemes.put(tr("maxweight"),
                 new MaxweightColorScheme());
-        availableColorSchemes.put("maxheight",
+        availableColorSchemes.put(tr("maxheight"),
                 new MaxheightColorScheme());
-        availableColorSchemes.put("incline",
+        availableColorSchemes.put(tr("incline"),
                 new InclineColorScheme());
 
@@ -103,5 +105,5 @@
         /* create ruleset label and combo box */
         {
-            JLabel rulesetLabel = new JLabel("ruleset:");
+            JLabel rulesetLabel = new JLabel(tr("Ruleset:"));
             gbcLabel.gridy = 0;
             selectionLayout.setConstraints(rulesetLabel, gbcLabel);
@@ -117,5 +119,5 @@
         /* create bookmark label and combo box */
         {
-            JLabel bookmarkLabel = new JLabel("parameters:");
+            JLabel bookmarkLabel = new JLabel(tr("Parameters:"));
             gbcLabel.gridy = 1;
             selectionLayout.setConstraints(bookmarkLabel, gbcLabel);
@@ -131,5 +133,5 @@
         /* create color scheme label and combo box */
         {
-            JLabel colorSchemeLabel = new JLabel("coloring:");
+            JLabel colorSchemeLabel = new JLabel(tr("Coloring:"));
             gbcLabel.gridy = 2;
             selectionLayout.setConstraints(colorSchemeLabel, gbcLabel);
@@ -154,5 +156,5 @@
 
         JPanel buttonPanel = new JPanel();
-        JButton showLayerButton = new JButton("create/update graph");
+        JButton showLayerButton = new JButton(tr("Create/update graph"));
         showLayerButton.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent e) {
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewPreferenceEditor.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewPreferenceEditor.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/dialogs/GraphViewPreferenceEditor.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.plugin.dialogs;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.awt.Color;
@@ -59,6 +61,6 @@
         readPreferences();
 
-        preferencePanel = gui.createPreferenceTab("graphview", "Graphview",
-        "Settings for the Graphview plugin that visualizes routing graphs.");
+        preferencePanel = gui.createPreferenceTab("graphview", tr("Graphview"),
+        tr("Settings for the Graphview plugin that visualizes routing graphs."));
 
         JPanel mainPanel = createMainPanel();
@@ -123,13 +125,13 @@
 
         JPanel rulesetPanel = new JPanel();
-        rulesetPanel.setBorder(BorderFactory.createTitledBorder("ruleset"));
+        rulesetPanel.setBorder(BorderFactory.createTitledBorder(tr("Ruleset")));
         rulesetPanel.setLayout(new BoxLayout(rulesetPanel, BoxLayout.Y_AXIS));
 
-        internalRulesetCheckBox = new JCheckBox("use built-in rulesets");
+        internalRulesetCheckBox = new JCheckBox(tr("Use built-in rulesets"));
         internalRulesetCheckBox.setSelected(GraphViewPreferences.getInstance().getUseInternalRulesets());
         internalRulesetCheckBox.addActionListener(internalRulesetActionListener);
         rulesetPanel.add(internalRulesetCheckBox);
 
-        rulesetFolderLabel = new JLabel("external ruleset directory:");
+        rulesetFolderLabel = new JLabel(tr("Wxternal ruleset directory:"));
         rulesetPanel.add(rulesetFolderLabel);
 
@@ -139,5 +141,5 @@
         rulesetPanel.add(rulesetFolderTextField);
 
-        selectRulesetFolderButton = new JButton("select directory");
+        selectRulesetFolderButton = new JButton(tr("Select directory"));
         selectRulesetFolderButton.addActionListener(selectRulesetFolderActionListener);
         rulesetPanel.add(selectRulesetFolderButton);
@@ -151,5 +153,5 @@
 
         JPanel vehiclePanel = new JPanel();
-        vehiclePanel.setBorder(BorderFactory.createTitledBorder("vehicle"));
+        vehiclePanel.setBorder(BorderFactory.createTitledBorder(tr("Vehicle")));
         vehiclePanel.setLayout(new BoxLayout(vehiclePanel, BoxLayout.Y_AXIS));
 
@@ -160,17 +162,17 @@
         buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
 
-        JButton createButton = new JButton("create");
+        JButton createButton = new JButton(tr("Create"));
         createButton.addActionListener(createVehicleActionListener);
         buttonPanel.add(createButton);
 
-        editBookmarkButton = new JButton("edit");
+        editBookmarkButton = new JButton(tr("Edit"));
         editBookmarkButton.addActionListener(editVehicleActionListener);
         buttonPanel.add(editBookmarkButton);
 
-        deleteBookmarkButton = new JButton("delete");
+        deleteBookmarkButton = new JButton(tr("Delete"));
         deleteBookmarkButton.addActionListener(deleteVehicleActionListener);
         buttonPanel.add(deleteBookmarkButton);
 
-        JButton restoreDefaultsButton = new JButton("restore defaults");
+        JButton restoreDefaultsButton = new JButton(tr("Restore defaults"));
         restoreDefaultsButton.addActionListener(restoreVehicleDefaultsActionListener);
         buttonPanel.add(restoreDefaultsButton);
@@ -184,8 +186,8 @@
     	
     	JPanel visualizationPanel = new JPanel();
-    	visualizationPanel.setBorder(BorderFactory.createTitledBorder("visualization"));
+    	visualizationPanel.setBorder(BorderFactory.createTitledBorder(tr("Visualization")));
     	visualizationPanel.setLayout(new BoxLayout(visualizationPanel, BoxLayout.Y_AXIS));
     	
-    	separateDirectionsCheckBox = new JCheckBox("draw directions separately");
+    	separateDirectionsCheckBox = new JCheckBox(tr("Draw directions separately"));
     	separateDirectionsCheckBox.setSelected(GraphViewPreferences.getInstance().getSeparateDirections());
     	visualizationPanel.add(separateDirectionsCheckBox);
@@ -198,5 +200,5 @@
     		Color nodeColor = GraphViewPreferences.getInstance().getNodeColor();
     		
-    		nodeColorButton = new JButton("node color");
+    		nodeColorButton = new JButton(tr("Node color"));
     		nodeColorButton.addActionListener(chooseNodeColorActionListener);
     		colorPanel.add(nodeColorButton);
@@ -207,5 +209,5 @@
     		Color segmentColor = GraphViewPreferences.getInstance().getSegmentColor();
     		
-    		segmentColorButton = new JButton("arrow color");
+    		segmentColorButton = new JButton(tr("Arrow color"));
     		segmentColorButton.addActionListener(chooseSegmentColorActionListener);
     		colorPanel.add(segmentColorButton);
@@ -280,5 +282,5 @@
                     null,
                     false,
-                    "new bookmark",
+                    tr("New bookmark"),
                     parameterBookmarks.keySet(),
                     defaultBookmarkParameters,
@@ -337,6 +339,6 @@
                 int userChoice = JOptionPane.showConfirmDialog(
                         preferencePanel,
-                        "Really delete \"" + selectedBookmarkName + "\"?",
-                        "Bookmark deletion",
+                        tr("Really delete \"{0}\"?", selectedBookmarkName),
+                        tr("Bookmark deletion"),
                         JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
 
@@ -355,7 +357,7 @@
             int userChoice = JOptionPane.showConfirmDialog(
                     preferencePanel,
-                    "Really restore default bookmarks?\n"
-                    + "All manually added or edited bookmarks will be lost!",
-                    "Bookmark reset",
+                    tr("Really restore default bookmarks?\n"
+                    + "All manually added or edited bookmarks will be lost!"),
+                    tr("Bookmark reset"),
                     JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
 
@@ -374,5 +376,5 @@
         	
         	Color selectedColor = JColorChooser.showDialog(
-        			preferencePanel, "Choose node color", nodeColorField.getBackground());
+        			preferencePanel, tr("Choose node color"), nodeColorField.getBackground());
         	
         	if (selectedColor != null) {
@@ -387,5 +389,5 @@
         	
         	Color selectedColor = JColorChooser.showDialog(
-        			preferencePanel, "Choose arrow color", segmentColorField.getBackground());
+        			preferencePanel, tr("Choose arrow color"), segmentColorField.getBackground());
         	
         	if (selectedColor != null) {
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/layer/GraphViewLayer.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/layer/GraphViewLayer.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/layer/GraphViewLayer.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.plugin.layer;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.awt.BasicStroke;
@@ -251,5 +253,5 @@
     private Point getNodePoint(LatLonCoords coords, MapView mv) {
         LatLon latLon = new LatLon(coords.getLat(), coords.getLon());
-        EastNorth eastNorth = Main.proj.latlon2eastNorth(latLon);
+        EastNorth eastNorth = Main.getProjection().latlon2eastNorth(latLon);
         return mv.getPoint(eastNorth);
     }
@@ -300,10 +302,10 @@
     @Override
     public String getToolTipText() {
-        return "routing graph calculated by the GraphView plugin";
+        return tr("Routing graph calculated by the GraphView plugin");
     }
 
     @Override
     public void mergeFrom(Layer from) {
-        throw new AssertionError("GraphView layer is not mergable");
+        throw new AssertionError(tr("GraphView layer is not mergable"));
     }
 
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/preferences/GraphViewPreferences.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/preferences/GraphViewPreferences.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/preferences/GraphViewPreferences.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.plugin.preferences;
+
+import static org.openstreetmap.josm.tools.I18n.marktr;
 
 import static org.openstreetmap.josm.plugins.graphview.core.property.VehiclePropertyTypes.AXLELOAD;
@@ -216,6 +218,4 @@
         currentInternalRuleset = null;
 
-        nodeColor = Color.WHITE;
-        segmentColor = Color.WHITE;
         currentColorScheme = new PreferencesColorScheme(this);
 
@@ -244,6 +244,6 @@
         }
 
-        Main.pref.put("graphview.defaultNodeColor", createColorString(nodeColor));
-        Main.pref.put("graphview.defaultSegmentColor", createColorString(segmentColor));
+        Main.pref.putColor(marktr("GraphView default node"), nodeColor);
+        Main.pref.putColor(marktr("Graphview default segment"), segmentColor);
 
         Main.pref.put("graphview.separateDirections", separateDirections);
@@ -289,17 +289,6 @@
         }
 
-        if (Main.pref.hasKey("graphview.defaultNodeColor")) {
-            Color color = parseColorString(Main.pref.get("graphview.defaultNodeColor"));
-            if (color != null) {
-                nodeColor = color;
-            }
-        }
-        if (Main.pref.hasKey("graphview.defaultSegmentColor")) {
-            Color color = parseColorString(Main.pref.get("graphview.defaultSegmentColor"));
-            if (color != null) {
-                segmentColor = color;
-            }
-        }
-
+        nodeColor = Main.pref.getColor(marktr("GraphView default node"), Color.white);
+        segmentColor = Main.pref.getColor(marktr("Graphview default segment"), Color.white);
         separateDirections = Main.pref.getBoolean("graphview.separateDirections", false);
 
@@ -471,22 +460,3 @@
         }
     }
-
-    private static final Pattern COLOR_PATTERN =
-        Pattern.compile("^(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})$");
-    private String createColorString(Color color) {
-        return color.getRed() + ", " + color.getGreen() + ", " + color.getBlue();
-    }
-
-    private Color parseColorString(String string) {
-        Matcher matcher = COLOR_PATTERN.matcher(string);
-        if (!matcher.matches()) {
-            return null;
-        } else {
-            int r = Integer.parseInt(matcher.group(1));
-            int g = Integer.parseInt(matcher.group(2));
-            int b = Integer.parseInt(matcher.group(3));
-            return new Color(r, g, b);
-        }
-    }
-
 }
Index: applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/preferences/VehiclePropertyStringParser.java
===================================================================
--- applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/preferences/VehiclePropertyStringParser.java	(revision 26173)
+++ applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/preferences/VehiclePropertyStringParser.java	(revision 26174)
@@ -1,3 +1,5 @@
 package org.openstreetmap.josm.plugins.graphview.plugin.preferences;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.security.InvalidParameterException;
@@ -31,17 +33,17 @@
 
     public static final String ERROR_WEIGHT =
-        "Weights must be given as positive decimal numbers with unit \"t\" or without unit.";
+        tr("Weights must be given as positive decimal numbers with unit \"t\" or without unit.");
     public static final String ERROR_LENGTH =
-        "Lengths must be given as positive decimal numbers with unit \"m\", \"km\", \"mi\"" +
-        " or without unit.\nAlternatively, the format FEET' INCHES\" can be used.";
+        tr("Lengths must be given as positive decimal numbers with unit \"m\", \"km\", \"mi\"" +
+        " or without unit.\nAlternatively, the format FEET' INCHES\" can be used.");
     public static final String ERROR_SPEED =
-        "Speeds should be given as numbers without unit or "
-        + "as numbers followed by \"mph\".";
+        tr("Speeds should be given as numbers without unit or "
+        + "as numbers followed by \"mph\".");
     public static final String ERROR_INCLINE =
-        "Inclines must be given as positive decimal numbers with followed by \"%\".";
+        tr("Inclines must be given as positive decimal numbers with followed by \"%\".");
     public static final String ERROR_TRACKTYPE =
-        "Tracktype grades must be given as integers between 0 and 5.";
+        tr("Tracktype grades must be given as integers between 0 and 5.");
     public static final String ERROR_SURFACE =
-        "Surface values must not contain any of the following characters: ',' '{' '}' '=' '|";
+        tr("Surface values must not contain any of the following characters: ',' '{' '}' '=' '|");
 
     private static final List<Character> FORBIDDEN_SURFACE_CHARS =
@@ -145,5 +147,5 @@
 
         } else {
-            throw new InvalidParameterException("unknown property type: " + propertyType);
+            throw new InvalidParameterException("Unknown property type: " + propertyType);
         }
 
Index: applications/editors/josm/plugins/imageryadjust/build.xml
===================================================================
--- applications/editors/josm/plugins/imageryadjust/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/imageryadjust/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="imageryadjust" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message" />
+    <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3835" />
-
-
+    <property name="plugin.main.version" value="3835"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -84,8 +78,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -111,5 +108,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -120,5 +116,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -130,5 +125,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -140,5 +134,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -155,6 +148,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -175,7 +166,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -190,5 +180,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -208,5 +197,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -230,10 +218,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -241,5 +228,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -248,9 +235,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/imagewaypoint/build.xml
===================================================================
--- applications/editors/josm/plugins/imagewaypoint/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/imagewaypoint/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the ImageWayPoint plugin.
@@ -29,162 +29,157 @@
 -->
 <project name="ImageWayPoint" default="dist" basedir=".">
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Updated the constructor signature of the plugin main class"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Flint"/>
+                <attribute name="Plugin-Class" value="org.insignificant.josm.plugins.imagewaypoint.ImageWayPointPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Another plugin to match images to the waypoints in a GPX file. A match is made when the 'name', 'cmt' or 'desc' attribute of a waypoint tag matches the filename of an image."/>
+                <attribute name="Plugin-Early" value="false"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Updated the constructor signature of the plugin main class" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Flint"/>
-				<attribute name="Plugin-Class" value="org.insignificant.josm.plugins.imagewaypoint.ImageWayPointPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Another plugin to match images to the waypoints in a GPX file. A match is made when the 'name', 'cmt' or 'desc' attribute of a waypoint tag matches the filename of an image."/>
-				<attribute name="Plugin-Early" value="false"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	************************** Publishing the plugin ***********************************
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/importvec/build.xml
===================================================================
--- applications/editors/josm/plugins/importvec/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/importvec/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="importvec" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message" />
+    <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3922" />
-
-
+    <property name="plugin.main.version" value="3922"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -84,8 +78,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -111,5 +108,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -120,5 +116,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -130,5 +125,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -140,5 +134,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -155,6 +148,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -175,7 +166,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -190,5 +180,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -208,5 +197,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -230,10 +218,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -241,5 +228,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -248,9 +235,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/irsrectify/build.xml
===================================================================
--- applications/editors/josm/plugins/irsrectify/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/irsrectify/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="irsrectify" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="New plugin - irsrectify" />
+    <property name="commit.message" value="New plugin - irsrectify"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3835" />
-
-
+    <property name="plugin.main.version" value="3835"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar" />
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -81,8 +75,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -109,5 +106,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -118,5 +114,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -128,5 +123,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -138,5 +132,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -153,6 +146,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -173,7 +164,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -188,5 +178,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -206,5 +195,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -228,10 +216,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -239,5 +226,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -246,9 +233,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/junctionchecking/build.xml
===================================================================
--- applications/editors/josm/plugins/junctionchecking/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/junctionchecking/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the junctionchecking plugin
@@ -26,76 +26,73 @@
 -->
 <project name="junctionchecking" default="dist" basedir=".">
-
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3751" />
-
-	<property name="josm" location="../../core/dist/josm-custom.jar" />
-	<property name="plugin.build.dir" value="build" />
-	<property name="plugin.src.dir" value="src" />
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir" value="../../dist" />
-	<property name="ant.build.javac.target" value="1.5" />
-	<property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar" />
-
-	<!--
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3751"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}" />
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... " />
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<!-- <target name="dist" depends="compile,revision">
-    -->
-	<target name="dist" depends="compile, revision">
-		<echo message="creating ${plugin.jar} ... " />
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources" />
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images" />
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="LICENSE" />
-				<include name="README" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Jörg Possin" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.JunctionChecker.JunctionCheckerPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Description" value="creates a channel digraph and checks a subset of channels if it is a junction or searches in a subset of channels for junctions" />
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/JunctionChecking" />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-				<attribute name="Plugin-Icon" value="images/dialogs/junctionchecker.png" />
-				<attribute name="Class-Path" value="resources/" />
-				<attribute name="Main-Class" value="org.openstreetmap.josm.plugins.JunctionChecker.commandlineinterface.CLI" />
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+    <!-- <target name="dist" depends="compile,revision">
+    -->
+    <target name="dist" depends="compile, revision">
+        <echo message="creating ${plugin.jar} ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="LICENSE"/>
+                <include name="README"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Jörg Possin"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.JunctionChecker.JunctionCheckerPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="creates a channel digraph and checks a subset of channels if it is a junction or searches in a subset of channels for junctions"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/JunctionChecking"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+                <attribute name="Plugin-Icon" value="images/dialogs/junctionchecker.png"/>
+                <attribute name="Class-Path" value="resources/"/>
+                <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.JunctionChecker.commandlineinterface.CLI"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -104,6 +101,5 @@
     **********************************************************
     -->
-	 <target name="revision">
-
+    <target name="revision">
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -115,128 +111,119 @@
         <delete file="REVISION"/>
     </target>
-
-	<!--
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean"> 
-        <delete dir="${plugin.build.dir}"/> 
-		<delete file="${plugin.jar}" />
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-
-	<!--
-		 ************************** Publishing the plugin *********************************** 
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="../../core" />
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" />
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="commit" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="." />
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="." />
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="../dist/${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="commit" />
-			<arg value="${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin *********************************** 
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/lakewalker/build.xml
===================================================================
--- applications/editors/josm/plugins/lakewalker/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/lakewalker/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the lakewalker plugin
@@ -26,161 +26,156 @@
 -->
 <project name="lakewalker" default="dist" basedir=".">
-
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Brent Easton, Jason Reid"/>
-				<attribute name="Main-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerApp"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Helps vectorizing WMS images." />
-				<attribute name="Plugin-Icon" value="images/lakewalker-sml.png"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-		 ************************** Publishing the plugin *********************************** 
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Brent Easton, Jason Reid"/>
+                <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerApp"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.lakewalker.LakewalkerPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Helps vectorizing WMS images."/>
+                <attribute name="Plugin-Icon" value="images/lakewalker-sml.png"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin *********************************** 
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/licensechange/build.xml
===================================================================
--- applications/editors/josm/plugins/licensechange/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/licensechange/build.xml	(revision 26174)
@@ -1,4 +1,3 @@
-remove this line if you want to build the plugin
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build.xml for the licensechange plugin
@@ -23,125 +22,121 @@
 -->
 <project name="licensechange" default="dist" basedir=".">
-
-	<!--
-	  ** update before publishing
-	-->
-	<property name="commit.message" value="" />
-	<property name="plugin.main.version" value="4076" />
-
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Frederik Ramm"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.licensechange.LicenseChangePlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Checks if all users contributing to an object have agreed to the license change." />
-				<attribute name="Plugin-Icon" value="images/licensechange.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/LicenseChange"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" error="/dev/null" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<!--<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>-->
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	 ************************** Publishing the plugin ***********************************
-	-->
-	<!--
-	** extracts the JOSM release for the JOSM version in ../core and saves it in the
-	** property ${coreversion.info.entry.revision}
-	**
-	-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-	** commits the source tree for this plugin
-	-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-	** updates (svn up) the source tree for this plugin
-	-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-	** commits the plugin.jar
-	-->
-	<target name="commit-dist">
-		<echo>
+    <!--
+      ** update before publishing
+    -->
+    <property name="commit.message" value=""/>
+    <property name="plugin.main.version" value="4076"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Frederik Ramm"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.licensechange.LicenseChangePlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Checks if all users contributing to an object have agreed to the license change."/>
+                <attribute name="Plugin-Icon" value="images/licensechange.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/LicenseChange"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" error="/dev/null" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <!--<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>-->
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+     ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+    ** property ${coreversion.info.entry.revision}
+    **
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+    ** commits the source tree for this plugin
+    -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+    ** updates (svn up) the source tree for this plugin
+    -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+    ** commits the plugin.jar
+    -->
+    <target name="commit-dist">
+        <echo>
 ***** Properties of published ${plugin.jar} *****
 Commit message    : '${commit.message}'
@@ -153,26 +148,24 @@
 Now commiting ${plugin.jar} ...
 </echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn' not found. Please make sure svn is installed on your system.">
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn' not found. Please make sure svn is installed on your system.">
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/livegps/build.xml
===================================================================
--- applications/editors/josm/plugins/livegps/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/livegps/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the livegps plugin
@@ -26,164 +26,157 @@
 -->
 <project name="livegps" default="dist" basedir=".">
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Frederik Ramm"/>
+                <attribute name="Plugin-Class" value="livegps.LiveGpsPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Support live GPS input (moving dot) through a connection to gpsd server."/>
+                <attribute name="Plugin-Icon" value="images/dialogs/livegps.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/LiveGPS"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Stage" value="50"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Frederik Ramm"/>
-				<attribute name="Plugin-Class" value="livegps.LiveGpsPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Support live GPS input (moving dot) through a connection to gpsd server."/>
-				<attribute name="Plugin-Icon" value="images/dialogs/livegps.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/LiveGPS"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Stage" value="50"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/mapdust/build.xml
===================================================================
--- applications/editors/josm/plugins/mapdust/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/mapdust/build.xml	(revision 26174)
@@ -1,172 +1,142 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <project name="mapdust" default="dist" basedir=".">
-
-	<!-- properties -->
-	<property name="commit.message" value="MapDust bug reporter plugin" />
-	<property name="plugin.main.version" value="3835" />
-	<property name="josm" location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir" value="build/classes" />
-	<property name="apidoc.dir" value="build/doc" />
-	<property name="plugin.src.dir" value="src" />
-	<property name="plugin.lib.dir" value="lib" />
-	<property name="plugin.dist.dir" value="../../dist" />
-	<property name="ant.build.javac.target" value="1.5" />
-	<property name="plugin.dist.dir" value="../../dist" />
-	<property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar" />
-
-	<!-- classpath -->
-	<path id="classpath">
-		<fileset dir="${plugin.lib.dir}" includes="**/*.jar" />
-		<pathelement path="${josm}"/>
-	</path>
-
-	<!-- clean the build -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}" />
-		<delete file="${plugin.jar}" />
-	</target>
-
-	<!-- initialize the build -->
-	<target name="init" depends="clean">
-		<mkdir dir="${plugin.build.dir}" />
-	</target>
-
-	<!-- compiles the sources -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... " />
-		<javac srcdir="src" classpathref="classpath" debug="true" 
-			destdir="${plugin.build.dir}" includeantruntime="true" target="1.5"
-			source="1.5">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-	</target>
-
-	<!-- creates the javadocs -->
-	<target name="javadoc">
-		<mkdir dir="${apidoc.dir}" />
-		<javadoc destdir="${apidoc.dir}" source="1.6" classpathref="classpath" 
-			windowtitle="MapDust plugin API">
-			<link href="http://java.sun.com/javase/6/docs/api/" />
-			<link href="http://docs.jboss.org/hibernate/stable/core/api/" />
-			<packageset dir="${plugin.src.dir}">
-			</packageset>
-		</javadoc>
-
-	</target>
-
-	<!-- revision -->
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" 
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" 
-			collapseAttributes="true" />
-		<delete file="REVISION" />
-	</target>
-
-	<!-- creates the .jar file of the plugin -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... " />
-		<copy todir="${plugin.build.dir}">
-			<fileset dir="conf" />
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images" />
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<zipfileset src="lib/gson-1.5.jar" includes="**/*.class" />
-			<manifest>
-				<attribute name="Author" value="Beata Jancso" />
-				<attribute name="Plugin-Class" 
-					value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Description" 
-					value="The MapDust Plug-In shows the MapDust bug reports on 
-					the map. You can create, close,invalidate, re-open and comment 
-					bug reports by using this plugin." />
-				<attribute name="Plugin-Link" 
-					value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust" />
-				<attribute name="Plugin-Mainversion" 
-					value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" 
-					value="${version.entry.commit.revision}" />
-				<attribute name="Plugin-Icon" 
-					value="images/dialogs/mapdust_icon25.png" />
-			</manifest>
-		</jar>
-	</target>
-
-	<!-- installs the plugin  -->
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" 
-			else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-	<!-- displays the information about the core josm -->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" 
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="../../core" />
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" 
-			collapseAttributes="true" />
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!-- commits the current sources -->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" 
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="commit" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="." />
-		</exec>
-	</target>
-
-	<!-- updates the plugin -->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" 
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="." />
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" 
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="../dist/${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!-- commit the .jar of the plugin -->
-	<target name="commit-dist">
-		<echo>
+    <!-- properties -->
+    <property name="commit.message" value="MapDust bug reporter plugin"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build/classes"/>
+    <property name="apidoc.dir" value="build/doc"/>
+    <property name="plugin.src.dir" value="src"/>
+    <property name="plugin.lib.dir" value="lib"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!-- classpath -->
+    <path id="classpath">
+        <fileset dir="${plugin.lib.dir}" includes="**/*.jar"/>
+        <pathelement path="${josm}"/>
+    </path>
+    <!-- clean the build -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!-- initialize the build -->
+    <target name="init" depends="clean">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!-- compiles the sources -->
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime="true" target="1.5" source="1.5">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!-- creates the javadocs -->
+    <target name="javadoc">
+        <mkdir dir="${apidoc.dir}"/>
+        <javadoc destdir="${apidoc.dir}" source="1.6" classpathref="classpath" windowtitle="MapDust plugin API">
+            <link href="http://java.sun.com/javase/6/docs/api/"/>
+            <link href="http://docs.jboss.org/hibernate/stable/core/api/"/>
+            <packageset dir="${plugin.src.dir}">
+            </packageset>
+        </javadoc>
+    </target>
+    <!-- revision -->
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!-- creates the .jar file of the plugin -->
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir="conf"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <zipfileset src="lib/gson-1.5.jar" includes="**/*.class"/>
+            <manifest>
+                <attribute name="Author" value="Beata Jancso"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="The MapDust Plug-In shows the MapDust bug reports on       the map. You can create, close,invalidate, re-open and comment       bug reports by using this plugin."/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+                <attribute name="Plugin-Icon" value="images/dialogs/mapdust_icon25.png"/>
+            </manifest>
+        </jar>
+    </target>
+    <!-- installs the plugin  -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!-- displays the information about the core josm -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!-- commits the current sources -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!-- updates the plugin -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- commit the .jar of the plugin -->
+    <target name="commit-dist">
+        <echo>
     ***** Properties of published ${plugin.jar} *****
     Commit message    : '${commit.message}'                    
@@ -178,42 +148,34 @@
     Now commiting ${plugin.jar} ...
     </echo>
-		<exec append="true" output="svn.log" executable="svn" 
-			failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="commit" />
-			<arg value="${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn"
-			failifexecutionfails="false" failonerror="false" 
-			resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure 
-			svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure 
-			a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<!-- publish the plugin -->
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,
-		update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure     svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure     a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <!-- publish the plugin -->
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,   update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/measurement/build.xml
===================================================================
--- applications/editors/josm/plugins/measurement/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/measurement/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the measurement plugin
@@ -26,161 +26,155 @@
 -->
 <project name="measurement" default="dist" basedir=".">
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Raphael Mack, Reza Mohammadi"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.measurement.MeasurementPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Provide a measurement dialog and a layer to measure length and angle of segments, area surrounded by a (simple) closed way and create measurement paths (which also can be imported from a gps layer)."/>
+                <attribute name="Plugin-Icon" value="images/dialogs/measure.png"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Raphael Mack, Reza Mohammadi"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.measurement.MeasurementPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Provide a measurement dialog and a layer to measure length and angle of segments, area surrounded by a (simple) closed way and create measurement paths (which also can be imported from a gps layer)."/>
-				<attribute name="Plugin-Icon" value="images/dialogs/measure.png"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/michigan_left/build.xml
===================================================================
--- applications/editors/josm/plugins/michigan_left/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/michigan_left/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,63 +29,61 @@
 -->
 <project name="michigan_left" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${plugin.jar.name} ... "/>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${plugin.jar.name} ... "/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -95,18 +93,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Nakor"/>
-				<attribute name="Plugin-Class" value="MichiganLeft.MichiganLeft"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Adds no left turn for sets of 4 or 5 ways"/>
-				<attribute name="Plugin-Icon" value="images/michigan_left.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MichiganLeft"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Nakor"/>
+                <attribute name="Plugin-Class" value="MichiganLeft.MichiganLeft"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Adds no left turn for sets of 4 or 5 ways"/>
+                <attribute name="Plugin-Icon" value="images/michigan_left.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MichiganLeft"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -115,138 +112,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/multipoly-convert/build.xml
===================================================================
--- applications/editors/josm/plugins/multipoly-convert/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/multipoly-convert/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the multipoly-convert plugin.
@@ -29,187 +29,170 @@
 -->
 <project name="multipoly-convert" default="dist" basedir=".">
-
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!-- 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="${plugin.dist.dir}/${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" />
-
-	<property name="ant.build.javac.target" value="1.5" />
-
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}">
-		</mkdir>
-		<mkdir dir="${plugin.dist.dir}">
-		</mkdir>
-	</target>
-
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}" />
-		<javac srcdir="src" target="1.5" classpath="${josm}" destdir="build" debug="true">
-			<include name="**/*.java" />
-		</javac>
-	</target>
-
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
-		<delete file="REVISION" />
-	</target>
-
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images" />
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Stéphane Brunner" />
-				<attribute name="Plugin-Class" value="converttomultipoly.MultipolyPlugin" />
-				<attribute name="Plugin-Description" value="Simply convert an area to a multipolygon." />
-				<attribute name="Plugin-Icon" value="images/multipoly_convert.png"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Link" value="http://www.stephane-brunner.ch/mediawiki/index.php/Plugins" />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<!--attribute name="2830_Plugin-Url" value="20583;http://trac.openstreetmap.org/browser/applications/editors/josm/dist/multipoly-convert.jar?rev=20584&amp;format=raw" /-->
-			</manifest>
-		</jar>
-	</target>
-
-	<target name="clean">
-		<delete dir="${plugin.build.dir}" />
-		<delete file="${plugin.jar}" />
-	</target>
-
-	<target name="clean_install">
-		<delete file="${plugins}/multipoly-convert.jar" />
-	</target>
-
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="../../core" />
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" />
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="commit" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="." />
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="." />
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="../dist/${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="commit" />
-			<arg value="${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
-
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!-- 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="${plugin.dist.dir}/${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"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}">
+        </mkdir>
+        <mkdir dir="${plugin.dist.dir}">
+        </mkdir>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" target="1.5" classpath="${josm}" destdir="build" debug="true">
+            <include name="**/*.java"/>
+        </javac>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Stéphane Brunner"/>
+                <attribute name="Plugin-Class" value="converttomultipoly.MultipolyPlugin"/>
+                <attribute name="Plugin-Description" value="Simply convert an area to a multipolygon."/>
+                <attribute name="Plugin-Icon" value="images/multipoly_convert.png"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Link" value="http://www.stephane-brunner.ch/mediawiki/index.php/Plugins"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <!--attribute name="2830_Plugin-Url" value="20583;http://trac.openstreetmap.org/browser/applications/editors/josm/dist/multipoly-convert.jar?rev=20584&amp;format=raw" /-->
+            </manifest>
+        </jar>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="clean_install">
+        <delete file="${plugins}/multipoly-convert.jar"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/namemanager/build.xml
===================================================================
--- applications/editors/josm/plugins/namemanager/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/namemanager/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,67 +29,64 @@
 -->
 <project name="namemanager" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="..." />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3966" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="..."/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3966"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources" />
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -99,20 +96,19 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Rafal Jachowicz: rjachow@gmail.com"/>
-				<attribute name="Main-Class" value="org.openstreetmap.josm.plugins.namemanager.NameManagerMain" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.namemanager.NameManagerPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Allows to attribute tags to all objects in any selected area at once" />
-				<attribute name="pl_Plugin-Description" value="Pozwala na dodawanie, edycję i usuwanie tagów znajdujących się we wskazanym obszarze na raz" />
-<!--				<attribute name="Plugin-Icon" value="..."/>-->
-<!--				<attribute name="Plugin-Link" value="..."/>-->
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Rafal Jachowicz: rjachow@gmail.com"/>
+                <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.namemanager.NameManagerMain"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.namemanager.NameManagerPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Allows to attribute tags to all objects in any selected area at once"/>
+                <attribute name="pl_Plugin-Description" value="Pozwala na dodawanie, edycję i usuwanie tagów znajdujących się we wskazanym obszarze na raz"/>
+                <!--                <attribute name="Plugin-Icon" value="..."/>-->
+                <!--                <attribute name="Plugin-Link" value="..."/>-->
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -121,139 +117,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/nearclick/build.xml
===================================================================
--- applications/editors/josm/plugins/nearclick/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/nearclick/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the nearclick plugin.
@@ -29,160 +29,151 @@
 -->
 <project name="nearclick" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Imi, David Earl"/>
-				<attribute name="Plugin-Class" value="nearclick.NearClickPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Simulates a click when you do a small and short drag. This is useful for tablet pens, when you have problems just clicking the tablet without the mouse moving (general Java - tablet problem)."/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Nearclick"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Imi, David Earl"/>
+                <attribute name="Plugin-Class" value="nearclick.NearClickPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Simulates a click when you do a small and short drag. This is useful for tablet pens, when you have problems just clicking the tablet without the mouse moving (general Java - tablet problem)."/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Nearclick"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/openstreetbugs/build.xml
===================================================================
--- applications/editors/josm/plugins/openstreetbugs/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/openstreetbugs/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the openstreetbugs plugin
@@ -26,161 +26,156 @@
 -->
 <project name="openstreetbugs" default="dist" basedir=".">
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Henrik Niehaus"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.osb.OsbPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Imports issues from OpenStreetBugs"/>
+                <attribute name="Plugin-Icon" value="images/dialogs/icon_error24.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/OpenStreetBugs"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Henrik Niehaus"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.osb.OsbPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Imports issues from OpenStreetBugs"/>
-				<attribute name="Plugin-Icon" value="images/dialogs/icon_error24.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/OpenStreetBugs"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/openvisible/build.xml
===================================================================
--- applications/editors/josm/plugins/openvisible/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/openvisible/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the openvisible plugin.
@@ -29,164 +29,159 @@
 -->
 <project name="openvisible" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class; updated build.xml" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Christof Dallermassl"/>
-				<attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.openvisible.OpenVisiblePlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5"/>
-				<attribute name="Plugin-Description" value="Allows opening gpx/osm files that intersect the currently visible screen area"/>
-				<attribute name="Plugin-Icon" value="images/openvisible.png"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Stage" value="50"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class; updated build.xml"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Christof Dallermassl"/>
+                <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.openvisible.OpenVisiblePlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Dependencies" value="jgrapht-jdk1.5"/>
+                <attribute name="Plugin-Description" value="Allows opening gpx/osm files that intersect the currently visible screen area"/>
+                <attribute name="Plugin-Icon" value="images/openvisible.png"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Stage" value="50"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/osmarender/build.xml
===================================================================
--- applications/editors/josm/plugins/osmarender/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/osmarender/build.xml	(revision 26174)
@@ -1,2 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for the osmarender plugin
@@ -25,173 +26,166 @@
 -->
 <project name="osmarender" default="install" basedir=".">
-	<property name="josm" location="../../core/dist/josm-custom.jar" />
-	<property name="plugin.dist.dir" value="../../dist" />
-	<property name="plugin.build.dir" value="build" />
-	<property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar" />
-	<property name="ant.build.javac.target" value="1.5" />
-	<property name="stylesheets" location="./stylesheets" />
-	<property name="xslt" location="./xslt" />
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="stylesheets" location="./stylesheets"/>
+    <property name="xslt" location="./xslt"/>
+    <property name="commit.message" value="Fixed #4360 - osmarender plugin does not load"/>
+    <property name="plugin.main.version" value="3835"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="copy-styles">
+        <copy todir="${plugin.build.dir}" file="${xslt}/osmarender.xsl"/>
+        <copy tofile="${plugin.build.dir}/osm-map-features.xml" file="${stylesheets}/osm-map-features-z17.xml"/>
+    </target>
+    <target name="dist" depends="compile,revision,copy-styles">
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="80n"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.osmarender.OsmarenderPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Launches FireFox to display the current visible screen as a nice SVG image."/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="../getrevision.pl"/>
+            <arg value="xslt"/>
+            <arg value="stylesheets"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="true" failonerror="true">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <echo message="Revision is ${version.entry.commit.revision}"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-
-	<property name="commit.message" value="Fixed #4360 - osmarender plugin does not load" />
-	<property name="plugin.main.version" value="3835" />
-
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}" />
-	</target>
-
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}" />
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-	</target>
-	<target name="copy-styles">
-		<copy todir="${plugin.build.dir}" file="${xslt}/osmarender.xsl" />
-		<copy tofile="${plugin.build.dir}/osm-map-features.xml" file="${stylesheets}/osm-map-features-z17.xml" />
-	</target>
-	<target name="dist" depends="compile,revision,copy-styles">
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="80n" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.osmarender.OsmarenderPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Description" value="Launches FireFox to display the current visible screen as a nice SVG image." />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="../getrevision.pl"/>
-			<arg value="xslt"/>
-			<arg value="stylesheets"/>
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="true" failonerror="true">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
-		<echo message="Revision is ${version.entry.commit.revision}" />
-		<delete file="REVISION" />
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}" />
-		<delete file="${plugin.jar}" />
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/pdfimport/build.xml
===================================================================
--- applications/editors/josm/plugins/pdfimport/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/pdfimport/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the pdfimport plugin.
@@ -30,196 +30,178 @@
 -->
 <project name="pdfimport" default="dist" basedir=".">
-
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Initial pdfimport version" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3872" />
-
-
-	<!-- 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="libpdf" value="lib/pdfbox.jar"/>		
-	<property name="plugin.jar" value="${plugin.dist.dir}/${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" />
-
-	<property name="ant.build.javac.target" value="1.5" />
-
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}">
-		</mkdir>
-		<mkdir dir="${plugin.dist.dir}">
-		</mkdir>
-	</target>
-
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}" />
-		<javac srcdir="src" target="1.5" destdir="build" debug="true">
-			<include name="**/*.java" />
-			<classpath>
-				<pathelement location="${josm}"/>
-				<pathelement location="${libpdf}"/>				
-			</classpath>			
-		</javac>
-	</target>
-
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
-		<delete file="REVISION" />
-	</target>
-
-	<target name="dist" depends="compile,revision">
-		<unjar dest="${plugin.build.dir}" src="${libpdf}"/>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images" />
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir="resources" />
-		</copy>
-
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="extropy" />
-				<attribute name="Plugin-Class" value="pdfimport.PdfImportPlugin" />
-				<attribute name="Plugin-Description" value="Import PDF file and convert to ways." />
-				<attribute name="Plugin-Icon" value="images/pdf_import.png"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Link" value="http://svn.openstreetmap.org/applications/editors/josm/plugins/pdfimport/" />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-			</manifest>
-		</jar>
-	</target>
-
-	<target name="clean">
-		<delete dir="${plugin.build.dir}" />
-		<delete file="${plugin.jar}" />
-	</target>
-
-	<target name="clean_install">
-		<delete file="${plugins}/pdfimport.jar" />
-	</target>
-
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="../../core" />
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" />
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="commit" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="." />
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="." />
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="../dist/${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="commit" />
-			<arg value="${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
-
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Initial pdfimport version"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3872"/>
+    <!-- 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="libpdf" value="lib/pdfbox.jar"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${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"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}">
+        </mkdir>
+        <mkdir dir="${plugin.dist.dir}">
+        </mkdir>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" target="1.5" destdir="build" debug="true">
+            <include name="**/*.java"/>
+            <classpath>
+                <pathelement location="${josm}"/>
+                <pathelement location="${libpdf}"/>
+            </classpath>
+        </javac>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <unjar dest="${plugin.build.dir}" src="${libpdf}"/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir="resources"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="extropy"/>
+                <attribute name="Plugin-Class" value="pdfimport.PdfImportPlugin"/>
+                <attribute name="Plugin-Description" value="Import PDF file and convert to ways."/>
+                <attribute name="Plugin-Icon" value="images/pdf_import.png"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Link" value="http://svn.openstreetmap.org/applications/editors/josm/plugins/pdfimport/"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="clean_install">
+        <delete file="${plugins}/pdfimport.jar"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/photo_geotagging/build.xml
===================================================================
--- applications/editors/josm/plugins/photo_geotagging/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/photo_geotagging/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** Usage
@@ -23,67 +23,64 @@
 -->
 <project name="photo_geotagging" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="fixed josm bug 5800 - 'Override old backup files?' message window can't get focus" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="fixed josm bug 5800 - 'Override old backup files?' message window can't get focus"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sanselan sources ... "/>
-		<javac srcdir="${plugin.src.dir}" excludes="org/openstreetmap/**" debug="true" destdir="${plugin.build.dir}" encoding="iso-8859-1">
-			<compilerarg value="-Xlint:deprecation"/>
-		</javac>
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="${plugin.src.dir}" excludes="org/apache/sanselan/**" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sanselan sources ... "/>
+        <javac srcdir="${plugin.src.dir}" excludes="org/openstreetmap/**" debug="true" destdir="${plugin.build.dir}" encoding="iso-8859-1">
+            <compilerarg value="-Xlint:deprecation"/>
+        </javac>
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="${plugin.src.dir}" excludes="org/apache/sanselan/**" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -93,18 +90,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Sebastian Klein"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.photo_geotagging.GeotaggingPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Write gps position info to the image file header. Run this feature from the right click menu of the image layer."/>
-				<attribute name="Plugin-Icon" value="images/geotagging.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Photo_Geotagging"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Sebastian Klein"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.photo_geotagging.GeotaggingPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Write gps position info to the image file header. Run this feature from the right click menu of the image layer."/>
+                <attribute name="Plugin-Icon" value="images/geotagging.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Photo_Geotagging"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -113,139 +109,129 @@
     **********************************************************
     -->
-	<target name="revision">
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+    **********************************************************
+    ** clean - clean up the build environment
+    **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** install - install the plugin in your local JOSM installation
+    **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** clean - clean up the build environment
-    **********************************************************
-    -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin ***********************************
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/piclayer/build.xml
===================================================================
--- applications/editors/josm/plugins/piclayer/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/piclayer/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -22,76 +22,73 @@
 -->
 <project name="PicLayer" default="dist" basedir=".">
-
-	<property name="commit.message" value="applied #J5852 (patch by Petschge) - new shear option" />
-	<property name="plugin.main.version" value="3835" />
-
-	<!--
+    <property name="commit.message" value="applied #J5852 (patch by Petschge) - new shear option"/>
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for ${ant.project.name} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for ${ant.project.name} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${plugin.jar} ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Tomasz Stelmach"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.piclayer.PicLayerPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="This plugin allows to display any picture as a background in the editor and align it with the map."/>
-				<attribute name="Plugin-Icon" value="images/layericon.png"/>
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${plugin.jar} ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Tomasz Stelmach"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.piclayer.PicLayerPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="This plugin allows to display any picture as a background in the editor and align it with the map."/>
+                <attribute name="Plugin-Icon" value="images/layericon.png"/>
                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/PicLayer"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -100,139 +97,130 @@
     **********************************************************
     -->
-	<target name="revision">
+    <target name="revision">
+        <!-- extract the SVN revision information for file build.number -->
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+    **********************************************************
+    ** clean - clean up the build environment
+    **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** install - install the plugin in your local JOSM installation
+    **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-		<!-- extract the SVN revision information for file build.number -->
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** clean - clean up the build environment
-    **********************************************************
-    -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/plastic_laf/build.xml
===================================================================
--- applications/editors/josm/plugins/plastic_laf/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/plastic_laf/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the plastic_laf plugin.
@@ -29,166 +29,158 @@
 -->
 <project name="plastic_laf" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="looks"                  value="lib/looks-2.2.1.jar"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-			<classpath>
-				<pathelement location="${josm}"/>
-				<pathelement location="${looks}"/>
-			</classpath>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<unjar dest="${plugin.build.dir}" src="${looks}"/>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Imi"/>
-				<attribute name="Plugin-Class" value="plastic_laf.Plugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel."/>
-				<attribute name="Plugin-Early" value="true"/>
-				<attribute name="Plugin-Link" value="http://www.jgoodies.com/"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="looks" value="lib/looks-2.2.1.jar"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+            <classpath>
+                <pathelement location="${josm}"/>
+                <pathelement location="${looks}"/>
+            </classpath>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <unjar dest="${plugin.build.dir}" src="${looks}"/>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Imi"/>
+                <attribute name="Plugin-Class" value="plastic_laf.Plugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="The great JGoodies Plastic Look and Feel."/>
+                <attribute name="Plugin-Early" value="true"/>
+                <attribute name="Plugin-Link" value="http://www.jgoodies.com/"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/proj4j/build.xml
===================================================================
--- applications/editors/josm/plugins/proj4j/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/proj4j/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,29 +29,25 @@
 -->
 <project name="proj4j" default="dist" basedir=".">
-
     <!-- read build.properties for local settings -->
-    <property file="build.properties" />
+    <property file="build.properties"/>
     <!-- enter the SVN command file name -->
-    <property name="svn" value="svn" />
+    <property name="svn" value="svn"/>
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message" />
+    <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3872" />
-
-    <property name="libproj4j" value="lib/proj4j-0.1.0.jar"/>	
-
+    <property name="plugin.main.version" value="3872"/>
+    <property name="libproj4j" value="lib/proj4j-0.1.0.jar"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -62,5 +58,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -72,12 +67,11 @@
         <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
             <classpath>
-              <pathelement location="${josm}"/>
-              <pathelement location="${libproj4j}"/>				
-            </classpath>	
+                <pathelement location="${josm}"/>
+                <pathelement location="${libproj4j}"/>
+            </classpath>
             <compilerarg value="-Xlint:deprecation"/>
             <compilerarg value="-Xlint:unchecked"/>
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -93,8 +87,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -121,5 +118,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -130,5 +126,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="${svn}" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -140,5 +135,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -150,5 +144,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -165,6 +158,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -185,7 +176,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -198,11 +188,10 @@
             <arg value="-m '${commit.message}'"/>
             <arg value="."/>
-        	<arg value="${svn.username_arg}"/>
-        	<arg value="${svn.username}"/>
-        	<arg value="${svn.password_arg}"/>
-        	<arg value="${svn.password}"/>
-        </exec>
-    </target>
-
+            <arg value="${svn.username_arg}"/>
+            <arg value="${svn.username}"/>
+            <arg value="${svn.password_arg}"/>
+            <arg value="${svn.password}"/>
+        </exec>
+    </target>
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -222,5 +211,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -242,16 +230,15 @@
             <arg value="commit"/>
             <arg value="${plugin.jar}"/>
-        	<arg value="${svn.username_arg}"/>
-        	<arg value="${svn.username}"/>
-        	<arg value="${svn.password_arg}"/>
-        	<arg value="${svn.password}"/>
-        </exec>
-    </target>
-
+            <arg value="${svn.username_arg}"/>
+            <arg value="${svn.username}"/>
+            <arg value="${svn.password_arg}"/>
+            <arg value="${svn.password}"/>
+        </exec>
+    </target>
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="${svn}" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -259,5 +246,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -266,9 +253,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/public_transport/build.xml
===================================================================
--- applications/editors/josm/plugins/public_transport/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/public_transport/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** Usage
@@ -21,13 +21,12 @@
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="${josm.basedir}/core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="${josm.basedir}/core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="${josm.basedir}/dist"/>
+    <property name="plugin.dist.dir" value="${josm.basedir}/dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="${josm.basedir}/dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="${josm.basedir}/dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -38,5 +37,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -51,5 +49,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -65,12 +62,15 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-    <!--
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -82,5 +82,5 @@
             <manifest>
                 <attribute name="Author" value="Roland M. Olbricht"/>
-		<attribute name="Plugin-Class" value="public_transport.PublicTransportPlugin"/>
+                <attribute name="Plugin-Class" value="public_transport.PublicTransportPlugin"/>
                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
                 <attribute name="Plugin-Description" value="This plugin simplifies the mapping and editing of public transport routes."/>
@@ -91,5 +91,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -100,5 +99,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -110,5 +108,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -120,5 +117,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
Index: applications/editors/josm/plugins/reltoolbox/LICENSE
===================================================================
--- applications/editors/josm/plugins/reltoolbox/LICENSE	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/LICENSE	(revision 26174)
@@ -0,0 +1,674 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
Index: applications/editors/josm/plugins/reltoolbox/README
===================================================================
--- applications/editors/josm/plugins/reltoolbox/README	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/README	(revision 26174)
@@ -0,0 +1,1 @@
+Advanced relations panel for JOSM.
Index: applications/editors/josm/plugins/reltoolbox/TODO
===================================================================
--- applications/editors/josm/plugins/reltoolbox/TODO	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/TODO	(revision 26174)
@@ -0,0 +1,28 @@
+== BETA ==
+
+- Draw icons for multipoly settings menu
+- Solve width problem for narrows buttons when "fix" and "download" appear simultaneously
+- "Reverse multipolygon": create a closed area out of outer members, move tags, delete relation and empty ways
+- Fix tags for public_transport relations
+- âûêëþ÷àòü ïîäñâåòêó âûáðàííîãî îòíîøåíèÿ ïðè âûêëþ÷åíèè ñëîÿ ñ äàííûìè
+- èêîíêà â ïàíåëè ñëåâà íå ðàáîòàåò, à ÷åêáîêñ (åñëè íà >> íàæàòü) âêëþ÷àåò ïàíåëü ñî âòîðîãî ðàçà
+- ðåæèì äëÿ ñîçäàíèÿ ìóëüòèïîëèãîíîâ áåç òðåáîâàíèÿ ïðèñóòñòâèÿ òåãîâ íà âñåõ ëèíèÿõ,
+  êîãäà ïëîùàäíûå òýãè ñîáèðàþòñÿ ñ êóñêîâ äàæå åñëè îíè ïðèñóòñòâóþò íå íà âñåõ (íàñòðîéêà)
+
+== NEW ALGORITHM ==
+
+- Implement algorithm to construct rings from selection
+- Classify those rings (inner/outer) based on node tracing
+- Break touching rings of multipolygons
+- Analyze chosen relation and display corresponding symbol next to its name
+- Make chosen relation name pretty (or analyze all relations in relation list)
+- Sort relation members button (now it's just role fixer)
+- "Add members" should search for connecting nodes among already present members
+- Automatic role setting for new multipolygon ways (construct rings, see where a way goes)
+- Split multipolygon: arrange holes accordingly.
+
+== RELEASE ==
+
+- Construct rings using middle points of ways and break those ways
+- Convert adjacing rings that need to be broken to multipolygons
+- Option to autodownload all ways that are being broken
Index: applications/editors/josm/plugins/reltoolbox/build.xml
===================================================================
--- applications/editors/josm/plugins/reltoolbox/build.xml	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/build.xml	(revision 26174)
@@ -0,0 +1,245 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+** This is a template build file for a JOSM  plugin.
+**
+** Maintaining versions
+** ====================
+** see README.template
+**
+** Usage
+** =====
+** To build it run
+**
+**    > ant  dist
+**
+** To install the generated plugin locally (in you default plugin directory) run
+**
+**    > ant  install
+**
+** The generated plugin jar is not automatically available in JOSMs plugin configuration
+** dialog. You have to check it in first.
+**
+** Use the ant target 'publish' to check in the plugin and make it available to other
+** JOSM users:
+**    set the properties commit.message and plugin.main.version
+** and run
+**    > ant  publish
+**
+**
+-->
+<project name="reltoolbox" default="dist" basedir=".">
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="RelToolbox"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
+      ************************************************
+      ** should not be necessary to change the following properties
+     -->
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <!--property name="plugin.dist.dir"        value="/Users/Zverik/AppData/Roaming/JOSM/plugins"/-->
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
+    **********************************************************
+    ** init - initializes the build
+    **********************************************************
+    -->
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** compile - complies the source tree
+    **********************************************************
+    -->
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
+    **********************************************************
+    ** dist - creates the plugin jar
+    **********************************************************
+    -->
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir="src" includes="**/*.txt"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
+        ************************************************
+        ** configure these properties. Most of them will be copied to the plugins
+        ** manifest file. Property values will also show up in the list available
+        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
+        **
+        ************************************************
+    -->
+            <manifest>
+                <attribute name="Author" value="Ilya Zverev"/>
+                <attribute name="Plugin-Class" value="relcontext.RelContextPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Relation and multipolygon creating and editing panel."/>
+                <attribute name="ru_Plugin-Description" value="Панель создания и редактирования отношений, особенно мультиполигонов."/>
+                <attribute name="Plugin-Icon" value="images/reltoolbox.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Relation_Toolbox"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+                <attribute name="Plugin-Stage" value="10"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
+    **********************************************************
+    ** revision - extracts the current revision number for the
+    **    file build.number and stores it in the XML property
+    **    version.*
+    **********************************************************
+    -->
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+    **********************************************************
+    ** clean - clean up the build environment
+    **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** install - install the plugin in your local JOSM installation
+    **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                    
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                    
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
+</project>
Index: applications/editors/josm/plugins/reltoolbox/manifest.mf
===================================================================
--- applications/editors/josm/plugins/reltoolbox/manifest.mf	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/manifest.mf	(revision 26174)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+X-COMMENT: Main-Class will be added automatically by build
+
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelation.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelation.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelation.java	(revision 26174)
@@ -0,0 +1,175 @@
+package relcontext;
+
+import java.awt.*;
+import java.awt.geom.GeneralPath;
+import java.util.*;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.Bounds;
+import org.openstreetmap.josm.data.osm.*;
+import org.openstreetmap.josm.data.osm.event.*;
+import org.openstreetmap.josm.gui.MapView;
+import org.openstreetmap.josm.gui.MapView.EditLayerChangeListener;
+import org.openstreetmap.josm.gui.layer.MapViewPaintable;
+import org.openstreetmap.josm.gui.layer.OsmDataLayer;
+
+/**
+ * Chosen relation; is used for all actions and is highlighted on the map.
+ *
+ * @author Zverik
+ */
+public class ChosenRelation implements EditLayerChangeListener, MapViewPaintable, DataSetListener {
+    protected Relation chosenRelation = null;
+    private Set<ChosenRelationListener> chosenRelationListeners = new HashSet<ChosenRelationListener>();
+
+    public void set( Relation rel ) {
+        if( rel == chosenRelation || (rel != null && chosenRelation != null && rel.equals(chosenRelation)) ) {
+            return; // new is the same as old
+        }
+        Relation oldRel = chosenRelation;
+        chosenRelation = rel;
+        analyse();
+        Main.map.mapView.repaint();
+        fireRelationChanged(oldRel);
+    }
+
+    protected void fireRelationChanged( Relation oldRel ) {
+        for( ChosenRelationListener listener : chosenRelationListeners )
+            listener.chosenRelationChanged(oldRel, chosenRelation);
+    }
+
+    public Relation get() {
+        return chosenRelation;
+    }
+
+    public void clear() {
+        set(null);
+    }
+
+    public boolean isSame( Object r ) {
+        if( r == null )
+            return chosenRelation == null;
+        else if( !(r instanceof Relation) )
+            return false;
+        else
+            return chosenRelation != null && r.equals(chosenRelation);
+    }
+    
+    private final static String[] MULTIPOLYGON_TYPES = new String[] {
+        "multipolygon", "boundary"
+    };
+
+    /**
+     * Check if the relation type assumes all ways inside it form a multipolygon.
+     */
+    public boolean isMultipolygon() {
+        return isMultipolygon(chosenRelation);
+    }
+
+    public static boolean isMultipolygon( Relation r ) {
+        if( r == null )
+            return false;
+        String type = r.get("type");
+        if( type == null )
+            return false;
+        for( String t : MULTIPOLYGON_TYPES )
+            if( t.equals(type) )
+                return true;
+        return false;
+    }
+
+    public int getSegmentsCount() {
+        return 0;
+    }
+
+    public int getCirclesCount() {
+        return 0;
+    }
+
+    protected void analyse() {
+        // todo
+    }
+
+    public void addChosenRelationListener( ChosenRelationListener listener ) {
+        chosenRelationListeners.add(listener);
+    }
+
+    public void removeChosenRelationListener( ChosenRelationListener listener ) {
+        chosenRelationListeners.remove(listener);
+    }
+
+    public void editLayerChanged( OsmDataLayer oldLayer, OsmDataLayer newLayer ) {
+        // todo: dim chosen relation when changing layer
+        // todo: check this WTF!
+        clear();
+        if( newLayer != null && oldLayer == null ) {
+            Main.map.mapView.addTemporaryLayer(this);
+        } else if( oldLayer != null ) {
+            Main.map.mapView.removeTemporaryLayer(this);
+        }
+    }
+
+    public void paint( Graphics2D g, MapView mv, Bounds bbox ) {
+        if( chosenRelation == null ) {
+            return;
+        }
+
+        Stroke oldStroke = g.getStroke();
+        Composite oldComposite = g.getComposite();
+        g.setColor(Color.yellow);
+        g.setStroke(new BasicStroke(9, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
+        g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.3f));
+        for( OsmPrimitive element : chosenRelation.getMemberPrimitives() ) {
+            if( element.getType() == OsmPrimitiveType.NODE ) {
+                Node node = (Node)element;
+                Point center = mv.getPoint(node);
+                g.drawOval(center.x - 4, center.y - 4, 9, 9);
+            } else if( element.getType() == OsmPrimitiveType.WAY ) {
+                Way way = (Way)element;
+                if( way.getNodesCount() >= 2 ) {
+                    GeneralPath b = new GeneralPath();
+                    Point p = mv.getPoint(way.getNode(0));
+                    b.moveTo(p.x, p.y);
+                    for( int i = 1; i < way.getNodesCount(); i++ ) {
+                        p = mv.getPoint(way.getNode(i));
+                        b.lineTo(p.x, p.y);
+                    }
+                    g.draw(b);
+                }
+            } else if( element.getType() == OsmPrimitiveType.RELATION ) {
+                // todo: draw all relation members (recursion?)
+            }
+            // todo: closedway, multipolygon - ?
+        }
+        g.setStroke(oldStroke);
+        g.setComposite(oldComposite);
+    }
+
+    public void relationMembersChanged( RelationMembersChangedEvent event ) {
+        if( chosenRelation != null && event.getRelation().equals(chosenRelation) )
+            fireRelationChanged(chosenRelation);
+    }
+    
+    public void tagsChanged( TagsChangedEvent event ) {
+        if( chosenRelation != null && event.getPrimitive().equals(chosenRelation) )
+            fireRelationChanged(chosenRelation);
+    }
+
+    public void dataChanged( DataChangedEvent event ) {
+        if( chosenRelation != null )
+            fireRelationChanged(chosenRelation);
+    }
+
+    public void primtivesRemoved( PrimitivesRemovedEvent event ) {
+        if( chosenRelation != null && event.getPrimitives().contains(chosenRelation) )
+            clear();
+    }
+
+    public void wayNodesChanged( WayNodesChangedEvent event ) {
+        if( chosenRelation != null )
+            fireRelationChanged(chosenRelation); // download incomplete primitives doesn't cause dataChanged event
+    }
+
+    public void primtivesAdded( PrimitivesAddedEvent event ) {}
+    public void nodeMoved( NodeMovedEvent event ) {}
+    public void otherDatasetChange( AbstractDatasetChangedEvent event ) {}
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelationComponent.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelationComponent.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelationComponent.java	(revision 26174)
@@ -0,0 +1,74 @@
+package relcontext;
+
+import java.awt.Color;
+import javax.swing.JLabel;
+import javax.swing.border.BevelBorder;
+import javax.swing.border.LineBorder;
+import org.openstreetmap.josm.data.osm.Relation;
+
+/**
+ * Renderer for chosen relation.
+ * [Icon] na=wood U
+ * key is 2-letter; type = icon; to the right — symbol of relation topology (closed, lines, broken).
+ *
+ * @author Zverik
+ */
+public class ChosenRelationComponent extends JLabel implements ChosenRelationListener {
+
+    private ChosenRelation chRel;
+
+    public ChosenRelationComponent(ChosenRelation rel) {
+        super("");
+/*        setBackground(Color.white);
+        setOpaque(true);
+        setBorder(new LineBorder(Color.black, 1, true));*/
+        this.chRel = rel;
+        rel.addChosenRelationListener(this);
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setText(prepareText(newRelation));
+        repaint();
+    }
+    
+    private final static String[] TYPE_KEYS = new String[] {
+        "natural", "landuse", "place", "waterway", "leisure", "amenity", "restriction", "public_transport", "route", "enforcement"
+    };
+
+    private final static String[] NAMING_TAGS = new String[] {
+        "name", "place_name", "ref", "destination", "note"
+    };
+
+    protected String prepareText( Relation rel ) {
+        if( rel == null )
+            return "";
+
+        String type = rel.get("type");
+        if( type == null || type.length() == 0 )
+            type = "-";
+
+        String tag = null;
+        for( int i = 0; i < TYPE_KEYS.length && tag == null; i++ )
+            if( rel.hasKey(TYPE_KEYS[i]))
+                tag = TYPE_KEYS[i];
+        if( tag != null )
+            tag = tag.substring(0, 2) + "=" + rel.get(tag);
+
+        String name = null;
+        for( int i = 0; i < NAMING_TAGS.length && name == null; i++ )
+            if( rel.hasKey(NAMING_TAGS[i]) )
+                name = rel.get(NAMING_TAGS[i]);
+
+        StringBuilder sb = new StringBuilder();
+        sb.append(type.substring(0, 1));
+        if( type.equals("boundary") && rel.hasKey("admin_level") )
+            sb.append(rel.get("admin_level"));
+        if( name != null )
+            sb.append(" \"").append(name).append('"');
+        if( tag != null )
+            sb.append("; ").append(tag);
+        sb.append(" (").append(rel.getMembersCount()).append(')');
+
+        return sb.toString();
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelationListener.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelationListener.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/ChosenRelationListener.java	(revision 26174)
@@ -0,0 +1,12 @@
+package relcontext;
+
+import org.openstreetmap.josm.data.osm.Relation;
+
+/**
+ * Listener for {@link RelContextDialog}'s chosen relation field.
+ *
+ * @author Zverik
+ */
+public interface ChosenRelationListener {
+	void chosenRelationChanged( Relation oldRelation, Relation newRelation );
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextDialog.java	(revision 26174)
@@ -0,0 +1,672 @@
+package relcontext;
+
+import org.openstreetmap.josm.actions.JosmAction;
+import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher;
+import org.openstreetmap.josm.command.SequenceCommand;
+import org.openstreetmap.josm.command.Command;
+import java.io.BufferedReader;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.awt.Point;
+import java.awt.Component;
+import java.awt.Dimension;
+import org.openstreetmap.josm.tools.ImageProvider;
+import org.openstreetmap.josm.gui.DefaultNameFormatter;
+import org.openstreetmap.josm.data.osm.NameFormatter;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.table.TableColumnModel;
+import javax.swing.table.DefaultTableModel;
+import java.awt.event.*;
+import java.util.*;
+import javax.swing.*;
+import relcontext.actions.*;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.Dialog.ModalityType;
+import java.awt.GridBagLayout;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import javax.swing.event.ListSelectionListener;
+import javax.swing.table.DefaultTableCellRenderer;
+
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.SelectionChangedListener;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.data.osm.event.DatasetEventManager.FireMode;
+import org.openstreetmap.josm.data.osm.event.SelectionEventManager;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import org.openstreetmap.josm.data.osm.RelationMember;
+import org.openstreetmap.josm.data.osm.event.DatasetEventManager;
+import org.openstreetmap.josm.gui.layer.OsmDataLayer;
+import org.openstreetmap.josm.gui.MapView;
+import org.openstreetmap.josm.gui.MapView.EditLayerChangeListener;
+import org.openstreetmap.josm.gui.OsmPrimitivRenderer;
+import org.openstreetmap.josm.gui.dialogs.ToggleDialog;
+import org.openstreetmap.josm.tools.Shortcut;
+import org.openstreetmap.josm.tools.GBC;
+import org.openstreetmap.josm.command.ChangeRelationMemberRoleCommand;
+import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingComboBox;
+import static org.openstreetmap.josm.tools.I18n.tr;
+
+/**
+ * The new, advanced relation editing panel.
+ * 
+ * @author Zverik
+ */
+public class RelContextDialog extends ToggleDialog implements EditLayerChangeListener, ChosenRelationListener, SelectionChangedListener {
+
+    public final static String PREF_PREFIX = "reltoolbox";
+
+    private final DefaultTableModel relationsData;
+    private ChosenRelation chosenRelation;
+    private JPanel chosenRelationPanel;
+    private ChosenRelationPopupMenu popupMenu;
+    private MultipolygonSettingsPopup multiPopupMenu;
+    private RoleComboBoxModel roleBoxModel;
+    private SortAndFixAction sortAndFixAction;
+
+    public RelContextDialog() {
+        super(tr("Relation Toolbox"), PREF_PREFIX, tr("Open relation/multipolygon editor panel"), null, 150, true);
+
+        chosenRelation = new ChosenRelation();
+        chosenRelation.addChosenRelationListener(this);
+        MapView.addEditLayerChangeListener(chosenRelation);
+
+        popupMenu = new ChosenRelationPopupMenu(chosenRelation);
+        multiPopupMenu = new MultipolygonSettingsPopup();
+
+        JPanel rcPanel = new JPanel(new BorderLayout());
+
+        relationsData = new RelationTableModel();
+        relationsData.setColumnIdentifiers(new String[] {tr("Member Of"), tr("Role")});
+        final JTable relationsTable = new JTable(relationsData);
+        configureRelationsTable(relationsTable);
+        rcPanel.add(new JScrollPane(relationsTable, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.CENTER);
+
+        final MouseListener relationMouseAdapter = new ChosenRelationMouseAdapter();
+        final JComboBox roleBox = new JComboBox();
+        roleBoxModel = new RoleComboBoxModel(roleBox);
+        roleBox.setModel(roleBoxModel);
+        roleBox.addMouseListener(relationMouseAdapter);
+        roleBox.addItemListener(new ItemListener() {
+            public void itemStateChanged( ItemEvent e ) {
+                if( e.getStateChange() == ItemEvent.DESELECTED ) return;
+                String memberRole = roleBoxModel.getSelectedMembersRole();
+                String selectedRole = roleBoxModel.isAnotherRoleSelected() ? askForRoleName() : roleBoxModel.getSelectedRole();
+                if( memberRole != null && selectedRole != null && !memberRole.equals(selectedRole) ) {
+                    applyRoleToSelection(selectedRole.trim());
+                }
+            }
+        });
+        roleBox.setVisible(false);
+        final Action enterRoleAction = new EnterRoleAction(); // just for the shorcut
+
+        // [±][X] relation U [AZ][Down][Edit]
+        chosenRelationPanel = new JPanel(new GridBagLayout());
+        chosenRelationPanel.add(new JButton(new AddRemoveMemberAction(chosenRelation)), GBC.std());
+        chosenRelationPanel.add(sizeButton(new JButton(new ClearChosenRelationAction(chosenRelation)), 32, 0), GBC.std());
+        final ChosenRelationComponent chosenRelationComponent = new ChosenRelationComponent(chosenRelation);
+        chosenRelationComponent.addMouseListener(relationMouseAdapter);
+        chosenRelationPanel.add(chosenRelationComponent, GBC.std().fill().insets(5, 0, 5, 0));
+        chosenRelationPanel.add(roleBox, GBC.std().fill().insets(5, 0, 5, 0));
+        sortAndFixAction = new SortAndFixAction(chosenRelation);
+        final JButton sortAndFixButton = (JButton) sizeButton(new JButton(sortAndFixAction), 32, 0);
+        chosenRelationPanel.add(sortAndFixButton, GBC.std().fill(GBC.VERTICAL));
+        final Action downloadChosenRelationAction = new DownloadChosenRelationAction(chosenRelation);
+        final JButton downloadButton = (JButton) sizeButton(new JButton(downloadChosenRelationAction), 32, 0);
+        chosenRelationPanel.add(downloadButton, GBC.std().fill(GBC.VERTICAL));
+        chosenRelationPanel.add(new JButton(new EditChosenRelationAction(chosenRelation)), GBC.eol().fill(GBC.VERTICAL));
+
+        rcPanel.add(chosenRelationPanel, BorderLayout.NORTH);
+
+        roleBox.addPropertyChangeListener("enabled", new PropertyChangeListener() {
+            public void propertyChange( PropertyChangeEvent evt ) {
+                boolean showRoleBox = roleBox.isEnabled();
+                roleBox.setVisible(showRoleBox);
+                chosenRelationComponent.setVisible(!showRoleBox);
+            }
+        });
+
+        sortAndFixAction.addPropertyChangeListener(new PropertyChangeListener() {
+            public void propertyChange( PropertyChangeEvent evt ) {
+                sortAndFixButton.setVisible(sortAndFixAction.isEnabled());
+            }
+        });
+        sortAndFixButton.setVisible(false);
+
+        downloadChosenRelationAction.addPropertyChangeListener(new PropertyChangeListener() {
+            public void propertyChange( PropertyChangeEvent evt ) {
+                downloadButton.setVisible(downloadChosenRelationAction.isEnabled());
+            }
+        });
+        downloadButton.setVisible(false);
+        if( Main.pref.getBoolean(PREF_PREFIX + ".hidetopline", false) )
+            chosenRelationPanel.setVisible(false);
+
+        // [+][Multi] [X]Adm [X]Tags [X]1
+        JPanel bottomLine = new JPanel(new GridBagLayout());
+        bottomLine.add(new JButton(new CreateRelationAction(chosenRelation)), GBC.std());
+        final JButton multipolygonButton = new JButton(new CreateMultipolygonAction(chosenRelation));
+        bottomLine.add(multipolygonButton, GBC.std());
+//        bottomLine.add(sizeButton(new JButton(new MultipolygonSettingsAction()), 16, 0), GBC.std().fill(GBC.VERTICAL));
+        bottomLine.add(Box.createHorizontalGlue(), GBC.std().fill());
+        bottomLine.add(new JButton(new FindRelationAction(chosenRelation)), GBC.eol());
+        rcPanel.add(sizeButton(bottomLine, 0, 24), BorderLayout.SOUTH);
+
+        multipolygonButton.addMouseListener(new MouseAdapter() {
+            @Override
+            public void mousePressed( MouseEvent e ) {
+                checkPopup(e);
+            }
+
+            @Override
+            public void mouseReleased( MouseEvent e ) {
+                checkPopup(e);
+            }
+
+            private void checkPopup( MouseEvent e ) {
+                if( e.isPopupTrigger() )
+                    multiPopupMenu.show(e.getComponent(), e.getX(), e.getY());
+            }
+        });
+
+        add(rcPanel, BorderLayout.CENTER);
+    }
+
+    private static final Color CHOSEN_RELATION_COLOR = new Color(255, 255, 128);
+
+    private void configureRelationsTable( final JTable relationsTable ) {
+        relationsTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
+        relationsTable.setTableHeader(null);
+        relationsTable.addMouseListener(new MouseAdapter() {
+            @Override
+            public void mouseClicked( MouseEvent e ) {
+                Point p = e.getPoint();
+                int row = relationsTable.rowAtPoint(p);
+                if( SwingUtilities.isLeftMouseButton(e) && row >= 0 ) {
+                    Relation relation = (Relation)relationsData.getValueAt(row, 0);
+                    if( e.getClickCount() > 1 ) {
+                        Main.map.mapView.getEditLayer().data.setSelected(relation);
+                    }
+                }
+            }
+
+            @Override
+            public void mousePressed( MouseEvent e ) {
+                checkPopup(e);
+            }
+
+            @Override
+            public void mouseReleased( MouseEvent e ) {
+                checkPopup(e);
+            }
+
+            public void checkPopup( MouseEvent e ) {
+                if( e.isPopupTrigger() ) {
+                    Point p = e.getPoint();
+                    int row = relationsTable.rowAtPoint(p);
+                    if (row > -1) {
+                        Relation relation = (Relation)relationsData.getValueAt(row, 0);
+                        JPopupMenu menu = chosenRelation.isSame(relation) ? popupMenu
+                                : new ChosenRelationPopupMenu(new StaticChosenRelation(relation));
+                        menu.show(relationsTable, p.x, p.y-5);
+                    }
+                }
+            }
+        });
+
+        TableColumnModel columns = relationsTable.getColumnModel();
+        columns.getColumn(0).setCellRenderer(new OsmPrimitivRenderer() {
+            @Override
+            protected String getComponentToolTipText( OsmPrimitive value ) {
+                return null;
+            }
+
+            @Override
+            public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column ) {
+                Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
+                if( !isSelected && value instanceof Relation && chosenRelation.isSame(value) )
+                    c.setBackground(CHOSEN_RELATION_COLOR);
+                else
+                    c.setBackground(table.getBackground());
+                return c;
+            }
+
+        });
+        columns.getColumn(1).setCellRenderer(new DefaultTableCellRenderer() {
+            @Override
+            public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column ) {
+                Component c = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
+                if( !isSelected && chosenRelation.isSame(table.getValueAt(row, 0)) )
+                    c.setBackground(CHOSEN_RELATION_COLOR);
+                else
+                    c.setBackground(table.getBackground());
+                return c;
+            }
+        });
+        columns.getColumn(1).setPreferredWidth(40);
+        columns.getColumn(0).setPreferredWidth(220);
+        relationsTable.getSelectionModel().addListSelectionListener(new ListSelectionListener() {
+            public void valueChanged( ListSelectionEvent e ) {
+                int selectedRow = relationsTable.getSelectedRow();
+                if( selectedRow >= 0 ) {
+                    chosenRelation.set((Relation)relationsData.getValueAt(selectedRow, 0));
+                    relationsTable.clearSelection();
+                }
+            }
+        });
+    }
+
+    private JComponent sizeButton( JComponent b, int width, int height ) {
+        Dimension pref = b.getPreferredSize();
+        b.setPreferredSize(new Dimension(width <= 0 ? pref.width : width, height <= 0 ? pref.height : height));
+        return b;
+    }
+
+    @Override
+    public void hideNotify() {
+        SelectionEventManager.getInstance().removeSelectionListener(this);
+        MapView.removeEditLayerChangeListener(this);
+        DatasetEventManager.getInstance().removeDatasetListener(chosenRelation);
+        chosenRelation.clear();
+    }
+
+    @Override
+    public void showNotify() {
+        SelectionEventManager.getInstance().addSelectionListener(this, FireMode.IN_EDT_CONSOLIDATED);
+        MapView.addEditLayerChangeListener(this);
+        DatasetEventManager.getInstance().addDatasetListener(chosenRelation, FireMode.IN_EDT);
+    }
+
+    public ChosenRelation getChosenRelation() {
+        return chosenRelation;
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        if( chosenRelationPanel != null && Main.pref.getBoolean(PREF_PREFIX + ".hidetopline", false) )
+            chosenRelationPanel.setVisible(newRelation != null);
+        if( Main.main.getCurrentDataSet() != null )
+            selectionChanged(Main.main.getCurrentDataSet().getSelected());
+        roleBoxModel.update();
+        // ?
+    }
+
+    public void selectionChanged( Collection<? extends OsmPrimitive> newSelection ) {
+        if( !isVisible() || relationsData == null )
+            return;
+        roleBoxModel.update();
+        // repopulate relations table
+        relationsData.setRowCount(0);
+        sortAndFixAction.chosenRelationChanged(chosenRelation.get(), chosenRelation.get());
+        if( newSelection == null )
+            return;
+
+        final NameFormatter formatter = DefaultNameFormatter.getInstance();
+        Set<Relation> relations = new TreeSet<Relation>(new Comparator<Relation>() {
+            public int compare( Relation r1, Relation r2 ) {
+                int diff = r1.getDisplayName(formatter).compareTo(r2.getDisplayName(formatter));
+                return diff != 0 ? diff : r1.compareTo(r2);
+            }
+        });
+        for( OsmPrimitive element : newSelection ) {
+            for( OsmPrimitive ref : element.getReferrers() ) {
+                if( ref instanceof Relation && !ref.isIncomplete() && !ref.isDeleted() ) {
+                    relations.add((Relation) ref);
+                }
+            }
+        }
+
+        for( Relation rel : relations ) {
+            String role = null;
+            for( RelationMember m : rel.getMembers() ) {
+                for( OsmPrimitive element : newSelection ) {
+                    if( m.getMember().equals(element) ) {
+                        if( role == null )
+                            role = m.getRole();
+                        else if( !role.equals(m.getRole()) ) {
+                            role = tr("<different>");
+                            break;
+                        }
+                    }
+                }
+            }
+            relationsData.addRow(new Object[] {rel, role == null ? "" : role});
+        }
+        for( OsmPrimitive element : newSelection )
+            if( element instanceof Relation && !chosenRelation.isSame(element) )
+                relationsData.addRow(new Object[] {element, ""});
+    }
+
+    private void updateSelection() {
+        if (Main.main.getCurrentDataSet() == null) {
+            selectionChanged(Collections.<OsmPrimitive>emptyList());
+        } else {
+            selectionChanged(Main.main.getCurrentDataSet().getSelected());
+        }
+    }
+
+    public void editLayerChanged( OsmDataLayer oldLayer, OsmDataLayer newLayer ) {
+        updateSelection();
+    }
+
+    private static final String POSSIBLE_ROLES_FILE = "relcontext/possible_roles.txt";
+    private static final Map<String, List<String>> possibleRoles = loadRoles();
+
+    private static Map<String, List<String>> loadRoles() {
+        Map<String, List<String>> result = new HashMap<String, List<String>>();
+        try {
+            ClassLoader classLoader = RelContextDialog.class.getClassLoader();
+            final InputStream possibleRolesStream = classLoader.getResourceAsStream(POSSIBLE_ROLES_FILE);
+            BufferedReader r = new BufferedReader(new InputStreamReader(possibleRolesStream));
+            while( r.ready() ) {
+                String line = r.readLine();
+                StringTokenizer t = new StringTokenizer(line, " ,;:\"");
+                if( t.hasMoreTokens() ) {
+                    String type = t.nextToken();
+                    List<String> roles = new ArrayList<String>();
+                    while( t.hasMoreTokens() )
+                        roles.add(t.nextToken());
+                    result.put(type, roles);
+                }
+            }
+            r.close();
+        } catch( Exception e ) {
+            System.err.println("[RelToolbox] Error reading possible roles file.");
+            e.printStackTrace();
+        }
+        return result;
+    }
+
+    private String askForRoleName() {
+        JPanel panel = new JPanel(new GridBagLayout());
+
+        List<String> items = new ArrayList<String>();
+        for( String role : roleBoxModel.getRoles() ) {
+            if( role.length() > 1 )
+                items.add(role);
+        }
+        final AutoCompletingComboBox role = new AutoCompletingComboBox();
+        role.setPossibleItems(items);
+        role.setEditable(true);
+
+        panel.add(new JLabel(tr("Role")), GBC.std());
+        panel.add(Box.createHorizontalStrut(10), GBC.std());
+        panel.add(role, GBC.eol().fill(GBC.HORIZONTAL));
+
+        final JOptionPane optionPane = new JOptionPane(panel, JOptionPane.QUESTION_MESSAGE, JOptionPane.OK_CANCEL_OPTION) {
+            @Override
+            public void selectInitialValue() {
+                role.requestFocusInWindow();
+                role.getEditor().selectAll();
+            }
+        };
+        final JDialog dlg = optionPane.createDialog(Main.parent, tr("Specify role"));
+        dlg.setModalityType(ModalityType.DOCUMENT_MODAL);
+
+        role.getEditor().addActionListener(new ActionListener() {
+            public void actionPerformed( ActionEvent e ) {
+                dlg.setVisible(false);
+                optionPane.setValue(JOptionPane.OK_OPTION);
+            }
+        });
+
+        dlg.setVisible(true);
+
+        Object answer = optionPane.getValue();
+        if( answer == null || answer == JOptionPane.UNINITIALIZED_VALUE
+                || (answer instanceof Integer && (Integer)answer != JOptionPane.OK_OPTION) ) {
+            return null;
+        }
+
+        return role.getEditor().getItem().toString().trim();
+    }
+
+    private class ChosenRelationMouseAdapter extends MouseAdapter {
+        @Override
+        public void mouseClicked( MouseEvent e ) {
+            if( e.isControlDown() || !(e.getComponent() instanceof JComboBox ) ) // do not use left click handler on combo box
+            if( SwingUtilities.isLeftMouseButton(e) && chosenRelation.get() != null && Main.map.mapView.getEditLayer() != null ) {
+                Main.map.mapView.getEditLayer().data.setSelected(chosenRelation.get());
+            }
+        }
+
+        @Override
+        public void mousePressed( MouseEvent e ) {
+            checkPopup(e);
+        }
+
+        @Override
+        public void mouseReleased( MouseEvent e ) {
+            checkPopup(e);
+        }
+
+        private void checkPopup( MouseEvent e ) {
+            if( e.isPopupTrigger() && chosenRelation.get() != null ) {
+                popupMenu.show(e.getComponent(), e.getX(), e.getY() - 5);
+            }
+        }
+    }
+
+    private class ChosenRelationPopupMenu extends JPopupMenu {
+        public ChosenRelationPopupMenu( ChosenRelation chosenRelation ) {
+            add(new SelectMembersAction(chosenRelation));
+            add(new SelectRelationAction(chosenRelation));
+            add(new DeleteChosenRelationAction(chosenRelation));
+            add(new DownloadParentsAction(chosenRelation));
+            addSeparator();
+            add(new SelectInRelationPanelAction(chosenRelation));
+            add(new RelationHelpAction(chosenRelation));
+        }
+    }
+
+    protected void applyRoleToSelection( String role ) {
+        if( chosenRelation != null && chosenRelation.get() != null && Main.main.getCurrentDataSet() != null && !Main.main.getCurrentDataSet().selectionEmpty() ) {
+            Collection<OsmPrimitive> selected = Main.main.getCurrentDataSet().getSelected();
+            Relation r = chosenRelation.get();
+            List<Command> commands = new ArrayList<Command>();
+            for( int i = 0; i < r.getMembersCount(); i++ ) {
+                RelationMember m = r.getMember(i);
+                if( selected.contains(m.getMember()) ) {
+                    if( !role.equals(m.getRole()) ) {
+//                        r.setMember(i, new RelationMember(role, m.getMember()));
+                        commands.add(new ChangeRelationMemberRoleCommand(r, i, role));
+                    }
+                }
+            }
+            if( !commands.isEmpty() ) {
+//                Main.main.undoRedo.add(new ChangeCommand(chosenRelation.get(), r));
+                Main.main.undoRedo.add(new SequenceCommand(tr("Change relation member roles to {0}", role), commands));
+            }
+        }
+    }
+
+    private static class RelationTableModel extends DefaultTableModel {
+        @Override
+        public boolean isCellEditable(int row, int column) {
+            return false;
+        }
+
+        @Override
+        public Class<?> getColumnClass(int columnIndex) {
+            return columnIndex == 0 ? Relation.class : String.class;
+        }
+    }
+
+    private class MultipolygonSettingsAction extends AbstractAction {
+        public MultipolygonSettingsAction() {
+            super();
+            putValue(SMALL_ICON, ImageProvider.get("svpRight"));
+            putValue(SHORT_DESCRIPTION, tr("Change multipolygon creation settings"));
+        }
+
+        public void actionPerformed( ActionEvent e ) {
+            Component c = e.getSource() instanceof Component ? (Component)e.getSource() : Main.parent;
+            Point p = getMousePosition();
+            multiPopupMenu.show(c, 0, 0);
+        }
+    }
+
+    private class MultipolygonSettingsPopup extends JPopupMenu implements ActionListener {
+        public MultipolygonSettingsPopup() {
+            super();
+            addMenuItem("boundary", tr("Create administrative boundary relations"));
+            addMenuItem("boundaryways", tr("Add tags boundary and admin_level to boundary relation ways"));
+            addMenuItem("tags", tr("Move area tags from contour to relation"));
+        }
+
+        protected final JCheckBoxMenuItem addMenuItem( String property, String title ) {
+            String fullProperty = PREF_PREFIX + ".multipolygon." + property;
+            JCheckBoxMenuItem item = new JCheckBoxMenuItem(tr(title));
+            item.setSelected(Main.pref.getBoolean(fullProperty, CreateMultipolygonAction.getDefaultPropertyValue(property)));
+            item.setActionCommand(fullProperty);
+            item.addActionListener(this);
+            add(item);
+            return item;
+        }
+
+        public void actionPerformed( ActionEvent e ) {
+            String property = e.getActionCommand();
+            if( property != null && property.length() > 0 && e.getSource() instanceof JCheckBoxMenuItem ) {
+                boolean value = ((JCheckBoxMenuItem)e.getSource()).isSelected();
+                Main.pref.put(property, value);
+                show(getInvoker(), getX(), getY());
+            }
+        }
+    }
+
+    private class EnterRoleAction extends JosmAction implements ChosenRelationListener {
+
+        public EnterRoleAction() {
+            super("…", null, tr("Enter role for selected members"),
+                    Shortcut.registerShortcut("reltoolbox:changerole", tr("Relation Toolbox: {0}", tr("Enter role for selected members")),
+                    KeyEvent.VK_R, Shortcut.GROUP_EDIT, Shortcut.SHIFT_DEFAULT), true);
+            chosenRelation.addChosenRelationListener(this);
+            updateEnabledState();
+        }
+
+        public void actionPerformed( ActionEvent e ) {
+            if( roleBoxModel.membersRole != null ) {
+                String role = askForRoleName();
+                if( role != null )
+                    applyRoleToSelection(role);
+            }
+        }
+
+        public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+            setEnabled(newRelation != null);
+        }
+    }
+
+    private class RoleComboBoxModel extends AbstractListModel implements ComboBoxModel {
+        private List<String> roles = new ArrayList<String>();
+        private int selectedIndex = -1;
+        private JComboBox combobox;
+        private String membersRole;
+        private final String EMPTY_ROLE = tr("<empty>");
+        private final String ANOTHER_ROLE = tr("another...");
+
+        public RoleComboBoxModel( JComboBox combobox ) {
+            super();
+            this.combobox = combobox;
+            update();
+        }
+
+        public void update() {
+            membersRole = getSelectedMembersRoleIntl();
+            if( membersRole == null ) {
+                if( combobox.isEnabled() )
+                    combobox.setEnabled(false);
+                return;
+            }
+            if( !combobox.isEnabled() )
+                combobox.setEnabled(true);
+
+            List<String> items = new ArrayList<String>();
+            if( chosenRelation != null && chosenRelation.get() != null ) {
+                if( chosenRelation.isMultipolygon() ) {
+                    items.add("outer");
+                    items.add("inner");
+                }
+                if( chosenRelation.get().get("type") != null ) {
+                    List<String> values = possibleRoles.get(chosenRelation.get().get("type"));
+                    if( values != null )
+                        items.addAll(values);
+                }
+                for( RelationMember m : chosenRelation.get().getMembers() )
+                    if( m.getRole().length() > 0 && !items.contains(m.getRole()) )
+                        items.add(m.getRole());
+            }
+            items.add(EMPTY_ROLE);
+            if( !items.contains(membersRole) )
+                items.add(0, membersRole);
+            items.add(ANOTHER_ROLE);
+            roles = Collections.unmodifiableList(items);
+
+            if( membersRole != null )
+                setSelectedItem(membersRole);
+            else
+                fireContentsChanged(this, -1, -1);
+            combobox.repaint();
+        }
+
+        public String getSelectedMembersRole() {
+            return membersRole == EMPTY_ROLE ? "" : membersRole;
+        }
+
+        public boolean isAnotherRoleSelected() {
+            return getSelectedRole() != null && getSelectedRole().equals(ANOTHER_ROLE);
+        }
+
+        private String getSelectedMembersRoleIntl() {
+            String role = null;
+            if( chosenRelation != null && chosenRelation.get() != null && Main.main.getCurrentDataSet() != null && !Main.main.getCurrentDataSet().selectionEmpty() ) {
+                Collection<OsmPrimitive> selected = Main.main.getCurrentDataSet().getSelected();
+                for( RelationMember m : chosenRelation.get().getMembers() ) {
+                    if( selected.contains(m.getMember()) ) {
+                        if( role == null )
+                            role = m.getRole();
+                        else if( m.getRole() != null && !role.equals(m.getRole()) ) {
+                            role = tr("<different>");
+                            break;
+                        }
+                    }
+                }
+            }
+            return role == null ? null : role.length() == 0 ? EMPTY_ROLE : role;
+        }
+
+        public List<String> getRoles() {
+            return roles;
+        }
+
+        public int getSize() {
+            return roles.size();
+        }
+
+        public Object getElementAt( int index ) {
+            return getRole(index);
+        }
+
+        public String getRole( int index ) {
+            return roles.get(index);
+        }
+
+        public void setSelectedItem( Object anItem ) {
+            int newIndex = anItem == null ? -1 : roles.indexOf(anItem);
+            if( newIndex != selectedIndex ) {
+                selectedIndex = newIndex;
+                fireContentsChanged(this, -1, -1);
+            }
+        }
+
+        public Object getSelectedItem() {
+            return selectedIndex < 0 || selectedIndex >= getSize() ? null : getRole(selectedIndex);
+        }
+
+        public String getSelectedRole() {
+            String role = selectedIndex < 0 || selectedIndex >= getSize() ? null : getRole(selectedIndex);
+            return role != null && role.equals(EMPTY_ROLE) ? "" : role;
+        }
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextPlugin.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextPlugin.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/RelContextPlugin.java	(revision 26174)
@@ -0,0 +1,21 @@
+package relcontext;
+
+import org.openstreetmap.josm.gui.MapFrame;
+import org.openstreetmap.josm.plugins.Plugin;
+import org.openstreetmap.josm.plugins.PluginInformation;
+
+public class RelContextPlugin extends Plugin {
+    private RelContextDialog dialog;
+
+    public RelContextPlugin( PluginInformation info ) {
+        super(info);
+    }
+
+    @Override
+    public void mapFrameInitialized( MapFrame oldFrame, MapFrame newFrame ) {
+        if( oldFrame == null && newFrame != null ) {
+            dialog = new RelContextDialog();
+            newFrame.addToggleDialog(dialog);
+        }
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/StaticChosenRelation.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/StaticChosenRelation.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/StaticChosenRelation.java	(revision 26174)
@@ -0,0 +1,21 @@
+package relcontext;
+
+import org.openstreetmap.josm.data.osm.Relation;
+
+/**
+ * A chosen relation that is only a container for one relation and does not listen to anything.
+ *
+ * @author Zverik
+ */
+public class StaticChosenRelation extends ChosenRelation {
+
+    public StaticChosenRelation( Relation rel ) {
+        chosenRelation = rel;
+        analyse();
+    }
+
+    @Override
+    public void set( Relation rel ) {
+//        throw new UnsupportedOperationException("Changing static relation is not supported.");
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/AddRemoveMemberAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/AddRemoveMemberAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/AddRemoveMemberAction.java	(revision 26174)
@@ -0,0 +1,154 @@
+package relcontext.actions;
+
+import java.util.*;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import java.awt.event.KeyEvent;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.JosmAction;
+import org.openstreetmap.josm.command.ChangeCommand;
+import org.openstreetmap.josm.command.Command;
+import org.openstreetmap.josm.data.osm.Node;
+import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.data.osm.RelationMember;
+import org.openstreetmap.josm.data.osm.Way;
+import org.openstreetmap.josm.tools.ImageProvider;
+import org.openstreetmap.josm.tools.Shortcut;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+/**
+ * An action to add or remove (or both) member(s) from the chosen relation.
+ * In time should be able to determine correct position for new members.
+ * Also, there should be some support for entering a role for new members.
+ *
+ * @author Zverik
+ */
+public class AddRemoveMemberAction extends JosmAction implements ChosenRelationListener {
+    private static final String ACTION_NAME = "Add/remove member";
+    private ChosenRelation rel;
+
+    public AddRemoveMemberAction( ChosenRelation rel ) {
+        super(null, "relcontext/addremove", tr("Add/remove members from the chosen relation"),
+                Shortcut.registerShortcut("reltoolbox:addremove", tr("Relation Toolbox: {0}", tr("Add/remove members from the chosen relation")),
+                KeyEvent.VK_EQUALS, Shortcut.GROUP_EDIT), true);
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        updateEnabledState();
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        if( rel.get() == null )
+            return;
+
+        Relation r = new Relation(rel.get());
+
+        Collection<OsmPrimitive> toAdd = new ArrayList<OsmPrimitive>(getCurrentDataSet().getSelected());
+        toAdd.remove(rel.get());
+        toAdd.removeAll(r.getMemberPrimitives());
+
+        // 0. check if relation is broken (temporary)
+        boolean isBroken = !toAdd.isEmpty() && SortAndFixAction.needsFixing(r);
+
+        // 1. remove all present members
+        r.removeMembersFor(getCurrentDataSet().getSelected());
+
+        // 2. add all new members
+        for( OsmPrimitive p : toAdd ) {
+            int pos = -1; //p instanceof Way ? findAdjacentMember(p, r) : -1;
+            if( pos < 0 )
+                r.addMember(new RelationMember("", p));
+            else
+                r.addMember(pos, new RelationMember("", p));
+        }
+
+        // 3. check for roles again (temporary)
+        Command roleFix = !isBroken && SortAndFixAction.needsFixing(r) ? SortAndFixAction.fixRelation(r) : null;
+        if( roleFix != null )
+            roleFix.executeCommand();
+
+        if( !r.getMemberPrimitives().equals(rel.get().getMemberPrimitives()) )
+            Main.main.undoRedo.add(new ChangeCommand(rel.get(), r));
+    }
+
+    /**
+     * Finds two relation members between which to place given way. Incomplete.
+     * @see org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel#determineDirection
+     */
+    protected int findAdjacentMember( Way w, Relation r ) {
+        Node firstNode = w.firstNode();
+        Node lastNode = w.lastNode();
+
+        if( firstNode != null && !firstNode.equals(lastNode) ) {
+            for( int i = 0; i < r.getMembersCount(); i++ ) {
+                if( r.getMember(i).getType().equals(OsmPrimitiveType.WAY) ) {
+                    Way rw = (Way)r.getMember(i).getMember();
+                    Node firstNodeR = rw.firstNode();
+                    Node lastNodeR = rw.lastNode();
+                    if( firstNode.equals(firstNodeR) || firstNode.equals(lastNodeR) || lastNode.equals(firstNodeR) || lastNode.equals(lastNodeR) )
+                        return i + 1;
+                }
+            }
+        }
+        return -1;
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        updateEnabledState();
+    }
+
+    @Override
+    protected void updateEnabledState() {
+        updateEnabledState(getCurrentDataSet() == null ? null : getCurrentDataSet().getSelected());
+    }
+
+    @Override
+    protected void updateEnabledState( Collection<? extends OsmPrimitive> selection ) {
+        updateIcon();
+        if( rel == null || rel.get() == null || selection == null || selection.isEmpty() ) {
+            setEnabled(false);
+            return;
+        }
+        if( selection.size() == 1 && selection.contains(rel.get()) ) {
+            setEnabled(false);
+            return;
+        }
+        setEnabled(true);
+    }
+
+    protected void updateIcon() {
+        // todo: change icon based on selection
+        int state = 0; // 0=unknown, 1=add, 2=remove, 3=both
+        if( getCurrentDataSet() == null || getCurrentDataSet().getSelected() == null
+                || getCurrentDataSet().getSelected().isEmpty() || rel == null || rel.get() == null )
+            state = 0;
+        else {
+            Collection<OsmPrimitive> toAdd = new ArrayList<OsmPrimitive>(getCurrentDataSet().getSelected());
+            toAdd.remove(rel.get());
+            int selectedSize = toAdd.size();
+            if( selectedSize == 0 )
+                state = 0;
+            else {
+                toAdd.removeAll(rel.get().getMemberPrimitives());
+                if( toAdd.isEmpty() )
+                    state = 2;
+                else if( toAdd.size() < selectedSize )
+                    state = 3;
+                else
+                    state = 1;
+            }
+        }
+//        String name = state == 0 ? "?" : state == 1 ? "+" : state == 2 ? "-" : "±";
+//        putValue(Action.NAME, name);
+        if( state == 0 ) {
+//            putValue(NAME, "?");
+            putValue(SMALL_ICON, ImageProvider.get("relcontext", "addremove"));
+        } else {
+            String iconName = state == 1 ? "add" : state == 2 ? "remove" : "addremove";
+            putValue(NAME, null);
+            putValue(SMALL_ICON, ImageProvider.get("relcontext", iconName));
+        }
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ClearChosenRelationAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ClearChosenRelationAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/ClearChosenRelationAction.java	(revision 26174)
@@ -0,0 +1,32 @@
+package relcontext.actions;
+
+import java.awt.event.ActionEvent;
+import javax.swing.AbstractAction;
+import javax.swing.Action;
+import static org.openstreetmap.josm.tools.I18n.tr;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.tools.ImageProvider;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+public class ClearChosenRelationAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public ClearChosenRelationAction( ChosenRelation rel ) {
+        super();
+//        putValue(Action.NAME, "X");
+        putValue(Action.SMALL_ICON, ImageProvider.get("relcontext", "clear"));
+        putValue(Action.SHORT_DESCRIPTION, tr("Clear the chosen relation"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(false);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        rel.clear();
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setEnabled(newRelation != null);
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateMultipolygonAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateMultipolygonAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateMultipolygonAction.java	(revision 26174)
@@ -0,0 +1,372 @@
+package relcontext.actions;
+
+import java.awt.Dialog.ModalityType;
+import java.awt.GridBagLayout;
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.KeyEvent;
+import java.util.*;
+import javax.swing.*;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.JosmAction;
+import org.openstreetmap.josm.command.*;
+import org.openstreetmap.josm.data.osm.*;
+import org.openstreetmap.josm.tools.GBC;
+import org.openstreetmap.josm.tools.Shortcut;
+import relcontext.ChosenRelation;
+
+/**
+ * Creates new multipolygon from selected ways.
+ * Choose relation afterwards.
+ *
+ * @author Zverik
+ */
+public class CreateMultipolygonAction extends JosmAction {
+    private static final String ACTION_NAME = "Create relation";
+    private static final String PREF_MULTIPOLY = "reltoolbox.multipolygon.";
+    protected ChosenRelation chRel;
+
+    public CreateMultipolygonAction( ChosenRelation chRel ) {
+        super("Multi", "data/multipolygon", tr("Create a multipolygon from selected objects"),
+                Shortcut.registerShortcut("reltoolbox:multipolygon", tr("Relation Toolbox: {0}", tr("Create multipolygon")),
+                KeyEvent.VK_B, Shortcut.GROUP_HOTKEY), true);
+        this.chRel = chRel;
+        updateEnabledState();
+    }
+
+    public CreateMultipolygonAction() {
+        this(null);
+    }
+    
+    public static boolean getDefaultPropertyValue( String property ) {
+        if( property.equals("boundary") ) return false;
+        else if( property.equals("boundaryways") ) return true;
+        else if( property.equals("tags") ) return true;
+        else if( property.equals("single") ) return true;
+        throw new IllegalArgumentException(property);
+    }
+
+    private boolean getPref( String property ) {
+        return Main.pref.getBoolean(PREF_MULTIPOLY + property, getDefaultPropertyValue(property));
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        // for now, just copying standard action
+        MultipolygonCreate mpc = new MultipolygonCreate();
+        String error = mpc.makeFromWays(getCurrentDataSet().getSelectedWays());
+        if( error != null ) {
+            JOptionPane.showMessageDialog(Main.parent, error);
+            return;
+        }
+        Relation rel = new Relation();
+        boolean isBoundary = getPref("boundary");
+        if( isBoundary ) {
+            rel.put("type", "boundary");
+            rel.put("boundary", "administrative");
+        } else
+            rel.put("type", "multipolygon");
+        for( MultipolygonCreate.JoinedPolygon poly : mpc.outerWays )
+            for( Way w : poly.ways )
+                rel.addMember(new RelationMember("outer", w));
+        for( MultipolygonCreate.JoinedPolygon poly : mpc.innerWays )
+            for( Way w : poly.ways )
+                rel.addMember(new RelationMember("inner", w));
+        List<Command> list = removeTagsFromInnerWays(rel);
+        if( isBoundary ) {
+            if( !askForAdminLevelAndName(rel) )
+                return;
+            addBoundaryMembers(rel);
+            if( getPref("boundaryways") )
+                list.addAll(fixWayTagsForBoundary(rel));
+        }
+        list.add(new AddCommand(rel));
+        Main.main.undoRedo.add(new SequenceCommand(tr("Create multipolygon"), list));
+        
+        if( chRel != null )
+            chRel.set(rel);
+
+        getCurrentDataSet().setSelected(rel);
+    }
+
+    @Override
+    protected void updateEnabledState() {
+        if( getCurrentDataSet() == null ) {
+            setEnabled(false);
+        } else {
+            updateEnabledState(getCurrentDataSet().getSelected());
+        }
+    }
+
+    @Override
+    protected void updateEnabledState( Collection<? extends OsmPrimitive> selection ) {
+        boolean enabled = true;
+        if( selection == null || selection.isEmpty() )
+            enabled = false;
+        else {
+            if( !getPref("boundary") ) {
+                for( OsmPrimitive p : selection ) {
+                    if( !(p instanceof Way) ) {
+                        enabled = false;
+                        break;
+                    }
+                }
+            }
+        }
+        setEnabled(enabled);
+    }
+
+    /**
+     * Add selected nodes and relations with corresponding roles.
+     */
+    private void addBoundaryMembers( Relation rel ) {
+        for( OsmPrimitive p : getCurrentDataSet().getSelected() ) {
+            String role = null;
+            if( p.getType().equals(OsmPrimitiveType.RELATION) ) {
+                role = "subarea";
+            } else if( p.getType().equals(OsmPrimitiveType.NODE) ) {
+                Node n = (Node)p;
+                if( !n.isIncomplete() ) {
+                    if( n.hasKey("place") )
+                        role = "admin_centre";
+                    else
+                        role = "label";
+                }
+            }
+            if( role != null )
+                rel.addMember(new RelationMember(role, p));
+        }
+    }
+
+    /**
+     * For all untagged ways in relation, add tags boundary and admin_level.
+     */
+    private List<Command> fixWayTagsForBoundary( Relation rel ) {
+        List<Command> commands = new ArrayList<Command>();
+        if( !rel.hasKey("boundary") || !rel.hasKey("admin_level") )
+            return commands;
+        String adminLevelStr = rel.get("admin_level");
+        int adminLevel = 0;
+        try {
+            adminLevel = Integer.parseInt(adminLevelStr);
+        } catch( NumberFormatException e ) {
+            return commands;
+        }
+        Set<OsmPrimitive> waysBoundary = new HashSet<OsmPrimitive>();
+        Set<OsmPrimitive> waysAdminLevel = new HashSet<OsmPrimitive>();
+        for( OsmPrimitive p : rel.getMemberPrimitives() ) {
+            if( p instanceof Way ) {
+                int count = 0;
+                if( p.hasKey("boundary") && p.get("boundary").equals("administrative") )
+                    count++;
+                if( p.hasKey("admin_level") )
+                    count++;
+                if( p.keySet().size() - count == 0 ) {
+                    if( !p.hasKey("boundary") )
+                        waysBoundary.add(p);
+                    if( !p.hasKey("admin_level") ) {
+                        waysAdminLevel.add(p);
+                    } else {
+                        try {
+                            int oldAdminLevel = Integer.parseInt(p.get("admin_level"));
+                            if( oldAdminLevel > adminLevel )
+                                waysAdminLevel.add(p);
+                        } catch( NumberFormatException e ) {
+                            waysAdminLevel.add(p); // some garbage, replace it
+                        }
+                    }
+                }
+            }
+        }
+        if( !waysBoundary.isEmpty() )
+            commands.add(new ChangePropertyCommand(waysBoundary, "boundary", "administrative"));
+        if( !waysAdminLevel.isEmpty() )
+            commands.add(new ChangePropertyCommand(waysAdminLevel, "admin_level", adminLevelStr));
+        return commands;
+    }
+
+    static public final String[] DEFAULT_LINEAR_TAGS = {"barrier", "source"};
+
+    private static final Set<String> REMOVE_FROM_BOUNDARY_TAGS = new TreeSet<String>(Arrays.asList(new String[] {
+        "boundary", "boundary_type", "type", "admin_level"
+    }));
+
+    /**
+     * This method removes tags/value pairs from inner ways that are present in relation or outer ways.
+     * It was copypasted from the standard {@link org.openstreetmap.josm.actions.CreateMultipolygonAction}.
+     * Todo: rewrite it.
+     */
+    private List<Command> removeTagsFromInnerWays(Relation relation) {
+        Map<String, String> values = new HashMap<String, String>();
+
+        if (relation.hasKeys()){
+            for(String key: relation.keySet()) {
+                values.put(key, relation.get(key));
+            }
+        }
+
+        List<Way> innerWays = new ArrayList<Way>();
+        List<Way> outerWays = new ArrayList<Way>();
+
+        Set<String> conflictingKeys = new TreeSet<String>();
+
+        for (RelationMember m: relation.getMembers()) {
+
+            if (m.hasRole() && m.getRole() == "inner" && m.isWay() && m.getWay().hasKeys()) {
+                innerWays.add(m.getWay());
+            }
+
+            if (m.hasRole() && m.getRole() == "outer" && m.isWay() && m.getWay().hasKeys()) {
+                Way way = m.getWay();
+                outerWays.add(way);
+                for (String key: way.keySet()) {
+                    if (!values.containsKey(key)) { //relation values take precedence
+                        values.put(key, way.get(key));
+                    } else if( !relation.hasKey(key) && !values.get(key).equals(way.get(key)) ) {
+                        conflictingKeys.add(key);
+                    }
+                }
+            }
+        }
+
+        // filter out empty key conflicts - we need second iteration
+        for( RelationMember m: relation.getMembers() )
+            if( m.hasRole() && m.getRole().equals("outer") && m.isWay() )
+                for( String key : values.keySet() )
+                    if( !m.getWay().hasKey(key) && !relation.hasKey(key) )
+                        conflictingKeys.add(key);
+
+        for( String key : conflictingKeys )
+            values.remove(key);
+
+        for( String linearTag : Main.pref.getCollection(PREF_MULTIPOLY + "lineartags", Arrays.asList(DEFAULT_LINEAR_TAGS)))
+            values.remove(linearTag);
+
+        if( values.containsKey("natural") && values.get("natural").equals("coastline") )
+            values.remove("natural");
+
+        boolean isBoundary = getPref("boundary");
+        String name = values.get("name");
+        String adminLevel = values.get("admin_level");
+        if( isBoundary ) {
+            Set<String> keySet = new TreeSet<String>(values.keySet());
+            for( String key : keySet )
+                if( !REMOVE_FROM_BOUNDARY_TAGS.contains(key) )
+                    values.remove(key);
+        }
+
+        values.put("area", "yes");
+
+        List<Command> commands = new ArrayList<Command>();
+        boolean moveTags = getPref("tags");
+
+        for(String key: values.keySet()) {
+            List<OsmPrimitive> affectedWays = new ArrayList<OsmPrimitive>();
+            String value = values.get(key);
+
+            for (Way way: innerWays) {
+                if( way.hasKey(key) && (isBoundary || value.equals(way.get(key))) ) {
+                    affectedWays.add(way);
+                }
+            }
+
+            if( moveTags ) {
+                // remove duplicated tags from outer ways
+                for (Way way: outerWays) {
+                    if (way.hasKey(key)) {
+                        affectedWays.add(way);
+                    }
+                }
+            }
+
+            if (affectedWays.size() > 0) {
+                commands.add(new ChangePropertyCommand(affectedWays, key, null));
+            }
+        }
+
+        if( moveTags ) {
+            // add those tag values to the relation
+            if( isBoundary )
+                values.put("name", name);
+            boolean fixed = false;
+            Relation r2 = new Relation(relation);
+            for( String key : values.keySet() ) {
+                if( !r2.hasKey(key) && !key.equals("area")
+                        && (!isBoundary || key.equals("admin_level") || key.equals("name"))) {
+                    if( relation.isNew() )
+                        relation.put(key, values.get(key));
+                    else
+                        r2.put(key, values.get(key));
+                    fixed = true;
+                }
+            }
+            if( fixed && !relation.isNew() )
+                commands.add(new ChangeCommand(relation, r2));
+        }
+
+        return commands;
+    }
+
+    /**
+     *
+     * @param rel
+     * @return false if user pressed "cancel".
+     */
+    private boolean askForAdminLevelAndName( Relation rel ) {
+        String relAL = rel.get("admin_level");
+        String relName = rel.get("name");
+        if( relAL != null && relName != null )
+            return true;
+
+        JPanel panel = new JPanel(new GridBagLayout());
+        panel.add(new JLabel(tr("Enter admin level and name for the border relation:")), GBC.eol().insets(0, 0, 0, 5));
+
+        final JTextField admin = new JTextField();
+        admin.setText(relAL != null ? relAL : Main.pref.get(PREF_MULTIPOLY + "lastadmin", ""));
+        panel.add(new JLabel(tr("Admin level")), GBC.std());
+        panel.add(Box.createHorizontalStrut(10), GBC.std());
+        panel.add(admin, GBC.eol().fill(GBC.HORIZONTAL).insets(0, 0, 0, 5));
+
+        final JTextField name = new JTextField();
+        if( relName != null )
+            name.setText(relName);
+        panel.add(new JLabel(tr("Name")), GBC.std());
+        panel.add(Box.createHorizontalStrut(10), GBC.std());
+        panel.add(name, GBC.eol().fill(GBC.HORIZONTAL));
+
+        final JOptionPane optionPane = new JOptionPane(panel, JOptionPane.QUESTION_MESSAGE, JOptionPane.OK_CANCEL_OPTION) {
+            @Override
+            public void selectInitialValue() {
+                admin.requestFocusInWindow();
+                admin.selectAll();
+            }
+        };
+        final JDialog dlg = optionPane.createDialog(Main.parent, tr("Create a new relation"));
+        dlg.setModalityType(ModalityType.DOCUMENT_MODAL);
+
+        name.addActionListener(new ActionListener() {
+            public void actionPerformed( ActionEvent e ) {
+                dlg.setVisible(false);
+                optionPane.setValue(JOptionPane.OK_OPTION);
+            }
+        });
+
+        dlg.setVisible(true);
+
+        Object answer = optionPane.getValue();
+        if( answer == null || answer == JOptionPane.UNINITIALIZED_VALUE
+                || (answer instanceof Integer && (Integer)answer != JOptionPane.OK_OPTION) ) {
+            return false;
+        }
+
+        String admin_level = admin.getText().trim();
+        String new_name = name.getText().trim();
+        if( admin_level.equals("10") || (admin_level.length() == 1 && Character.isDigit(admin_level.charAt(0))) ) {
+            rel.put("admin_level", admin_level);
+            Main.pref.put(PREF_MULTIPOLY + "lastadmin", admin_level);
+        }
+        if( new_name.length() > 0 )
+            rel.put("name", new_name);
+        return true;
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateRelationAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateRelationAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/CreateRelationAction.java	(revision 26174)
@@ -0,0 +1,131 @@
+package relcontext.actions;
+
+import java.awt.Dialog.ModalityType;
+import java.awt.GridBagLayout;
+import java.util.Collection;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.KeyEvent;
+import java.util.Arrays;
+import java.util.List;
+import javax.swing.Box;
+import javax.swing.JDialog;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.JosmAction;
+import org.openstreetmap.josm.command.AddCommand;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.data.osm.RelationMember;
+import org.openstreetmap.josm.gui.tagging.ac.AutoCompletingComboBox;
+import org.openstreetmap.josm.tools.GBC;
+import org.openstreetmap.josm.tools.Shortcut;
+import relcontext.ChosenRelation;
+
+/**
+ * Simple create relation with no tags and all selected objects in it with no roles.
+ * Choose relation afterwards.
+ *
+ * @author Zverik
+ */
+public class CreateRelationAction extends JosmAction {
+    private static final String PREF_LASTTYPE = "reltoolbox.createrelation.lasttype";
+    protected ChosenRelation chRel;
+
+    public CreateRelationAction( ChosenRelation chRel ) {
+        super(tr("New"), "data/relation", tr("Create a relation from selected objects"),
+                Shortcut.registerShortcut("reltoolbox:create", tr("Relation Toolbox: {0}", tr("Create a new relation")),
+                KeyEvent.VK_C, Shortcut.GROUP_HOTKEY, Shortcut.SHIFT_DEFAULT), true);
+        this.chRel = chRel;
+        updateEnabledState();
+    }
+
+    public CreateRelationAction() {
+        this(null);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        String type = askForType();
+        if( type == null )
+            return;
+
+        Relation rel = new Relation();
+        if( type.length() > 0 )
+            rel.put("type", type);
+        for( OsmPrimitive selected : getCurrentDataSet().getSelected() )
+            rel.addMember(new RelationMember("", selected));
+
+        Main.main.undoRedo.add(new AddCommand(rel));
+
+        if( chRel != null ) {
+            chRel.set(rel);
+        }
+    }
+
+    @Override
+    protected void updateEnabledState() {
+        if( getCurrentDataSet() == null ) {
+            setEnabled(false);
+        } else {
+            updateEnabledState(getCurrentDataSet().getSelected());
+        }
+    }
+
+    @Override
+    protected void updateEnabledState( Collection<? extends OsmPrimitive> selection ) {
+        setEnabled(selection != null && !selection.isEmpty());
+    }
+
+    // Thanks to TagInfo for the list
+    private static final List<String> RELATION_TYPES = Arrays.asList(new String[] {
+        "multipolygon", "boundary", "route", "site", "restriction", "associatedStreet", "public_transport",
+        "street", "collection", "address", "enforcement", "destination_sign", "route_master", "junction",
+        "waterway", "bridge", "tunnel", "surveillance"
+    });
+
+    private String askForType() {
+        JPanel panel = new JPanel(new GridBagLayout());
+        panel.add(new JLabel(tr("Choose a type for the relation:")), GBC.eol().insets(0, 0, 0, 5));
+
+        final AutoCompletingComboBox keys = new AutoCompletingComboBox();
+        keys.setPossibleItems(RELATION_TYPES);
+        keys.setEditable(true);
+        keys.getEditor().setItem(Main.pref.get(PREF_LASTTYPE, "multipolygon"));
+
+        panel.add(new JLabel(tr("Type")), GBC.std());
+        panel.add(Box.createHorizontalStrut(10), GBC.std());
+        panel.add(keys, GBC.eol().fill(GBC.HORIZONTAL));
+
+        final JOptionPane optionPane = new JOptionPane(panel, JOptionPane.QUESTION_MESSAGE, JOptionPane.OK_CANCEL_OPTION) {
+            @Override
+            public void selectInitialValue() {
+                keys.requestFocusInWindow();
+                keys.getEditor().selectAll();
+            }
+        };
+        final JDialog dlg = optionPane.createDialog(Main.parent, tr("Create a new relation"));
+        dlg.setModalityType(ModalityType.DOCUMENT_MODAL);
+
+        keys.getEditor().addActionListener(new ActionListener() {
+            public void actionPerformed( ActionEvent e ) {
+                dlg.setVisible(false);
+                optionPane.setValue(JOptionPane.OK_OPTION);
+            }
+        });
+
+        dlg.setVisible(true);
+
+        Object answer = optionPane.getValue();
+        if( answer == null || answer == JOptionPane.UNINITIALIZED_VALUE
+                || (answer instanceof Integer && (Integer)answer != JOptionPane.OK_OPTION) ) {
+            return null;
+        }
+
+        String result = keys.getEditor().getItem().toString().trim();
+        Main.pref.put(PREF_LASTTYPE, result);
+        return result;
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DeleteChosenRelationAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DeleteChosenRelationAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DeleteChosenRelationAction.java	(revision 26174)
@@ -0,0 +1,33 @@
+package relcontext.actions;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import javax.swing.AbstractAction;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.command.DeleteCommand;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.tools.ImageProvider;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+public class DeleteChosenRelationAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public DeleteChosenRelationAction( ChosenRelation rel ) {
+        super(tr("Delete relation"));
+        putValue(SMALL_ICON, ImageProvider.get("dialogs", "delete"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(rel.get() != null);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        Relation r = rel.get();
+        rel.clear();
+        Main.main.undoRedo.add(new DeleteCommand(r));
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setEnabled(newRelation != null);
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadChosenRelationAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadChosenRelationAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadChosenRelationAction.java	(revision 26174)
@@ -0,0 +1,75 @@
+package relcontext.actions;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Set;
+import javax.swing.AbstractAction;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.data.osm.RelationMember;
+import org.openstreetmap.josm.gui.dialogs.relation.DownloadRelationMemberTask;
+import org.openstreetmap.josm.gui.dialogs.relation.DownloadRelationTask;
+import org.openstreetmap.josm.tools.ImageProvider;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+/**
+ * Downloads or updates chosen relation members, depending on completeness.
+ * 
+ * @author Zverik
+ */
+public class DownloadChosenRelationAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public DownloadChosenRelationAction( ChosenRelation rel ) {
+        super();
+//        putValue(NAME, "D");
+        putValue(SMALL_ICON, ImageProvider.get("relcontext", "download"));
+        putValue(SHORT_DESCRIPTION, tr("Download incomplete members for the chosen relation"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(false);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        Relation relation = rel.get();
+        if( relation == null || relation.isNew() ) return;
+        int total = relation.getMembersCount();
+        int incomplete = relation.getIncompleteMembers().size();
+//        if( incomplete <= 5 || (incomplete <= 10 && incomplete * 3 < total) )
+        if( incomplete <= 10 && incomplete * 3 < total )
+            downloadIncomplete(relation);
+        else
+            downloadMembers(relation);
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        boolean incomplete = false;
+        if( newRelation != null ) {
+            for( RelationMember m : newRelation.getMembers()) {
+                if( m.getMember().isIncomplete() ) {
+                    incomplete = true;
+                    break;
+                }
+            }
+        }
+        setEnabled(newRelation != null && incomplete);
+    }
+
+    protected void downloadMembers( Relation rel ) {
+        if( !rel.isNew() ) {
+            Main.worker.submit(new DownloadRelationTask(Collections.singletonList(rel), Main.map.mapView.getEditLayer()));
+        }
+    }
+
+    protected void downloadIncomplete( Relation rel ) {
+        if( rel.isNew() ) return;
+        Set<OsmPrimitive> ret = new HashSet<OsmPrimitive>();
+        ret.addAll(rel.getIncompleteMembers());
+        if( ret.isEmpty() ) return;
+        Main.worker.submit(new DownloadRelationMemberTask(Collections.singletonList(rel), ret, Main.map.mapView.getEditLayer()));
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadParentsAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadParentsAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/DownloadParentsAction.java	(revision 26174)
@@ -0,0 +1,65 @@
+package relcontext.actions;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import javax.swing.AbstractAction;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.downloadtasks.DownloadReferrersTask;
+import org.openstreetmap.josm.data.osm.OsmPrimitive;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.data.osm.RelationMember;
+import org.openstreetmap.josm.gui.dialogs.relation.DownloadRelationMemberTask;
+import org.openstreetmap.josm.gui.dialogs.relation.DownloadRelationTask;
+import org.openstreetmap.josm.tools.ImageProvider;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+/**
+ * Downloads parent relations for this relation and all parent objects for its members.
+ * 
+ * @author Zverik
+ */
+public class DownloadParentsAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public DownloadParentsAction( ChosenRelation rel ) {
+        super(tr("Download referrers"));
+        putValue(SMALL_ICON, ImageProvider.get("downloadreferrers"));
+        putValue(SHORT_DESCRIPTION, tr("Download referrers for the the chosen relation and its members"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(rel.get() != null && Main.map.mapView.getEditLayer() != null);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        Relation relation = rel.get();
+        if( relation == null ) return;
+        List<OsmPrimitive> objects = new ArrayList<OsmPrimitive>();
+        objects.add(relation);
+        objects.addAll(relation.getMemberPrimitives());
+        Main.worker.submit(new DownloadReferrersTask(Main.map.mapView.getEditLayer(), objects));
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setEnabled(newRelation != null && Main.map.mapView.getEditLayer() != null);
+    }
+
+    protected void downloadMembers( Relation rel ) {
+        if( !rel.isNew() ) {
+            Main.worker.submit(new DownloadRelationTask(Collections.singletonList(rel), Main.map.mapView.getEditLayer()));
+        }
+    }
+
+    protected void downloadIncomplete( Relation rel ) {
+        if( rel.isNew() ) return;
+        Set<OsmPrimitive> ret = new HashSet<OsmPrimitive>();
+        ret.addAll(rel.getIncompleteMembers());
+        if( ret.isEmpty() ) return;
+        Main.worker.submit(new DownloadRelationMemberTask(Collections.singletonList(rel), ret, Main.map.mapView.getEditLayer()));
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/EditChosenRelationAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/EditChosenRelationAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/EditChosenRelationAction.java	(revision 26174)
@@ -0,0 +1,40 @@
+package relcontext.actions;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import javax.swing.AbstractAction;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.gui.dialogs.relation.RelationEditor;
+import org.openstreetmap.josm.tools.ImageProvider;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+/**
+ * Opens an editor for chosen relation.
+ * 
+ * @author Zverik
+ */
+public class EditChosenRelationAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public EditChosenRelationAction( ChosenRelation rel ) {
+        super();
+//        putValue(NAME, "E");
+        putValue(SMALL_ICON, ImageProvider.get("dialogs/mappaint", "pencil"));
+        putValue(SHORT_DESCRIPTION, tr("Open relation editor for the chosen relation"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(rel.get() != null);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        Relation relation = rel.get();
+        if( relation == null ) return;
+        RelationEditor.getEditor(Main.map.mapView.getEditLayer(), relation, null).setVisible(true);
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setEnabled(newRelation != null);
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/FindRelationAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/FindRelationAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/FindRelationAction.java	(revision 26174)
@@ -0,0 +1,223 @@
+package relcontext.actions;
+
+import java.awt.BorderLayout;
+import java.awt.Dialog.ModalityType;
+import java.awt.Dimension;
+import java.awt.event.*;
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.util.*;
+import java.util.ArrayList;
+import javax.swing.*;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.JosmAction;
+import org.openstreetmap.josm.data.osm.NameFormatter;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.gui.DefaultNameFormatter;
+import org.openstreetmap.josm.gui.OsmPrimitivRenderer;
+import org.openstreetmap.josm.tools.Shortcut;
+import relcontext.ChosenRelation;
+
+/**
+ * Opens a list of all relations with keyword search field. Choose selected relation.
+ *
+ * @author Zverik
+ */
+public class FindRelationAction extends JosmAction {
+    protected ChosenRelation chRel;
+
+    public FindRelationAction( ChosenRelation chRel ) {
+        super("Find", "relcontext/find", tr("Find a relation"),
+                Shortcut.registerShortcut("reltoolbox:find", tr("Relation Toolbox: {0}", tr("Find a relation")),
+                KeyEvent.VK_F, Shortcut.GROUP_HOTKEY), true);
+        this.chRel = chRel;
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        JPanel panel = new JPanel(new BorderLayout());
+        final JTextField searchField = new JTextField();
+        panel.add(searchField, BorderLayout.NORTH);
+        final FindRelationListModel relationsData = new FindRelationListModel();
+        final JList relationsList = new JList(relationsData);
+        relationsList.setSelectionModel(relationsData.getSelectionModel());
+        relationsList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
+        relationsList.setCellRenderer(new OsmPrimitivRenderer());
+        panel.add(new JScrollPane(relationsList, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER), BorderLayout.CENTER);
+        panel.setPreferredSize(new Dimension(400, 400));
+
+        final JOptionPane optionPane = new JOptionPane(panel, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION) {
+            @Override
+            public void selectInitialValue() {
+                searchField.requestFocusInWindow();
+            }
+        };
+        final JDialog dlg = optionPane.createDialog(Main.parent, tr("Find a relation"));
+        dlg.setModalityType(ModalityType.DOCUMENT_MODAL);
+
+        relationsList.addMouseListener(new MouseAdapter() {
+            @Override
+            public void mouseClicked( MouseEvent e ) {
+                if( e.getClickCount() >= 2 && !relationsList.isSelectionEmpty() ) {
+                    dlg.setVisible(false);
+                    optionPane.setValue(JOptionPane.OK_OPTION);
+                }
+            }
+        });
+
+        searchField.addActionListener(new ActionListener() {
+            public void actionPerformed( ActionEvent e ) {
+                if( !relationsList.isSelectionEmpty() ) {
+                    dlg.setVisible(false);
+                    optionPane.setValue(JOptionPane.OK_OPTION);
+                }
+            }
+        });
+
+        searchField.addKeyListener(new KeyAdapter() {
+            @Override
+            public void keyTyped( KeyEvent e ) {
+                SwingUtilities.invokeLater(new Runnable() {
+                    public void run() {
+                        updateRelationData(relationsData, searchField.getText());
+                    }
+                });
+            }
+
+            @Override
+            public void keyPressed( KeyEvent e ) {
+                if( shouldForward(e) )
+                    relationsList.dispatchEvent(e);
+            }
+
+            @Override
+            public void keyReleased( KeyEvent e ) {
+                if( shouldForward(e) )
+                    relationsList.dispatchEvent(e);
+            }
+
+            private boolean shouldForward( KeyEvent e ) {
+                return e.getKeyCode() == KeyEvent.VK_UP || e.getKeyCode() == KeyEvent.VK_DOWN
+                        || e.getKeyCode() == KeyEvent.VK_PAGE_DOWN || e.getKeyCode() == KeyEvent.VK_PAGE_UP
+                        || e.getKeyCode() == KeyEvent.VK_HOME || e.getKeyCode() == KeyEvent.VK_END;
+            }
+        });
+
+        updateRelationData(relationsData, null);
+        dlg.setVisible(true);
+
+        Object answer = optionPane.getValue();
+        if( answer == null || answer == JOptionPane.UNINITIALIZED_VALUE
+                || (answer instanceof Integer && (Integer)answer != JOptionPane.OK_OPTION) ) {
+            return;
+        }
+
+        Relation r = (Relation)relationsList.getSelectedValue();
+        if( r != null )
+            chRel.set(r);
+    }
+
+    @Override
+    protected void updateEnabledState() {
+        setEnabled(getCurrentDataSet() != null);
+    }
+
+    protected void updateRelationData( FindRelationListModel data, String filter ) {
+        String[] keywords = filter == null ? new String[0] : filter.split("\\s+");
+        if( keywords.length > 0 ) {
+            List<String> filteredKeywords = new ArrayList<String>(keywords.length);
+            for( String s : keywords )
+                if( s.length() > 0 )
+                    filteredKeywords.add(s.trim().toLowerCase());
+            keywords = filteredKeywords.toArray(new String[0]);
+        }
+
+        System.out.println("keywords.length = " + keywords.length);
+        for( int i = 0; i < keywords.length; i++ )
+            System.out.println("keyword["+i+"] = " + keywords[i]);
+
+        List<Relation> relations = new ArrayList<Relation>();
+        if( getEditLayer() != null ) {
+            for( Relation r : getEditLayer().data.getRelations() ) {
+                if( !r.isDeleted() && r.isVisible() && !r.isIncomplete() ) {
+                    boolean add = true;
+                    for( int i = 0; i < keywords.length && add; i++ ) {
+                        boolean ok = false;
+                        if( String.valueOf(r.getPrimitiveId().getUniqueId()).contains(keywords[i]) )
+                            ok = true;
+                        else {
+                            for( String key : r.keySet() ) {
+                                if( key.contains(keywords[i]) || r.get(key).toLowerCase().contains(keywords[i])
+                                        || tr(r.get(key)).toLowerCase().contains(keywords[i]) ) {
+                                    ok = true;
+                                    break;
+                                }
+                            }
+                        }
+                        if( !ok ) add = false;
+                    }
+                    if( add )
+                        relations.add(r);
+                }
+            }
+        }
+
+        final NameFormatter formatter = DefaultNameFormatter.getInstance();
+        Collections.sort(relations, new Comparator<Relation>() {
+            public int compare( Relation r1, Relation r2 ) {
+                return r1.getDisplayName(formatter).compareTo(r2.getDisplayName(formatter));
+            }
+        });
+        data.setRelations(relations);
+    }
+
+    /**
+     * I admit, some of it was copypasted from {@link org.openstreetmap.josm.gui.dialogs.RelationListDialog.RelationListModel}.
+     */
+    protected class FindRelationListModel extends AbstractListModel {
+        private final ArrayList<Relation> relations = new ArrayList<Relation>();
+        private DefaultListSelectionModel selectionModel;
+
+        public FindRelationListModel( DefaultListSelectionModel selectionModel ) {
+            super();
+            this.selectionModel = selectionModel;
+        }
+
+        public FindRelationListModel() {
+            this(new DefaultListSelectionModel());
+        }
+
+        public DefaultListSelectionModel getSelectionModel() {
+            return selectionModel;
+        }
+
+        public Relation getRelation( int idx ) {
+            return relations.get(idx);
+        }
+
+        public int getSize() {
+            return relations.size();
+        }
+
+        public Object getElementAt( int index ) {
+            return getRelation(index);
+        }
+
+        public void setRelations(Collection<Relation> relations) {
+            int selectedIndex = selectionModel.getMinSelectionIndex();
+            Relation sel =  selectedIndex < 0 ? null : getRelation(selectedIndex);
+            
+            this.relations.clear();
+            selectionModel.clearSelection();
+            if( relations != null )
+                this.relations.addAll(relations);
+            fireIntervalAdded(this, 0, getSize());
+
+            if( sel != null ) {
+                selectedIndex = this.relations.indexOf(sel);
+                if( selectedIndex >= 0 )
+                    selectionModel.addSelectionInterval(selectedIndex, selectedIndex);
+            }
+            if( selectionModel.isSelectionEmpty() && !this.relations.isEmpty() )
+                selectionModel.addSelectionInterval(0, 0);
+        }
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/RelationHelpAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/RelationHelpAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/RelationHelpAction.java	(revision 26174)
@@ -0,0 +1,103 @@
+package relcontext.actions;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import java.net.HttpURLConnection;
+import java.net.URI;
+import java.net.URLEncoder;
+import java.util.ArrayList;
+import java.util.List;
+import javax.swing.AbstractAction;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.tools.ImageProvider;
+import org.openstreetmap.josm.tools.LanguageInfo;
+import org.openstreetmap.josm.tools.OpenBrowser;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+public class RelationHelpAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public RelationHelpAction( ChosenRelation rel ) {
+        super();
+        putValue(NAME, tr("Open relation wiki page"));
+        putValue(SHORT_DESCRIPTION, tr("Launch browser with wiki help for selected object"));
+        putValue(SMALL_ICON, ImageProvider.get("dialogs", "search"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(rel.get() != null);
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setEnabled(newRelation != null);
+    }
+
+    /**
+     * Copypasted from {@link org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog.HelpAction}.
+     */
+    public void actionPerformed( ActionEvent e ) {
+        if( rel.get() == null )
+            return;
+        try {
+            String base = Main.pref.get("url.openstreetmap-wiki", "http://wiki.openstreetmap.org/wiki/");
+            String lang = LanguageInfo.getWikiLanguagePrefix();
+            final List<URI> uris = new ArrayList<URI>();
+            String type = URLEncoder.encode(rel.get().get("type"), "UTF-8");
+
+            if (type != null && !type.equals("")) {
+                uris.add(new URI(String.format("%s%sRelation:%s", base, lang, type)));
+                uris.add(new URI(String.format("%sRelation:%s", base, type)));
+            }
+
+            uris.add(new URI(String.format("%s%sRelations", base, lang)));
+            uris.add(new URI(String.format("%sRelations", base)));
+
+            Main.worker.execute(new Runnable(){
+                public void run() {
+                    try {
+                        // find a page that actually exists in the wiki
+                        HttpURLConnection conn;
+                        for (URI u : uris) {
+                            conn = (HttpURLConnection) u.toURL().openConnection();
+                            conn.setConnectTimeout(5000);
+
+                            if (conn.getResponseCode() != 200) {
+                                System.out.println("INFO: " + u + " does not exist");
+                                conn.disconnect();
+                            } else {
+                                int osize = conn.getContentLength();
+                                conn.disconnect();
+
+                                conn = (HttpURLConnection) new URI(u.toString()
+                                        .replace("=", "%3D") /* do not URLencode whole string! */
+                                        .replaceFirst("/wiki/", "/w/index.php?redirect=no&title=")
+                                ).toURL().openConnection();
+                                conn.setConnectTimeout(5000);
+
+                                /* redirect pages have different content length, but retrieving a "nonredirect"
+                                 *  page using index.php and the direct-link method gives slightly different
+                                 *  content lengths, so we have to be fuzzy.. (this is UGLY, recode if u know better)
+                                 */
+                                if (Math.abs(conn.getContentLength() - osize) > 200) {
+                                    System.out.println("INFO: " + u + " is a mediawiki redirect");
+                                    conn.disconnect();
+                                } else {
+                                    System.out.println("INFO: browsing to " + u);
+                                    conn.disconnect();
+
+                                    OpenBrowser.displayUrl(u.toString());
+                                    break;
+                                }
+                            }
+                        }
+                    } catch (Exception e) {
+                        e.printStackTrace();
+                    }
+                }
+            });
+        } catch (Exception e1) {
+            e1.printStackTrace();
+        }
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectInRelationPanelAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectInRelationPanelAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectInRelationPanelAction.java	(revision 26174)
@@ -0,0 +1,35 @@
+package relcontext.actions;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import javax.swing.AbstractAction;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.tools.ImageProvider;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+public class SelectInRelationPanelAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public SelectInRelationPanelAction( ChosenRelation rel ) {
+        super();
+        putValue(NAME, tr("Select in relation list"));
+        putValue(SHORT_DESCRIPTION, tr("Select relation in relation list."));
+        putValue(SMALL_ICON, ImageProvider.get("dialogs", "relationlist"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(rel.get() != null);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        if( rel.get() != null ) {
+            Main.map.relationListDialog.selectRelation(rel.get());
+            Main.map.relationListDialog.unfurlDialog();
+        }
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setEnabled(newRelation != null);
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectMembersAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectMembersAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectMembersAction.java	(revision 26174)
@@ -0,0 +1,30 @@
+package relcontext.actions;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import javax.swing.AbstractAction;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.tools.ImageProvider;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+public class SelectMembersAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public SelectMembersAction( ChosenRelation rel ) {
+        super(tr("Select members"));
+        putValue(SMALL_ICON, ImageProvider.get("selectall"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(rel.get() != null);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        Main.map.mapView.getEditLayer().data.setSelected(rel.get() == null ? null : rel.get().getMemberPrimitives());
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setEnabled(newRelation != null);
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectRelationAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectRelationAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SelectRelationAction.java	(revision 26174)
@@ -0,0 +1,31 @@
+package relcontext.actions;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+import java.awt.event.ActionEvent;
+import javax.swing.AbstractAction;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.osm.Relation;
+import org.openstreetmap.josm.tools.ImageProvider;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+public class SelectRelationAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public SelectRelationAction( ChosenRelation rel ) {
+        super(tr("Select relation"));
+        putValue(SHORT_DESCRIPTION, tr("Select relation in main selection."));
+        putValue(SMALL_ICON, ImageProvider.get("dialogs", "select"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(rel.get() != null);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        Main.map.mapView.getEditLayer().data.setSelected(rel.get() == null ? null : rel.get());
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setEnabled(newRelation != null);
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SortAndFixAction.java
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SortAndFixAction.java	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/actions/SortAndFixAction.java	(revision 26174)
@@ -0,0 +1,164 @@
+package relcontext.actions;
+
+import java.awt.event.ActionEvent;
+import java.util.*;
+import javax.swing.AbstractAction;
+import javax.swing.Action;
+import static org.openstreetmap.josm.tools.I18n.tr;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.command.ChangeCommand;
+import org.openstreetmap.josm.command.Command;
+import org.openstreetmap.josm.data.osm.*;
+import org.openstreetmap.josm.tools.ImageProvider;
+import relcontext.ChosenRelation;
+import relcontext.ChosenRelationListener;
+
+public class SortAndFixAction extends AbstractAction implements ChosenRelationListener {
+    private ChosenRelation rel;
+
+    public SortAndFixAction( ChosenRelation rel ) {
+        super();
+//        putValue(Action.NAME, "AZ");
+        putValue(Action.SMALL_ICON, ImageProvider.get("data", "warning"));
+        putValue(Action.SHORT_DESCRIPTION, tr("Fix roles of the chosen relation members"));
+        this.rel = rel;
+        rel.addChosenRelationListener(this);
+        setEnabled(false);
+    }
+
+    public void actionPerformed( ActionEvent e ) {
+        Command c = fixRelation(rel.get());
+        if( c != null )
+            Main.main.undoRedo.add(c);
+    }
+
+    public void chosenRelationChanged( Relation oldRelation, Relation newRelation ) {
+        setEnabled(newRelation != null && needsFixing( newRelation));
+    }
+
+    public static boolean needsFixing( Relation rel ) {
+        return !isIncomplete(rel) && (areMultipolygonTagsEmpty(rel) || areBoundaryTagsNotRight(rel));
+    }
+
+    public static Command fixRelation( Relation rel ) {
+        Relation r = rel;
+        boolean fixed = false;
+        // todo: sort members
+        // todo: set roles for multipolygon members
+        Relation rr = fixMultipolygonRoles(r);
+        if( rr != null ) {
+            r = rr;
+            fixed = true;
+        }
+        // todo: set roles for boundary members
+        rr= fixBoundaryRoles(r);
+        if( rr != null ) {
+            r = rr;
+            fixed = true;
+        }
+
+        return fixed ? new ChangeCommand(rel, r) : null;
+    }
+
+    protected static boolean isIncomplete( Relation r ) {
+        if( r == null || r.isIncomplete() || r.isDeleted() )
+            return true;
+        for( RelationMember m : r.getMembers())
+            if( m.getMember().isIncomplete() )
+                return true;
+        return false;
+    }
+
+    /**
+     * Check for ways that have roles different from "outer" and "inner".
+     */
+    private static boolean areMultipolygonTagsEmpty( Relation r ) {
+        if( r == null || r.getMembersCount() == 0 || !ChosenRelation.isMultipolygon(r) )
+            return false;
+        for( RelationMember m : r.getMembers() ) {
+            if( m.getType().equals(OsmPrimitiveType.WAY) && (m.getRole() == null || (!m.getRole().equals("outer") && !m.getRole().equals("inner"))) )
+                return true;
+        }
+        return false;
+    }
+
+    /**
+     * Check for nodes and relations without needed roles.
+     */
+    private static boolean areBoundaryTagsNotRight( Relation r ) {
+        if( r == null || r.getMembersCount() == 0 || !r.hasKey("type") || !r.get("type").equals("boundary") )
+            return false;
+        for( RelationMember m : r.getMembers() ) {
+            if( m.getType().equals(OsmPrimitiveType.RELATION) && (m.getRole() == null || !m.getRole().equals("subarea")) )
+                return true;
+            else if(m.getType().equals(OsmPrimitiveType.NODE) && (m.getRole() == null || (!m.getRole().equals("label") && !m.getRole().equals("admin_centre"))) )
+                return true;
+        }
+        return false;
+    }
+
+    /**
+     * Basically, created multipolygon from scratch, and if successful, replace roles with new ones.
+     */
+    private static Relation fixMultipolygonRoles( Relation source ) {
+        Collection<Way> ways = new ArrayList<Way>();
+        for( OsmPrimitive p : source.getMemberPrimitives() )
+            if( p instanceof Way )
+                ways.add((Way)p);
+        MultipolygonCreate mpc = new MultipolygonCreate();
+        String error = mpc.makeFromWays(ways);
+        if( error != null )
+            return null;
+
+        Relation r = new Relation(source);
+        boolean fixed = false;
+        Set<Way> outerWays = new HashSet<Way>();
+        for( MultipolygonCreate.JoinedPolygon poly : mpc.outerWays )
+            for( Way w : poly.ways )
+                outerWays.add(w);
+        Set<Way> innerWays = new HashSet<Way>();
+        for( MultipolygonCreate.JoinedPolygon poly : mpc.innerWays )
+            for( Way w : poly.ways )
+                innerWays.add(w);
+        for( int i = 0; i < r.getMembersCount(); i++ ) {
+            RelationMember m = r.getMember(i);
+            if( m.isWay() ) {
+                String role = null;
+                if( outerWays.contains((Way)m.getMember()) )
+                    role = "outer";
+                else if( innerWays.contains((Way)m.getMember()) )
+                    role = "inner";
+                if( role != null && !role.equals(m.getRole()) ) {
+                    r.setMember(i, new RelationMember(role, m.getMember()));
+                    fixed = true;
+                }
+            }
+        }
+        return fixed ? r : null;
+    }
+
+    private static Relation fixBoundaryRoles( Relation source ) {
+        Relation r = new Relation(source);
+        boolean fixed = false;
+        for( int i = 0; i < r.getMembersCount(); i++ ) {
+            RelationMember m = r.getMember(i);
+            String role = null;
+            if( m.isRelation() )
+                role = "subarea";
+            else if( m.isNode() ) {
+                Node n = (Node)m.getMember();
+                if( !n.isIncomplete() ) {
+                    if( n.hasKey("place") )
+                        role = "admin_centre";
+                    else
+                        role = "label";
+                }
+            }
+            if( role != null && !role.equals(m.getRole()) ) {
+                r.setMember(i, new RelationMember(role, m.getMember()));
+                fixed = true;
+            }
+        }
+        return fixed ? r : null;
+    }
+}
Index: applications/editors/josm/plugins/reltoolbox/src/relcontext/possible_roles.txt
===================================================================
--- applications/editors/josm/plugins/reltoolbox/src/relcontext/possible_roles.txt	(revision 26174)
+++ applications/editors/josm/plugins/reltoolbox/src/relcontext/possible_roles.txt	(revision 26174)
@@ -0,0 +1,11 @@
+boundary: admin_centre, label, subarea
+route: stop, platform, forward, backward, stop_exit_only, stop_entry_only, platform_exit_only, platform_entry_only
+restriction: from, to, via, location_hint
+enforcement: device, from, to, force
+destination_sign: to, from, intersection, sign
+site: perimeter, entrance, label
+bridge: across, under, outline, edge
+tunnel: through, outline, edge
+surveillance: camera, extent, visible, hidden
+street: street, address, house, associated
+collection: member, street, river, railway, address, associated
Index: applications/editors/josm/plugins/restart/build.xml
===================================================================
--- applications/editors/josm/plugins/restart/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/restart/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="restart" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message" />
+    <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3835" />
-
-
+    <property name="plugin.main.version" value="3835"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -80,7 +74,10 @@
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
         </copy>
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
@@ -103,5 +100,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -112,5 +108,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -122,5 +117,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -132,5 +126,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -147,6 +140,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -167,7 +158,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -182,5 +172,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -200,5 +189,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -222,10 +210,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -233,5 +220,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -240,9 +227,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/reverter/build.xml
===================================================================
--- applications/editors/josm/plugins/reverter/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/reverter/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,67 +29,64 @@
 -->
 <project name="reverter" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="recompile after change in OsmPrimitive in JOSM 4099" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="4099" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="recompile after change in OsmPrimitive in JOSM 4099"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="4099"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -99,18 +96,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Upliner"/>
-				<attribute name="Plugin-Class" value="reverter.ReverterPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Plugin for reverting changesets"/>
-				<attribute name="Plugin-Icon" value="images/revert-changeset.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Reverter"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Upliner"/>
+                <attribute name="Plugin-Class" value="reverter.ReverterPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Plugin for reverting changesets"/>
+                <attribute name="Plugin-Icon" value="images/revert-changeset.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Reverter"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -119,139 +115,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/rgisopen/build.xml
===================================================================
--- applications/editors/josm/plugins/rgisopen/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/rgisopen/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="rgisopen" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="New plugin, rgisopen" />
+    <property name="commit.message" value="New plugin, rgisopen"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3400" />
-
-
+    <property name="plugin.main.version" value="3400"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../josm-latest.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../josm-latest.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -84,8 +78,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -108,9 +105,8 @@
                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-		<attribute name="Plugin-Requires" value="PicLayer"/>
+                <attribute name="Plugin-Requires" value="PicLayer"/>
             </manifest>
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -121,5 +117,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -131,5 +126,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -141,5 +135,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -156,6 +149,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -176,7 +167,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -191,5 +181,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -209,5 +198,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -231,10 +219,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -242,5 +229,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -249,9 +236,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/roadsigns/build.xml
===================================================================
--- applications/editors/josm/plugins/roadsigns/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/roadsigns/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,88 +29,81 @@
 -->
 <project name="RoadSigns" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="preset maintenance" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="preset maintenance"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/data">
-			<fileset dir="data"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
-        ************************************************
-        ** configure these properties. Most of them will be copied to the plugins
-        ** manifest file. Property values will also show up in the list available
-        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
-        **
-        ************************************************
-    -->
-			<manifest>
-				<attribute name="Author" value="Sebastian Klein"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.roadsigns.RoadSignsPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Plugin for tagging of objects based on a selection of road signs. The dialog can be opened by clicking a small icon in the upper right corner of the properties window. Available country presets: Germany."/>
-				<attribute name="Plugin-Icon" value="images/pref/roadsigns.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/RoadSigns"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
+            ************************************************
+            ** configure these properties. Most of them will be copied to the plugins
+            ** manifest file. Property values will also show up in the list available
+            ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
+            **
+            ************************************************
+            -->
+            <manifest>
+                <attribute name="Author" value="Sebastian Klein"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.roadsigns.RoadSignsPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Plugin for tagging of objects based on a selection of road signs. The dialog can be opened by clicking a small icon in the upper right corner of the properties window. Available country presets: Germany."/>
+                <attribute name="Plugin-Icon" value="images/pref/roadsigns.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/RoadSigns"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -119,139 +112,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/routes/build.xml
===================================================================
--- applications/editors/josm/plugins/routes/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/routes/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the routes plugin
@@ -26,170 +26,163 @@
 -->
 <project name="routes" default="dist" basedir=".">
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+            <classpath>
+                <pathelement location="${josm}"/>
+                <fileset dir="lib">
+                    <include name="**/*.jar"/>
+                </fileset>
+            </classpath>
+        </javac>
+        <copy file="src/org/openstreetmap/josm/plugins/routes/xml/routes.xml" todir="${plugin.build.dir}/org/openstreetmap/josm/plugins/routes/xml"/>
+        <copy file="src/org/openstreetmap/josm/plugins/routes/xml/routes.xsd" todir="${plugin.build.dir}/org/openstreetmap/josm/plugins/routes/xml"/>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <zipfileset src="lib/jsr173-1.0_api.jar" includes="**/*"/>
+            <zipfileset src="lib/jaxb-api.jar" includes="**/*"/>
+            <zipfileset src="lib/jaxb-impl.jar" includes="**/*.class"/>
+            <zipfileset src="lib/activation.jar" includes="**/*.class"/>
+            <manifest>
+                <attribute name="Author" value="Jiri Klement"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.routes.RoutesPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Renders routes (bus, hiking trails, bicycle routes, ..). Route types must be defined in routes.xml file in plugin directory"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-			<classpath>
-				<pathelement location="${josm}"/>
-				<fileset dir="lib">
-					<include name="**/*.jar"/>
-				</fileset>
-			</classpath>
-		</javac>
-		<copy file="src/org/openstreetmap/josm/plugins/routes/xml/routes.xml" todir="${plugin.build.dir}/org/openstreetmap/josm/plugins/routes/xml"/>
-		<copy file="src/org/openstreetmap/josm/plugins/routes/xml/routes.xsd" todir="${plugin.build.dir}/org/openstreetmap/josm/plugins/routes/xml"/>
-
-	</target>
-	<target name="dist" depends="compile,revision">
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<zipfileset src="lib/jsr173-1.0_api.jar" includes="**/*"/>
-			<zipfileset src="lib/jaxb-api.jar" includes="**/*"/>
-			<zipfileset src="lib/jaxb-impl.jar" includes="**/*.class"/>
-			<zipfileset src="lib/activation.jar" includes="**/*.class"/>
-			<manifest>
-				<attribute name="Author" value="Jiri Klement"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.routes.RoutesPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Renders routes (bus, hiking trails, bicycle routes, ..). Route types must be defined in routes.xml file in plugin directory"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/routing/build.xml
===================================================================
--- applications/editors/josm/plugins/routing/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/routing/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the routing plugin
@@ -26,182 +26,177 @@
 -->
 <project name="routing" default="dist" basedir=".">
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <!-- Define some properties -->
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="libdir" location="lib"/>
+    <property name="jgrapht" value="${libdir}/jgrapht-jdk1.5.jar"/>
+    <property name="log4j" value="${libdir}/log4j-1.2.15.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <!-- Some initializations for several other targets -->
+    <target name="init">
+        <mkdir dir="${plugin.dist.dir}"/>
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!-- Compile sources -->
+    <target name="compile" depends="init" description="Compile sources">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+            <classpath>
+                <pathelement location="${josm}"/>
+                <pathelement location="${jgrapht}"/>
+                <pathelement location="${log4j}"/>
+            </classpath>
+        </javac>
+    </target>
+    <!-- Generate distribution -->
+    <target name="dist" depends="compile,revision" description="Generate distribution">
+        <unjar dest="${plugin.build.dir}" src="${jgrapht}"/>
+        <unjar dest="${plugin.build.dir}" src="${log4j}"/>
+        <copy todir="${plugin.build.dir}/">
+            <fileset dir="resources">
+                <include name="*.xml"/>
+            </fileset>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Jose Vidal &lt;vidalfree@gmail.com&gt;, Juangui Jordán &lt;juangui@gmail.com&gt;, Hassan S &lt;hassan.sabirin@gmail.com&gt;"/>
+                <attribute name="Plugin-Class" value="com.innovant.josm.plugin.routing.RoutingPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Provides routing capabilities."/>
+                <attribute name="Plugin-Icon" value="images/preferences/routing.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Stage" value="50"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-	<!-- Define some properties -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="libdir"                 location="lib"/>
-	<property name="jgrapht"                value="${libdir}/jgrapht-jdk1.5.jar"/>
-	<property name="log4j"                  value="${libdir}/log4j-1.2.15.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<!-- Some initializations for several other targets -->
-	<target name="init">
-		<mkdir dir="${plugin.dist.dir}"/>
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<!-- Compile sources -->
-	<target name="compile" depends="init" description="Compile sources">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-			<classpath>
-				<pathelement location="${josm}"/>
-				<pathelement location="${jgrapht}"/>
-				<pathelement location="${log4j}"/>
-			</classpath>
-		</javac>
-	</target>
-	<!-- Generate distribution -->
-	<target name="dist" depends="compile,revision" description="Generate distribution">
-		<unjar dest="${plugin.build.dir}" src="${jgrapht}"/>
-		<unjar dest="${plugin.build.dir}" src="${log4j}"/>
-		<copy todir="${plugin.build.dir}/">
-			<fileset dir="resources">
-				<include name="*.xml"/>
-			</fileset>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Jose Vidal &lt;vidalfree@gmail.com&gt;, Juangui Jordán &lt;juangui@gmail.com&gt;, Hassan S &lt;hassan.sabirin@gmail.com&gt;"/>
-				<attribute name="Plugin-Class" value="com.innovant.josm.plugin.routing.RoutingPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Provides routing capabilities."/>
-				<attribute name="Plugin-Icon" value="images/preferences/routing.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Routing"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Stage" value="50"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/simplifyarea/build.xml
===================================================================
--- applications/editors/josm/plugins/simplifyarea/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/simplifyarea/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,67 +29,64 @@
 -->
 <project name="SimplifyArea" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Initial commit" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Initial commit"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -99,18 +96,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Martin Ždila &lt;m.zdila@gmail.com&gt;"/>
-				<attribute name="Plugin-Class" value="sk.zdila.josm.plugin.simplify.SimplifyAreaPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Simplify area by removing nodes on very obtuse angles. This can be constrained by maximum removed area size. Also average nearby nodes."/>
-				<!--<attribute name="Plugin-Icon" value="..."/>
-				<attribute name="Plugin-Link" value="..."/>-->
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Martin Ždila &lt;m.zdila@gmail.com&gt;"/>
+                <attribute name="Plugin-Class" value="sk.zdila.josm.plugin.simplify.SimplifyAreaPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Simplify area by removing nodes on very obtuse angles. This can be constrained by maximum removed area size. Also average nearby nodes."/>
+                <!--<attribute name="Plugin-Icon" value="..."/>
+                <attribute name="Plugin-Link" value="..."/>-->
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -119,139 +115,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/smed/build.xml
===================================================================
--- applications/editors/josm/plugins/smed/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/smed/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,80 +29,69 @@
 -->
 <project name="smed" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="some new internationalized messages" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="some new internationalized messages"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build/"/>
-	<property name="plugin.src.dir"         value="src/"/>
-	<property name="smed.dist.dir"        value="dist/"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist/"/>
-	<property name="smed_core.dist.dir"     value="core/dist/"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build/"/>
+    <property name="plugin.src.dir" value="src/"/>
+    <property name="smed.dist.dir" value="dist/"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist/"/>
+    <property name="smed_core.dist.dir" value="core/dist/"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-		<mkdir dir="${smed_core.dist.dir}"/>
-		<mkdir dir="${smed.dist.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+        <mkdir dir="${smed_core.dist.dir}"/>
+        <mkdir dir="${smed.dist.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile, revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-
+    <target name="dist" depends="compile, revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
         <copy todir="${plugin.build.dir}/images">
-            <fileset dir="${plugin.src.dir}/images"/>
+            <fileset dir="images"/>
         </copy>
-
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		
-		<copy todir="${plugin.build.dir}/smed/msg">
-			<fileset dir="${plugin.src.dir}/smed/msg"/>
-		</copy>
-		
-		<copy todir="${plugin.build.dir}">
-			<fileset dir="${smed.dist.dir}"/>
-		</copy>
-						
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-                <include name="*.txt" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/smed/msg">
+            <fileset dir="${plugin.src.dir}/smed/msg"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir="${smed.dist.dir}"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="*.txt"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -112,25 +101,22 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Werner, Malcolm"/>
-				<attribute name="Plugin-Class" value="smed.Smed"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap"/>
-				<attribute name="Plugin-Icon" value="images/Smed.png"/>
-				<attribute name="Plugin-Link" value="http://openseamap.org/"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<!--
-				<attribute name="Plugin-Version" value="23456"/>
-				-->
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-				 
-			</manifest>
-		</jar>
-		
-		<!-- install interface -->
-		<copy file="${plugin.jar}" todir="${smed_core.dist.dir}"/>
-	</target>
-	
-	<!--
+            <manifest>
+                <attribute name="Author" value="Werner, Malcolm"/>
+                <attribute name="Plugin-Class" value="smed.Smed"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap"/>
+                <attribute name="Plugin-Icon" value="images/Smed.png"/>
+                <attribute name="Plugin-Link" value="http://openseamap.org/"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <!--
+                <attribute name="Plugin-Version" value="23456"/>
+                -->
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+        <!-- install interface -->
+        <copy file="${plugin.jar}" todir="${smed_core.dist.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -139,75 +125,68 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<!--
-		<delete file="REVISION"/>
-		-->	
-	</target>
-
-	
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <!--
+        <delete file="REVISION"/>
+        -->
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<delete dir="${josm.plugins.dir}/splug"/>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-	
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <delete dir="${josm.plugins.dir}/splug"/>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
 </project>
Index: applications/editors/josm/plugins/smed/plugs/harbour/build.xml
===================================================================
--- applications/editors/josm/plugins/smed/plugs/harbour/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/smed/plugs/harbour/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,86 +29,74 @@
 -->
 <project name="Harbour" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="harbour: TristateChekBox added" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3329" />
-
-	<!-- Declaring	time-stamps-->
-	<tstamp/>
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="harbour: TristateChekBox added"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3329"/>
+    <!-- Declaring  time-stamps-->
+    <tstamp/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../../../core/dist/josm-custom.jar"/>
-	<property name="smed"					location="../../core/dist/smed.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<property name="smed.build.dir"         value="../../../smed/build"/>
-	<property name="delete_string"          value="*${ant.project.name}.jar"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../../../core/dist/josm-custom.jar"/>
+    <property name="smed" location="../../core/dist/smed.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <property name="smed.build.dir" value="../../../smed/build"/>
+    <property name="delete_string" value="*${ant.project.name}.jar"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-		<mkdir dir="${plugin.dist.dir}"/>
-	</target>
-	
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+        <mkdir dir="${plugin.dist.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
         <copy todir="${plugin.build.dir}/images">
             <fileset dir="${plugin.src.dir}/images"/>
         </copy>
-
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/harbour/msg">
-			<fileset dir="${plugin.src.dir}/harbour/msg"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-                <include name="copyright.txt" />
-                <include name="LICENSE.txt" />
-			</fileset>
-		</copy>
-		
-		<delete>
-			<fileset dir="${plugin.dist.dir}">
-	    		<include name="${delete_string}"/>
-			</fileset>
-		</delete>
-
-		
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/harbour/msg">
+            <fileset dir="${plugin.src.dir}/harbour/msg"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="copyright.txt"/>
+                <include name="LICENSE.txt"/>
+            </fileset>
+        </copy>
+        <delete>
+            <fileset dir="${plugin.dist.dir}">
+                <include name="${delete_string}"/>
+            </fileset>
+        </delete>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -118,18 +106,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Werner, Malcolm"/>
-				<attribute name="Plugin-Class" value="toms.Toms"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/>
-				<attribute name="Plugin-Icon" value="images/Smp.png"/>
-				<attribute name="Plugin-Link" value="http://openseamap.org/"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Werner, Malcolm"/>
+                <attribute name="Plugin-Class" value="toms.Toms"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/>
+                <attribute name="Plugin-Icon" value="images/Smp.png"/>
+                <attribute name="Plugin-Link" value="http://openseamap.org/"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -138,31 +125,28 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete>
-			<fileset dir="${plugin.dist.dir}">
-	    		<include name="${delete_string}"/>
-			</fileset>
-		</delete>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete>
+            <fileset dir="${plugin.dist.dir}">
+                <include name="${delete_string}"/>
+            </fileset>
+        </delete>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
@@ -170,127 +154,116 @@
     **********************************************************
     -->
-	<target name="install-develop" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		
-		<delete>
-			<fileset dir="${josm.plugins.dir}">
-	    		<include name="${delete_string}"/>
-			</fileset>
-		</delete>
-		
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-
-		<delete file="${plugin.jar}"/>
-		
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		** 
-		-->
-	
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-	
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish"> <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" -->
-		<echo>No normal josm-plugin, publishing over smed !!!
-			1. ant - dist to each subplugin
-			2. ant publish to smed
-		</echo>
-	</target>
+    <target name="install-develop" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <delete>
+            <fileset dir="${josm.plugins.dir}">
+                <include name="${delete_string}"/>
+            </fileset>
+        </delete>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        ** 
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish">
+        <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" -->
+        <echo>No normal josm-plugin, publishing over smed !!!
+            1. ant - dist to each subplugin
+            2. ant publish to smed
+        </echo>
+    </target>
 </project>
-
Index: applications/editors/josm/plugins/smed/plugs/oseam/build.xml
===================================================================
--- applications/editors/josm/plugins/smed/plugs/oseam/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/smed/plugs/oseam/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,86 +29,74 @@
 -->
 <project name="OSeaM" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="some new features in internationalising" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3329" />
-
-	<!-- Declaring	time-stamps-->
-	<tstamp/>
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="some new features in internationalising"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3329"/>
+    <!-- Declaring  time-stamps-->
+    <tstamp/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../../../core/dist/josm-custom.jar"/>
-	<property name="smed"					location="../../core/dist/smed.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<property name="smed.build.dir"         value="../../../smed/build"/>
-	<property name="delete_string"          value="*${ant.project.name}.jar"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../../../core/dist/josm-custom.jar"/>
+    <property name="smed" location="../../core/dist/smed.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <property name="smed.build.dir" value="../../../smed/build"/>
+    <property name="delete_string" value="*${ant.project.name}.jar"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-		<mkdir dir="${plugin.dist.dir}"/>
-	</target>
-	
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+        <mkdir dir="${plugin.dist.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
         <copy todir="${plugin.build.dir}/images">
             <fileset dir="${plugin.src.dir}/images"/>
         </copy>
-
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/oseam/msg">
-			<fileset dir="${plugin.src.dir}/oseam/msg"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-                <include name="copyright.txt" />
-                <include name="LICENSE.txt" />
-			</fileset>
-		</copy>
-		
-		<delete>
-			<fileset dir="${plugin.dist.dir}">
-	    		<include name="${delete_string}"/>
-			</fileset>
-		</delete>
-
-		
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/oseam/msg">
+            <fileset dir="${plugin.src.dir}/oseam/msg"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="copyright.txt"/>
+                <include name="LICENSE.txt"/>
+            </fileset>
+        </copy>
+        <delete>
+            <fileset dir="${plugin.dist.dir}">
+                <include name="${delete_string}"/>
+            </fileset>
+        </delete>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -118,18 +106,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Werner, Malcolm"/>
-				<attribute name="Plugin-Class" value="toms.Toms"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/>
-				<attribute name="Plugin-Icon" value="images/Smp.png"/>
-				<attribute name="Plugin-Link" value="http://openseamap.org/"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Werner, Malcolm"/>
+                <attribute name="Plugin-Class" value="toms.Toms"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/>
+                <attribute name="Plugin-Icon" value="images/Smp.png"/>
+                <attribute name="Plugin-Link" value="http://openseamap.org/"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -138,31 +125,28 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete>
-			<fileset dir="${plugin.dist.dir}">
-	    		<include name="${delete_string}"/>
-			</fileset>
-		</delete>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete>
+            <fileset dir="${plugin.dist.dir}">
+                <include name="${delete_string}"/>
+            </fileset>
+        </delete>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
@@ -170,127 +154,116 @@
     **********************************************************
     -->
-	<target name="install-develop" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		
-		<delete>
-			<fileset dir="${josm.plugins.dir}">
-	    		<include name="${delete_string}"/>
-			</fileset>
-		</delete>
-		
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-
-		<delete file="${plugin.jar}"/>
-		
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		** 
-		-->
-	
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-	
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish"> <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" -->
-		<echo>No normal josm-plugin, publishing over smed !!!
-			1. ant - dist to each subplugin
-			2. ant publish to smed
-		</echo>
-	</target>
+    <target name="install-develop" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <delete>
+            <fileset dir="${josm.plugins.dir}">
+                <include name="${delete_string}"/>
+            </fileset>
+        </delete>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        ** 
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish">
+        <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" -->
+        <echo>No normal josm-plugin, publishing over smed !!!
+            1. ant - dist to each subplugin
+            2. ant publish to smed
+        </echo>
+    </target>
 </project>
-
Index: applications/editors/josm/plugins/smed/plugs/smed_about/build.xml
===================================================================
--- applications/editors/josm/plugins/smed/plugs/smed_about/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/smed/plugs/smed_about/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,85 +29,73 @@
 -->
 <project name="smed_about" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="added some security queries" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3329" />
-
-	<!-- Declaring	time-stamps-->
-	<tstamp/>
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="added some security queries"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3329"/>
+    <!-- Declaring  time-stamps-->
+    <tstamp/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../../../core/dist/josm-custom.jar"/>
-	<property name="smed"					location="../../core/dist/smed.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<property name="smed.build.dir"         value="../../../smed/build"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/03_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../../../core/dist/josm-custom.jar"/>
+    <property name="smed" location="../../core/dist/smed.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <property name="smed.build.dir" value="../../../smed/build"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/03_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-		<mkdir dir="${plugin.dist.dir}"/>
-	</target>
-	
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+        <mkdir dir="${plugin.dist.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
         <copy todir="${plugin.build.dir}/images">
             <fileset dir="${plugin.src.dir}/images"/>
         </copy>
-
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/${ant.project.name}/msg">
-			<fileset dir="${plugin.src.dir}/${ant.project.name}/msg"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-                <include name="copyright.txt" />
-                <include name="LICENSE.txt" />
-			</fileset>
-		</copy>
-		
-		<delete>
-			<fileset dir="${plugin.dist.dir}">
-	    		<include name="*${ant.project.name}.jar"/>
-			</fileset>
-		</delete>
-
-		
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/${ant.project.name}/msg">
+            <fileset dir="${plugin.src.dir}/${ant.project.name}/msg"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="copyright.txt"/>
+                <include name="LICENSE.txt"/>
+            </fileset>
+        </copy>
+        <delete>
+            <fileset dir="${plugin.dist.dir}">
+                <include name="*${ant.project.name}.jar"/>
+            </fileset>
+        </delete>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -117,18 +105,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Werner, Malcolm"/>
-				<attribute name="Plugin-Class" value="toms.Toms"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/>
-				<attribute name="Plugin-Icon" value="images/Smp.png"/>
-				<attribute name="Plugin-Link" value="http://openseamap.org/"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Werner, Malcolm"/>
+                <attribute name="Plugin-Class" value="toms.Toms"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/>
+                <attribute name="Plugin-Icon" value="images/Smp.png"/>
+                <attribute name="Plugin-Link" value="http://openseamap.org/"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -137,158 +124,145 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-		<delete>
-			<fileset dir="${plugin.dist.dir}">
-	    		<include name="*${ant.project.name}.jar"/>
-			</fileset>
-		</delete>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+        <delete>
+            <fileset dir="${plugin.dist.dir}">
+                <include name="*${ant.project.name}.jar"/>
+            </fileset>
+        </delete>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install-develop" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		
-		<delete>
-			<fileset dir="${josm.plugins.dir}">
-	    		<include name="*${ant.project.name}.jar"/>
-			</fileset>
-		</delete>
-
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-		
-		<delete file="${plugin.jar}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		** 
-		-->
-	
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-	
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish"> <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" -->
-		<echo>No normal josm-plugin, publishing over smed !!! 
-			1. ant - dist to each subplugin
-			2. ant publish to smed
-		</echo>
-	</target>	
+    <target name="install-develop" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins/splug" else="${user.home}/.josm/plugins/splug">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <delete>
+            <fileset dir="${josm.plugins.dir}">
+                <include name="*${ant.project.name}.jar"/>
+            </fileset>
+        </delete>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        ** 
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish">
+        <!-- depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist" -->
+        <echo>No normal josm-plugin, publishing over smed !!! 
+            1. ant - dist to each subplugin
+            2. ant publish to smed
+        </echo>
+    </target>
 </project>
Index: applications/editors/josm/plugins/smed_bfw/smed_bfw/build.xml
===================================================================
--- applications/editors/josm/plugins/smed_bfw/smed_bfw/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/smed_bfw/smed_bfw/build.xml	(revision 26174)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="project" default="build"> 
-	<import file="../cnf/build.xml"/>
+<?xml version="1.0" encoding="utf-8"?>
+<project name="project" default="build">
+    <import file="../cnf/build.xml"/>
 </project>
Index: applications/editors/josm/plugins/smed_fw/build.xml
===================================================================
--- applications/editors/josm/plugins/smed_fw/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/smed_fw/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,84 +29,68 @@
 -->
 <project name="smed_fw" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="smed with embeddes felix and DS" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="smed with embeddes felix and DS"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm" location="../../core/dist/josm-custom.jar" />
-	<property name="felix"					location="core/dist/felix.jar"/>
-	<property name="plugin.build.dir" value="build/" />
-	<property name="plugin.src.dir" value="src/" />
-	<property name="smed_fw.dist.dir" value="dist/" />
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir" value="../../dist/" />
-	<property name="smed_fw_core.dist.dir" value="core/dist/" />
-	<property name="ant.build.javac.target" value="1.5" />
-	<property name="plugin.jar" value="${plugin.dist.dir}${ant.project.name}.jar" />
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="felix" location="core/dist/felix.jar"/>
+    <property name="plugin.build.dir" value="build/"/>
+    <property name="plugin.src.dir" value="src/"/>
+    <property name="smed_fw.dist.dir" value="dist/"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist/"/>
+    <property name="smed_fw_core.dist.dir" value="core/dist/"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}" />
-		<mkdir dir="${smed_fw_core.dist.dir}" />
-		<mkdir dir="${smed_fw.dist.dir}" />
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+        <mkdir dir="${smed_fw_core.dist.dir}"/>
+        <mkdir dir="${smed_fw.dist.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... " />
-		<javac srcdir="src" classpath="${josm}:${felix}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}:${felix}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile, revision">
-		<echo message="creating ${ant.project.name}.jar ... " />
-
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="${plugin.src.dir}/images" />
-		</copy>
-
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images" />
-		</copy>
-
-		<copy todir="${plugin.build.dir}/smed_fw/msg">
-			<fileset dir="${plugin.src.dir}/smed_fw/msg" />
-		</copy>
-
-		<copy todir="${plugin.build.dir}">
-			<fileset dir="${smed_fw.dist.dir}" />
-		</copy>
-
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="*.txt" />
-			</fileset>
-		</copy>
-		
-		<copy file="${felix}" todir="${plugin.build.dir}" />
-		
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile, revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/smed_fw/msg">
+            <fileset dir="${plugin.src.dir}/smed_fw/msg"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir="${smed_fw.dist.dir}"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="*.txt"/>
+            </fileset>
+        </copy>
+        <copy file="${felix}" todir="${plugin.build.dir}"/>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -116,26 +100,23 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Werner, Malcolm" />
-				<attribute name="Plugin-Class" value="smed_fw.SmedFW" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap" />
-				<attribute name="Plugin-Icon" value="images/Smed.png" />
-				<attribute name="Plugin-Link" value="http://openseamap.org/" />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<!--
-				<attribute name="Plugin-Version" value="23456"/>
-				-->
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-				<attribute name="Class-Path" value="bin/felix.jar"/>
-
-			</manifest>
-		</jar>
-
-		<!-- install interface -->
-		<copy file="${plugin.jar}" todir="${smed_fw_core.dist.dir}" />
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Werner, Malcolm"/>
+                <attribute name="Plugin-Class" value="smed_fw.SmedFW"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap"/>
+                <attribute name="Plugin-Icon" value="images/Smed.png"/>
+                <attribute name="Plugin-Link" value="http://openseamap.org/"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <!--
+                <attribute name="Plugin-Version" value="23456"/>
+                -->
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+                <attribute name="Class-Path" value="bin/felix.jar"/>
+            </manifest>
+        </jar>
+        <!-- install interface -->
+        <copy file="${plugin.jar}" todir="${smed_fw_core.dist.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -144,72 +125,65 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
-		<delete file="REVISION" />
-	</target>
-
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}" />
-		<delete file="${plugin.jar}" />
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="commit" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="." />
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="." />
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="../dist/${plugin.jar}" />
-		</exec>
-	</target>
-
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
 </project>
Index: applications/editors/josm/plugins/surveyor/build.xml
===================================================================
--- applications/editors/josm/plugins/surveyor/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/surveyor/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the surveyor plugin.
@@ -29,177 +29,171 @@
 -->
 <project name="surveyor" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="livegpsplugin.jar"      value="${plugin.dist.dir}/livegps.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-			<classpath>
-				<pathelement location="${josm}"/>
-				<pathelement location="${livegpsplugin.jar}"/>
-			</classpath>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/">
-			<fileset dir="resources">
-				<include name="*.xml"/>
-				<include name="audio/*"/>
-			</fileset>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Christof Dallermassl"/>
-				<attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions."/>
-				<attribute name="Plugin-Icon" value="images/surveyormenu.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Surveyor"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Requires" value="livegps"/>
-				<attribute name="Plugin-Stage" value="60"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-		************************** Publishing the plugin *********************************** 
-		-->
-	<!--
-			** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-			** property ${coreversion.info.entry.revision}
-			**
-			-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-			** commits the source tree for this plugin
-			-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-			** updates (svn up) the source tree for this plugin
-			-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-			** commits the plugin.jar 
-			-->
-	<target name="commit-dist">
-		<echo>
-		***** Properties of published ${plugin.jar} *****
-		Commit message    : '${commit.message}'					
-		Plugin-Mainversion: ${plugin.main.version}
-		JOSM build version: ${coreversion.info.entry.revision}
-		Plugin-Version    : ${version.entry.commit.revision}
-		***** / Properties of published ${plugin.jar} *****					
-							
-		Now commiting ${plugin.jar} ...
-		</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="livegpsplugin.jar" value="${plugin.dist.dir}/livegps.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+            <classpath>
+                <pathelement location="${josm}"/>
+                <pathelement location="${livegpsplugin.jar}"/>
+            </classpath>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/">
+            <fileset dir="resources">
+                <include name="*.xml"/>
+                <include name="audio/*"/>
+            </fileset>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Christof Dallermassl"/>
+                <attribute name="Plugin-Class" value="at.dallermassl.josm.plugin.surveyor.SurveyorPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions."/>
+                <attribute name="Plugin-Icon" value="images/surveyormenu.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Surveyor"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Requires" value="livegps"/>
+                <attribute name="Plugin-Stage" value="60"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+        ************************** Publishing the plugin *********************************** 
+        -->
+    <!--
+            ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+            ** property ${coreversion.info.entry.revision}
+            **
+            -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+            ** commits the source tree for this plugin
+            -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+            ** updates (svn up) the source tree for this plugin
+            -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+            ** commits the plugin.jar 
+            -->
+    <target name="commit-dist">
+        <echo>
+        ***** Properties of published ${plugin.jar} *****
+        Commit message    : '${commit.message}'                 
+        Plugin-Mainversion: ${plugin.main.version}
+        JOSM build version: ${coreversion.info.entry.revision}
+        Plugin-Version    : ${version.entry.commit.revision}
+        ***** / Properties of published ${plugin.jar} *****                 
+                            
+        Now commiting ${plugin.jar} ...
+        </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/tageditor/build.xml
===================================================================
--- applications/editors/josm/plugins/tageditor/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/tageditor/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the tageditor plugin
@@ -26,79 +26,75 @@
 -->
 <project name="tageditor" default="dist" basedir=".">
-
-
-	<property name="commit.message" value="Updating to JOSM 3210" />
-	<property name="plugin.main.version" value="3835" />
-
-	<!--
+    <property name="commit.message" value="Updating to JOSM 3210"/>
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${plugin.jar} for version ${version.entry.commit.revision} ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir="${plugin.src.dir}">
-				<include name="**/*.dtd"/>
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Karl Guggisberg"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.tageditor.TagEditorPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Provides a dialog for editing tags in a tabular grid."/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/TagEditor"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${plugin.jar} for version ${version.entry.commit.revision} ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir="${plugin.src.dir}">
+                <include name="**/*.dtd"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Karl Guggisberg"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.tageditor.TagEditorPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Provides a dialog for editing tags in a tabular grid."/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/TagEditor"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -107,138 +103,130 @@
     **********************************************************
     -->
-	<target name="revision">
-		<!-- extract the SVN revision information  -->
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <!-- extract the SVN revision information  -->
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	 ************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-	** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-	** property ${coreversion.info.entry.revision}
-	**
-	-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-	** commits the source tree for this plugin
-	-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-	** updates (svn up) the source tree for this plugin
-	-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-	** commits the plugin.jar 
-	-->
-	<target name="commit-dist">
-		<echo>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+     ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+    ** property ${coreversion.info.entry.revision}
+    **
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+    ** commits the source tree for this plugin
+    -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+    ** updates (svn up) the source tree for this plugin
+    -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+    ** commits the plugin.jar 
+    -->
+    <target name="commit-dist">
+        <echo>
 ***** Properties of published ${plugin.jar} *****
-Commit message    : '${commit.message}'					
+Commit message    : '${commit.message}'                 
 Plugin-Mainversion: ${plugin.main.version}
 JOSM build version: ${coreversion.info.entry.revision}
 Plugin-Version    : ${version.entry.commit.revision}
-***** / Properties of published ${plugin.jar} *****					
-					
+***** / Properties of published ${plugin.jar} *****                 
+                    
 Now commiting ${plugin.jar} ...
 </echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/tagging-preset-tester/build.xml
===================================================================
--- applications/editors/josm/plugins/tagging-preset-tester/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/tagging-preset-tester/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the tagging-preset-tester plugin
@@ -26,123 +26,118 @@
 -->
 <project name="tagging-preset-tester" default="dist" basedir=".">
-
-
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Imi"/>
-				<attribute name="Main-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTesterAction"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Adds a tagging preset tester to the help menu, which helps you developing of tagging presets (quick preview of the dialog that will popup). You can start the jar-file as standalone as well."/>
-				<attribute name="Plugin-Icon" value="images/tagging-preset-tester.png"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	 ************************** Publishing the plugin ***********************************
-	-->
-	<!--
-	** extracts the JOSM release for the JOSM version in ../core and saves it in the
-	** property ${coreversion.info.entry.revision}
-	**
-	-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-	** commits the source tree for this plugin
-	-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="true">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-	** updates (svn up) the source tree for this plugin
-	-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-	** commits the plugin.jar
-	-->
-	<target name="commit-dist">
-		<echo>
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Imi"/>
+                <attribute name="Main-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTester"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.taggingpresettester.TaggingPresetTesterAction"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Adds a tagging preset tester to the help menu, which helps you developing of tagging presets (quick preview of the dialog that will popup). You can start the jar-file as standalone as well."/>
+                <attribute name="Plugin-Icon" value="images/tagging-preset-tester.png"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+     ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+    ** property ${coreversion.info.entry.revision}
+    **
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+    ** commits the source tree for this plugin
+    -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="true">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+    ** updates (svn up) the source tree for this plugin
+    -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+    ** commits the plugin.jar
+    -->
+    <target name="commit-dist">
+        <echo>
 ***** Properties of published ${plugin.jar} *****
 Commit message    : '${commit.message}'
@@ -154,35 +149,33 @@
 Now commiting ${plugin.jar} ...
 </echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/terracer/build.xml
===================================================================
--- applications/editors/josm/plugins/terracer/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/terracer/build.xml	(revision 26174)
@@ -1,2 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for the terracer plugin
@@ -25,15 +26,11 @@
 -->
 <project name="terracer" default="dist" basedir=".">
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <property name="ant.build.javac.target" value="1.5"/>
-
-
-    <property name="commit.message" value="applied #j5760 (patch by robome) - Order of housenumbers not correct" />
-    <property name="plugin.main.version" value="3835" />
-
-
+    <property name="commit.message" value="applied #j5760 (patch by robome) - Order of housenumbers not correct"/>
+    <property name="plugin.main.version" value="3835"/>
     <target name="init">
         <mkdir dir="${plugin.build.dir}"/>
@@ -49,4 +46,7 @@
         <copy todir="${plugin.build.dir}/images">
             <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
         </copy>
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
@@ -86,62 +86,58 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
     <!--
          ************************** Publishing the plugin ***********************************
         -->
-            <!--
+    <!--
               ** extracts the JOSM release for the JOSM version in ../core and saves it in the
               ** property ${coreversion.info.entry.revision}
               **
             -->
-            <target name="core-info">
-                <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-                            <env key="LANG" value="C"/>
-                            <arg value="info"/>
-                            <arg value="--xml"/>
-                            <arg value="../../core"/>
-                </exec>
-                <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-                <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-                <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-                <delete file="core.info.xml" />
-            </target>
-
-            <!--
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
              ** commits the source tree for this plugin
             -->
-            <target name="commit-current">
-                <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-                <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-                                <env key="LANG" value="C"/>
-                                <arg value="commit"/>
-                                <arg value="-m '${commit.message}'"/>
-                                <arg value="."/>
-                </exec>
-            </target>
-
-            <!--
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
             ** updates (svn up) the source tree for this plugin
             -->
-            <target name="update-current">
-                <echo>Updating plugin source ...</echo>
-                <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-                                <env key="LANG" value="C"/>
-                                <arg value="up"/>
-                                <arg value="."/>
-                </exec>
-                <echo>Updating ${plugin.jar} ...</echo>
-                <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-                                <env key="LANG" value="C"/>
-                                <arg value="up"/>
-                                <arg value="../dist/${plugin.jar}"/>
-                </exec>
-            </target>
-
-            <!--
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
              ** commits the plugin.jar
              -->
-            <target name="commit-dist">
-                    <echo>
+    <target name="commit-dist">
+        <echo>
     ***** Properties of published ${plugin.jar} *****
     Commit message    : '${commit.message}'
@@ -153,13 +149,12 @@
     Now commiting ${plugin.jar} ...
     </echo>
-                    <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-                                    <env key="LANG" value="C"/>
-                                    <arg value="-m '${commit.message}'"/>
-                                    <arg value="commit"/>
-                                    <arg value="${plugin.jar}"/>
-                    </exec>
-               </target>
-
-            <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist">
             </target>
 </project>
Index: applications/editors/josm/plugins/toms/build.xml
===================================================================
--- applications/editors/josm/plugins/toms/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/toms/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,72 +29,67 @@
 -->
 <project name="SeaMapEditor" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Bug fix release" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3329" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Bug fix release"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3329"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
         <copy todir="${plugin.build.dir}/images">
             <fileset dir="${plugin.src.dir}/images"/>
         </copy>
-
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/toms/msg">
-			<fileset dir="${plugin.src.dir}/toms/msg"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-                <include name="copyright.txt" />
-                <include name="LICENSE.txt" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/toms/msg">
+            <fileset dir="${plugin.src.dir}/toms/msg"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="copyright.txt"/>
+                <include name="LICENSE.txt"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -104,19 +99,18 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Werner, Malcolm"/>
-				<attribute name="Plugin-Class" value="toms.Toms"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/>
-				<attribute name="Plugin-Icon" value="images/Smp.png"/>
-				<attribute name="Plugin-Link" value="http://openseamap.org/"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-				<attribute name="Class-Path" value="tplug/ifc.jar"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Werner, Malcolm"/>
+                <attribute name="Plugin-Class" value="toms.Toms"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Create and edit seamarks for OpenSeaMap"/>
+                <attribute name="Plugin-Icon" value="images/Smp.png"/>
+                <attribute name="Plugin-Link" value="http://openseamap.org/"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+                <attribute name="Class-Path" value="tplug/ifc.jar"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -125,140 +119,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
-
Index: applications/editors/josm/plugins/touchscreenhelper/build.xml
===================================================================
--- applications/editors/josm/plugins/touchscreenhelper/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/touchscreenhelper/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,162 +29,150 @@
 -->
 <project name="touchscreenhelper" default="dist" basedir=".">
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Commit message" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-		<manifest>
-			<attribute name="Author" value="glebius@glebius.int.ru"/>
-			<attribute name="Plugin-Class" value="touchscreenhelper.TouchScreenHelperPlugin"/>
-			<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-			<attribute name="Plugin-Description" value="Provides helper buttons to allow working with single button mouse (stylus). Currently adds only one button to slip the map."/>
-			<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-			<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-		</manifest>
-		</jar>
-	</target>
-
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Commit message"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="glebius@glebius.int.ru"/>
+                <attribute name="Plugin-Class" value="touchscreenhelper.TouchScreenHelperPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Provides helper buttons to allow working with single button mouse (stylus). Currently adds only one button to slip the map."/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/tracer/build.xml
===================================================================
--- applications/editors/josm/plugins/tracer/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/tracer/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a build file for a JOSM  plugin "Tracer".
@@ -29,69 +29,61 @@
 -->
 <project name="Tracer" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="adapt to latest josm (getNodePairs changed)" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="adapt to latest josm (getNodePairs changed)"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<!--
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		-->
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+        <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -100,18 +92,17 @@
         **
         ************************************************
-    -->
-			<manifest>
-				<attribute name="Author" value="Jan Bilak, Petr Dlouhý" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.tracer.TracerPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Description" value="Traces buildings from Czech cadastral map. Needs TracerServer (.NET or Mono) to be running." />
-				<!-- <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Tracer" /> -->
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+        -->
+            <manifest>
+                <attribute name="Author" value="Jan Bilak, Petr Dlouhý"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.tracer.TracerPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Traces buildings from Czech cadastral map. Needs TracerServer (.NET or Mono) to be running."/>
+                <!-- <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Tracer" /> -->
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -120,139 +111,128 @@
     **********************************************************
     -->
-	<target name="revision">
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+    **********************************************************
+    ** clean - clean up the build environment
+    **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** install - install the plugin in your local JOSM installation
+    **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+    ** property ${coreversion.info.entry.revision}
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** clean - clean up the build environment
-    **********************************************************
-    -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin ***********************************
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/trustosm/build.xml
===================================================================
--- applications/editors/josm/plugins/trustosm/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/trustosm/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,25 +29,21 @@
 -->
 <project name="trustosm" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="New plugin for digital signing osm data" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3329" />
-
-
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="New plugin for digital signing osm data"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3329"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<property name="plugin.lib.dir"         value="lib"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.6"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <property name="plugin.lib.dir" value="lib"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.6"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -58,5 +54,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -64,66 +59,61 @@
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-			<classpath>
-				<pathelement location="${josm}"/>
-				<fileset dir="${plugin.lib.dir}">
-					<include name="**/*.jar"/>
-				</fileset>
-			</classpath>
-		</javac>
-	</target>
-
-	
-	<!-- create a property containing all .jar files, prefix lib/, and seperated with a space -->
-	  <pathconvert property="libs.project" pathsep=" ">
-	    <mapper>
-	      <chainedmapper>
-
-	        <!-- remove absolute path -->
-	        <flattenmapper />
-
-	        <!-- add lib/ prefix -->
-	        <globmapper from="*" to="${ant.project.name}/lib/*" />
-	      </chainedmapper>
-	    </mapper>
-
-	    <path>
-
-	      <!-- plugin.lib.dir contains all jar files -->
-	      <fileset dir="${plugin.lib.dir}">
-	        <include name="**/*.jar" />
-	      </fileset>
-	    </path>
-	  </pathconvert>
-
-	
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+            <classpath>
+                <pathelement location="${josm}"/>
+                <fileset dir="${plugin.lib.dir}">
+                    <include name="**/*.jar"/>
+                </fileset>
+            </classpath>
+        </javac>
+    </target>
+    <!-- create a property containing all .jar files, prefix lib/, and seperated with a space -->
+    <pathconvert property="libs.project" pathsep=" ">
+        <mapper>
+            <chainedmapper>
+                <!-- remove absolute path -->
+                <flattenmapper/>
+                <!-- add lib/ prefix -->
+                <globmapper from="*" to="${ant.project.name}/lib/*"/>
+            </chainedmapper>
+        </mapper>
+        <path>
+            <!-- plugin.lib.dir contains all jar files -->
+            <fileset dir="${plugin.lib.dir}">
+                <include name="**/*.jar"/>
+            </fileset>
+        </path>
+    </pathconvert>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/lib">
-			<fileset dir="${plugin.lib.dir}"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/lib">
+            <fileset dir="${plugin.lib.dir}"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -133,18 +123,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Christoph Wagner"/>
-				<attribute name="Class-Path" value="${libs.project}" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.trustosm.TrustOSMplugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Plugin to digital sign OSM-Data"/>
-				<attribute name="Plugin-Icon" value="trustosm"/>
-				<attribute name="Plugin-Link" value="..."/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
+            <manifest>
+                <attribute name="Author" value="Christoph Wagner"/>
+                <attribute name="Class-Path" value="${libs.project}"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.trustosm.TrustOSMplugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Plugin to digital sign OSM-Data"/>
+                <attribute name="Plugin-Icon" value="trustosm"/>
+                <attribute name="Plugin-Link" value="..."/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
     <!--
     **********************************************************
@@ -155,5 +144,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -165,5 +153,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -175,5 +162,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -190,6 +176,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -210,7 +194,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -225,5 +208,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -243,5 +225,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -265,10 +246,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -276,5 +256,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -283,9 +263,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/turnlanes/build.xml
===================================================================
--- applications/editors/josm/plugins/turnlanes/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/turnlanes/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,66 +29,64 @@
 -->
 <project name="turnlanes" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Commit message" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="4126" />
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Commit message"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="4126"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm" location="../../core/dist/josm-custom.jar" />
-	<property name="plugin.build.dir" value="build" />
-	<property name="plugin.src.dir" value="src" />
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir" value="../../dist" />
-	<property name="ant.build.javac.target" value="1.5" />
-	<property name="plugin.dist.dir" value="../../dist" />
-	<property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar" />
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}" />
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... " />
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... " />
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources" />
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images" />
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -98,18 +96,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Benjamin Schulz" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.turnlanes.TurnLanesPlugin" />
-				<attribute name="Plugin-Date" value="2011-03-17" />
-				<attribute name="Plugin-Description" value="Provides a straightforward GUI for adding, editing and deleting turn lanes." />
-				<!--<attribute name="Plugin-Icon" value="..." />-->
-				<!--<attribute name="Plugin-Link" value="..." />-->
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Benjamin Schulz"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.turnlanes.TurnLanesPlugin"/>
+                <attribute name="Plugin-Date" value="2011-03-17"/>
+                <attribute name="Plugin-Description" value="Provides a straightforward GUI for adding, editing and deleting turn lanes."/>
+                <!--<attribute name="Plugin-Icon" value="..." />-->
+                <!--<attribute name="Plugin-Link" value="..." />-->
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -118,99 +115,91 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
-		<delete file="REVISION" />
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}" />
-		<delete file="${plugin.jar}" />
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-
-	<!--
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
     ************************** Publishing the plugin *********************************** 
     -->
-	<!--
+    <!--
         ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
         ** property ${coreversion.info.entry.revision}
         **
         -->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="../../core" />
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" />
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
         ** commits the source tree for this plugin
         -->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="commit" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="." />
-		</exec>
-	</target>
-
-	<!--
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
         ** updates (svn up) the source tree for this plugin
         -->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="." />
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="../dist/${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!--
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
         ** commits the plugin.jar 
         -->
-	<target name="commit-dist">
-		<echo>
+    <target name="commit-dist">
+        <echo>
     ***** Properties of published ${plugin.jar} *****
     Commit message    : '${commit.message}'                    
@@ -222,35 +211,33 @@
     Now commiting ${plugin.jar} ...
     </echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="commit" />
-			<arg value="${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/turnrestrictions/build.xml
===================================================================
--- applications/editors/josm/plugins/turnrestrictions/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/turnrestrictions/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build file for the turnrestrictions plugin
@@ -29,66 +29,65 @@
 -->
 <project name="turnrestrictions" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Adapt to JOSM core change (DefaultNameFormatter)" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="4100" />
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Adapt to JOSM core change (DefaultNameFormatter)"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="4100"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm" location="../../core/dist/josm-custom.jar" />
-	<property name="plugin.build.dir" value="build" />
-	<property name="plugin.src.dir" value="src" />
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir" value="dist" />
-	<property name="ant.build.javac.target" value="1.6" />
-	<property name="plugin.jar" value="../../dist/${ant.project.name}.jar" />
-	<property name="test.build.dir" value="test/build" />
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="dist"/>
+    <property name="ant.build.javac.target" value="1.6"/>
+    <property name="plugin.jar" value="../../dist/${ant.project.name}.jar"/>
+    <property name="test.build.dir" value="test/build"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}" />
-		<mkdir dir="${test.build.dir}" />
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+        <mkdir dir="${test.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... " />
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... " />
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources" />
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images" />
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -98,18 +97,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Karl Guggisberg" />
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.turnrestrictions.TurnRestrictionsPlugin" />
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}" />
-				<attribute name="Plugin-Description" value="The turnrestrictions plugin allows to enter maintain information about turn restrictions in the OpenStreetMap database." />
-				<attribute name="Plugin-Icon" value="images/preferences/turnrestrictions.png" />
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/turnrestrictions" />
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Karl Guggisberg"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.turnrestrictions.TurnRestrictionsPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="The turnrestrictions plugin allows to enter maintain information about turn restrictions in the OpenStreetMap database."/>
+                <attribute name="Plugin-Icon" value="images/preferences/turnrestrictions.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/turnrestrictions"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -118,224 +116,199 @@
     **********************************************************
     -->
-	<target name="revision">
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+    **********************************************************
+    ** clean - clean up the build environment
+    **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** install - install the plugin in your local JOSM installation
+    **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="." />
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
-		<delete file="REVISION" />
-	</target>
-
-	<!--
-    **********************************************************
-    ** clean - clean up the build environment
-    **********************************************************
-    -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}" />
-		<delete file="${plugin.jar}" />
-	</target>
-
-	<!--
-    **********************************************************
-    ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-	<target name="install" depends="dist">
-		<property environment="env" />
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows" />
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}" />
-	</target>
-
-	<!--
-	************************** Publishing the plugin ***********************************
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="info" />
-			<arg value="--xml" />
-			<arg value="../../core" />
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" />
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="commit" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="." />
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="." />
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="up" />
-			<arg value="../dist/${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C" />
-			<arg value="-m '${commit.message}'" />
-			<arg value="commit" />
-			<arg value="${plugin.jar}" />
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
-
-
-	<!-- ************************************************************************************ -->
-	<!-- * Targets for compiling and running tests                                            -->
-	<!-- ************************************************************************************ -->
-	<property name="eclipse.plugin.dir" value="C:\software\eclipse-3.6.1\plugins" />
-
-	<path id="groovy.path">
-		<pathelement location="${eclipse.plugin.dir}/org.codehaus.groovy_1.7.5.xx-20100926-2000-e36-RC1\lib\groovy-all-1.7.5.jar" />
-	</path>
-
-	<path id="junit.path">
-		<pathelement location="${eclipse.plugin.dir}/org.junit_4.8.1.v4_8_1_v20100427-1100\junit.jar" />
-	</path>
-	
-	<path id="fest.library.path">
-		<fileset dir="test/lib">
-			<include name="fest-*.jar" />
-			<include name="jcp-*.jar" />
-		</fileset>
-    </path>
-
-	<path id="test.class.path">
-		<pathelement location="${josm}" />
-		<pathelement location="${plugin.build.dir}" />
-		<path refid="groovy.path" />
-		<path refid="junit.path" />
-		<path refid="fest.library.path" />
-	</path>
-
-	<path id="groovyc.path">
-		<path refid="junit.path" />
-		<path refid="groovy.path" />
-		<path refid="fest.library.path" />
-		<pathelement location="${josm}" />
-		<pathelement location="${test.build.dir}" />
-		<pathelement location="${plugin.build.dir}" />
-		<!-- if we didn't explicitly put hamcrest on the class path, groovyc would
-		     abort and report it is missing a hamcrest class -->
-		<pathelement location="test/lib/hamcrest-all-1.2.jar" />
-	</path>
-
-	<target name="test-clean">
-		<delete dir="${test.build.dir}" />
-		<mkdir dir="${test.build.dir}" />
-	</target>
-
-	<target name="test-compile" depends="compile,test-clean" description="Compiles the test files">
-
-		<taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="groovy.path" />
-
-		<echo message="compiling test infrastructor for ${plugin.jar} ... " />
-		<javac srcdir="test/src" classpathref="test.class.path" debug="true" destdir="${test.build.dir}" includes="org/openstreetmap/josm/plugins/turnrestrictions/fixtures/**/*">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-
-		<echo message="compiling groovy test cases for ${plugin.jar} ... " />
-		<groovyc srcdir="test/src" destdir="${test.build.dir}" classpathref="groovyc.path">
-		</groovyc>
-
-		<echo message="compiling java test cases for ${plugin.jar} ... " />
-		<javac srcdir="test/src" classpathref="test.class.path" debug="true" destdir="${test.build.dir}">
-			<compilerarg value="-Xlint:deprecation" />
-			<compilerarg value="-Xlint:unchecked" />
-		</javac>
-	</target>
-
-	<target name="test-run" depends="test-compile" description="Runs the junit tests">
-		<delete dir="test/output" />
-		<mkdir dir="test/output" />
-
-		<junit printsummary="true" failureproperty="junit.failure">
-			<classpath>
-				<path refid="groovyc.path" />
-				<pathelement location="test/config" />
-				<!-- required for test config file -->
-				<pathelement location="." />
-				<!-- required to load images from subdir 'images/' -->
-			</classpath>
-
-			<test todir="test/output" name='org.openstreetmap.josm.plugins.turnrestrictions.AllUnitTests'>
-				<formatter type="xml" />
-			</test>
-		</junit>
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
+    <!-- ************************************************************************************ -->
+    <!-- * Targets for compiling and running tests                                            -->
+    <!-- ************************************************************************************ -->
+    <property name="eclipse.plugin.dir" value="C:\software\eclipse-3.6.1\plugins"/>
+    <path id="groovy.path">
+        <pathelement location="${eclipse.plugin.dir}/org.codehaus.groovy_1.7.5.xx-20100926-2000-e36-RC1\lib\groovy-all-1.7.5.jar"/>
+    </path>
+    <path id="junit.path">
+        <pathelement location="${eclipse.plugin.dir}/org.junit_4.8.1.v4_8_1_v20100427-1100\junit.jar"/>
+    </path>
+    <path id="fest.library.path">
+        <fileset dir="test/lib">
+            <include name="fest-*.jar"/>
+            <include name="jcp-*.jar"/>
+        </fileset>
+    </path>
+    <path id="test.class.path">
+        <pathelement location="${josm}"/>
+        <pathelement location="${plugin.build.dir}"/>
+        <path refid="groovy.path"/>
+        <path refid="junit.path"/>
+        <path refid="fest.library.path"/>
+    </path>
+    <path id="groovyc.path">
+        <path refid="junit.path"/>
+        <path refid="groovy.path"/>
+        <path refid="fest.library.path"/>
+        <pathelement location="${josm}"/>
+        <pathelement location="${test.build.dir}"/>
+        <pathelement location="${plugin.build.dir}"/>
+        <!-- if we didn't explicitly put hamcrest on the class path, groovyc would
+             abort and report it is missing a hamcrest class -->
+        <pathelement location="test/lib/hamcrest-all-1.2.jar"/>
+    </path>
+    <target name="test-clean">
+        <delete dir="${test.build.dir}"/>
+        <mkdir dir="${test.build.dir}"/>
+    </target>
+    <target name="test-compile" depends="compile,test-clean" description="Compiles the test files">
+        <taskdef name="groovyc" classname="org.codehaus.groovy.ant.Groovyc" classpathref="groovy.path"/>
+        <echo message="compiling test infrastructor for ${plugin.jar} ... "/>
+        <javac srcdir="test/src" classpathref="test.class.path" debug="true" destdir="${test.build.dir}" includes="org/openstreetmap/josm/plugins/turnrestrictions/fixtures/**/*">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+        <echo message="compiling groovy test cases for ${plugin.jar} ... "/>
+        <groovyc srcdir="test/src" destdir="${test.build.dir}" classpathref="groovyc.path">
+        </groovyc>
+        <echo message="compiling java test cases for ${plugin.jar} ... "/>
+        <javac srcdir="test/src" classpathref="test.class.path" debug="true" destdir="${test.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="test-run" depends="test-compile" description="Runs the junit tests">
+        <delete dir="test/output"/>
+        <mkdir dir="test/output"/>
+        <junit printsummary="true" failureproperty="junit.failure">
+            <classpath>
+                <path refid="groovyc.path"/>
+                <pathelement location="test/config"/>
+                <!-- required for test config file -->
+                <pathelement location="."/>
+                <!-- required to load images from subdir 'images/' -->
+            </classpath>
+            <test todir="test/output" name="org.openstreetmap.josm.plugins.turnrestrictions.AllUnitTests">
+                <formatter type="xml"/>
+            </test>
+        </junit>
+    </target>
 </project>
Index: applications/editors/josm/plugins/undelete/build.xml
===================================================================
--- applications/editors/josm/plugins/undelete/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/undelete/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,63 +29,61 @@
 -->
 <project name="undelete" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="adapt to core changes (backwards compatible)" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="adapt to core changes (backwards compatible)"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${plugin.jar.name} ... "/>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${plugin.jar.name} ... "/>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -95,17 +93,16 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Nakor"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.undelete.Undelete"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Allows undeleting object from OSM database"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Undelete"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Nakor"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.undelete.Undelete"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Allows undeleting object from OSM database"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Undelete"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -114,138 +111,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/utilsplugin2/build.xml
===================================================================
--- applications/editors/josm/plugins/utilsplugin2/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/utilsplugin2/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="utilsplugin2" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="extend selection" />
+    <property name="commit.message" value="extend selection"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="4064" />
-
-
+    <property name="plugin.main.version" value="4064"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -81,10 +75,13 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
-                <include name="GPL-v2.0.txt" />
-                <include name="GPL-v3.0.txt" />
+                <include name="README"/>
+                <include name="LICENSE"/>
+                <include name="GPL-v2.0.txt"/>
+                <include name="GPL-v3.0.txt"/>
             </fileset>
         </copy>
@@ -110,5 +107,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -119,5 +115,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -129,5 +124,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -139,5 +133,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -154,6 +147,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -174,7 +165,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -189,5 +179,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -207,5 +196,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -229,10 +217,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -240,5 +227,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -247,9 +234,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/videomapping/build.xml
===================================================================
--- applications/editors/josm/plugins/videomapping/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/videomapping/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,75 +29,74 @@
 -->
 <project name="videomapping" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="videomapping" />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3600" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="videomapping"/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3600"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.6"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="vlcj"                  value="lib/vlcj-1.1.5.1.jar"/>
-	<property name="jna"                  value="lib/jna.jar"/>
-	<property name="platform"                  value="lib/platform.jar"/>
-	<property name="log4j"                  value="lib/log4j.jar"/>
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.6"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="vlcj" value="lib/vlcj-1.1.5.1.jar"/>
+    <property name="jna" value="lib/jna.jar"/>
+    <property name="platform" value="lib/platform.jar"/>
+    <property name="log4j" value="lib/log4j.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-			<classpath>
-				<pathelement location="${vlcj}"/> <!--Add extra libraries -->
-				<pathelement location="${jna}"/>
-				<pathelement location="${platform}"/>
-				<pathelement location="${log4j}"/>
-			</classpath>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+            <classpath>
+                <pathelement location="${vlcj}"/>
+                <!--Add extra libraries -->
+                <pathelement location="${jna}"/>
+                <pathelement location="${platform}"/>
+                <pathelement location="${log4j}"/>
+            </classpath>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -107,22 +106,21 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Matthias Meißer"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.videomapping.VideoPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="(This Plugin is currently work in progress!!!) Links and syncs a georeferenced video against a GPS track, to use it for identify visible objects."/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/VideoMapping"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>				
-			</manifest>
-			<!--added to bundle libs-->
-			<zipfileset src="lib/jna.jar" />
-			<zipfileset src="lib/log4j.jar" />
-			<zipfileset src="lib/platform.jar" />
-			<zipfileset src="lib/vlcj-1.1.5.1.jar" />
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Matthias Meißer"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.videomapping.VideoPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="(This Plugin is currently work in progress!!!) Links and syncs a georeferenced video against a GPS track, to use it for identify visible objects."/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/VideoMapping"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+            <!--added to bundle libs-->
+            <zipfileset src="lib/jna.jar"/>
+            <zipfileset src="lib/log4j.jar"/>
+            <zipfileset src="lib/platform.jar"/>
+            <zipfileset src="lib/vlcj-1.1.5.1.jar"/>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -131,139 +129,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar 
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar 
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/walkingpapers/build.xml
===================================================================
--- applications/editors/josm/plugins/walkingpapers/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/walkingpapers/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is the build.xml for the walkingpaper plugin
@@ -22,156 +22,150 @@
 -->
 <project name="walkingpapers" default="dist" basedir=".">
+    <!--
+    ** update before publishing
+    -->
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <target name="compile" depends="init">
+        <echo message="creating ${plugin.jar}"/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <target name="dist" depends="compile,revision">
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <manifest>
+                <attribute name="Author" value="Frederik Ramm"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.walkingpapers.WalkingPapersPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Supports downloading tiled, scanned maps from walking-papers.org. This plugin is still under early development and may be buggy."/>
+                <attribute name="Plugin-Icon" value="images/preferences/walkingpapers.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/WalkingPapers"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin ***********************************
+        -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-	<!--
-	** update before publishing
-	-->
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-	<target name="compile" depends="init">
-		<echo message="creating ${plugin.jar}"/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-	<target name="dist" depends="compile,revision">
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<manifest>
-				<attribute name="Author" value="Frederik Ramm"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.walkingpapers.WalkingPapersPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Supports downloading tiled, scanned maps from walking-papers.org. This plugin is still under early development and may be buggy."/>
-				<attribute name="Plugin-Icon" value="images/preferences/walkingpapers.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/WalkingPapers"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-	<target name="revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-	<!--
-		 ************************** Publishing the plugin ***********************************
-		-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn' not found. Please make sure svn is installed on your system.">
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn' not found. Please make sure svn is installed on your system.">
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/waydownloader/build.xml
===================================================================
--- applications/editors/josm/plugins/waydownloader/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/waydownloader/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -22,68 +22,65 @@
 -->
 <project name="waydownloader" default="dist" basedir=".">
-
-	<!-- 
+    <!-- 
       ** update before publishing 
-	-->
-	<property name="commit.message" value="Changed the constructor signature of the plugin main class" />
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!--
+    -->
+    <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - complies the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${plugin.jar} ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${plugin.jar} ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -93,18 +90,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Harry Wood"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.waydownloader.WayDownloaderPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Easy downloading along a long set of interconnected ways"/>
-				<attribute name="Plugin-Icon" value="images/way-download.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WayDownloaderPlugin"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Harry Wood"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.waydownloader.WayDownloaderPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Easy downloading along a long set of interconnected ways"/>
+                <attribute name="Plugin-Icon" value="images/way-download.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WayDownloaderPlugin"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -113,139 +109,129 @@
     **********************************************************
     -->
-	<target name="revision">
-
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
     **********************************************************
     ** clean - clean up the build environment
     **********************************************************
     -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
     **********************************************************
     ** install - install the plugin in your local JOSM installation
     **********************************************************
     -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-		 ************************** Publishing the plugin *********************************** 
-	-->
-	<!--
-	** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-	** property ${coreversion.info.entry.revision}
-	**
-	-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-	** commits the source tree for this plugin
-	-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-	** updates (svn up) the source tree for this plugin
-	-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-	** commits the plugin.jar 
-	-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'					
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****					
-						
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking for on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present, core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+         ************************** Publishing the plugin *********************************** 
+    -->
+    <!--
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+    ** property ${coreversion.info.entry.revision}
+    **
+    -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+    ** commits the source tree for this plugin
+    -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+    ** updates (svn up) the source tree for this plugin
+    -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+    ** commits the plugin.jar 
+    -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'                 
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****                 
+                        
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking for on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present, core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/waypoint_search/build.xml
===================================================================
--- applications/editors/josm/plugins/waypoint_search/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/waypoint_search/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,24 +29,20 @@
 -->
 <project name="waypoint_search" default="dist" basedir=".">
-
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="bugfix of search when layer is added" />
+    <property name="commit.message" value="bugfix of search when layer is added"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="3835" />
-
-
+    <property name="plugin.main.version" value="3835"/>
     <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
-    <property name="plugin.dist.dir"        value="../../dist"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
     <property name="ant.build.javac.target" value="1.6"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -57,5 +53,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -70,5 +65,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -81,8 +75,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -107,5 +104,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -115,8 +111,6 @@
     **********************************************************
     -->
-	
-
-    <target name="revision">  	
-         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
             <arg value="info"/>
@@ -125,7 +119,6 @@
         </exec>
         <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-        <delete file="REVISION"/>     	
-    </target>
-
+        <delete file="REVISION"/>
+    </target>
     <!--
     **********************************************************
@@ -137,5 +130,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
@@ -152,6 +144,4 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
-
-
     <!--
     ************************** Publishing the plugin *********************************** 
@@ -172,7 +162,6 @@
         <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
         <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml" />
-    </target>
-
+        <delete file="core.info.xml"/>
+    </target>
     <!--
         ** commits the source tree for this plugin
@@ -187,5 +176,4 @@
         </exec>
     </target>
-
     <!--
         ** updates (svn up) the source tree for this plugin
@@ -205,5 +193,4 @@
         </exec>
     </target>
-
     <!--
         ** commits the plugin.jar 
@@ -227,10 +214,9 @@
         </exec>
     </target>
-
     <!-- ** make sure svn is present as a command line tool ** -->
     <target name="ensure-svn-present">
         <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C" />
-            <arg value="--version" />
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
         </exec>
         <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
@@ -238,5 +224,5 @@
             <condition>
                 <not>
-                    <isset property="svn.exit.code" />
+                    <isset property="svn.exit.code"/>
                 </not>
             </condition>
@@ -245,9 +231,8 @@
             <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
             <condition>
-                <isfailure code="${svn.exit.code}" />
+                <isfailure code="${svn.exit.code}"/>
             </condition>
         </fail>
     </target>
-
     <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     </target>
Index: applications/editors/josm/plugins/wayselector/build.xml
===================================================================
--- applications/editors/josm/plugins/wayselector/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/wayselector/build.xml	(revision 26174)
@@ -1,3 +1,3 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** This is a template build file for a JOSM  plugin.
@@ -29,67 +29,64 @@
 -->
 <project name="wayselector" default="dist" basedir=".">
-
-	<!-- enter the SVN commit message -->
-	<property name="commit.message" value="Optimize WaySelection.findWay()." />
-	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3835" />
-
-
-	<!--
+    <!-- enter the SVN commit message -->
+    <property name="commit.message" value="Optimize WaySelection.findWay()."/>
+    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
+    <property name="plugin.main.version" value="3835"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-	<property name="plugin.build.dir"       value="build"/>
-	<property name="plugin.src.dir"         value="src"/>
-	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="ant.build.javac.target" value="1.5"/>
-	<property name="plugin.dist.dir"        value="../../dist"/>
-	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
-	<!--
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
+    <!-- this is the directory where the plugin jar is copied to -->
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="ant.build.javac.target" value="1.5"/>
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <!--
     **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
-	<target name="init">
-		<mkdir dir="${plugin.build.dir}"/>
-	</target>
-
-	<!--
+    <target name="init">
+        <mkdir dir="${plugin.build.dir}"/>
+    </target>
+    <!--
     **********************************************************
     ** compile - compiles the source tree
     **********************************************************
     -->
-	<target name="compile" depends="init">
-		<echo message="compiling sources for  ${plugin.jar} ... "/>
-		<javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
-			<compilerarg value="-Xlint:deprecation"/>
-			<compilerarg value="-Xlint:unchecked"/>
-		</javac>
-	</target>
-
-	<!--
+    <target name="compile" depends="init">
+        <echo message="compiling sources for  ${plugin.jar} ... "/>
+        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}" includeantruntime="false">
+            <compilerarg value="-Xlint:deprecation"/>
+            <compilerarg value="-Xlint:unchecked"/>
+        </javac>
+    </target>
+    <!--
     **********************************************************
     ** dist - creates the plugin jar
     **********************************************************
     -->
-	<target name="dist" depends="compile,revision">
-		<echo message="creating ${ant.project.name}.jar ... "/>
-		<copy todir="${plugin.build.dir}/resources">
-			<fileset dir="resources"/>
-		</copy>
-		<copy todir="${plugin.build.dir}/images">
-			<fileset dir="images"/>
-		</copy>
-		<copy todir="${plugin.build.dir}">
-			<fileset dir=".">
-				<include name="README" />
-				<include name="LICENSE" />
-			</fileset>
-		</copy>
-		<jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-			<!--
+    <target name="dist" depends="compile,revision">
+        <echo message="creating ${ant.project.name}.jar ... "/>
+        <copy todir="${plugin.build.dir}/resources">
+            <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="images"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
+        <copy todir="${plugin.build.dir}">
+            <fileset dir=".">
+                <include name="README"/>
+                <include name="LICENSE"/>
+            </fileset>
+        </copy>
+        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
+            <!--
         ************************************************
         ** configure these properties. Most of them will be copied to the plugins
@@ -99,18 +96,17 @@
         ************************************************
     -->
-			<manifest>
-				<attribute name="Author" value="Marko Mäkelä"/>
-				<attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.wayselector.WaySelectorPlugin"/>
-				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-				<attribute name="Plugin-Description" value="Select a sequence of non-branching connected ways"/>
-				<attribute name="Plugin-Icon" value="images/way-select.png"/>
-				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WaySelectorPlugin"/>
-				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-			</manifest>
-		</jar>
-	</target>
-
-	<!--
+            <manifest>
+                <attribute name="Author" value="Marko Mäkelä"/>
+                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.wayselector.WaySelectorPlugin"/>
+                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
+                <attribute name="Plugin-Description" value="Select a sequence of non-branching connected ways"/>
+                <attribute name="Plugin-Icon" value="images/way-select.png"/>
+                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WaySelectorPlugin"/>
+                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
+                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+            </manifest>
+        </jar>
+    </target>
+    <!--
     **********************************************************
     ** revision - extracts the current revision number for the
@@ -119,139 +115,129 @@
     **********************************************************
     -->
-	<target name="revision">
+    <target name="revision">
+        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="."/>
+        </exec>
+        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
+        <delete file="REVISION"/>
+    </target>
+    <!--
+    **********************************************************
+    ** clean - clean up the build environment
+    **********************************************************
+    -->
+    <target name="clean">
+        <delete dir="${plugin.build.dir}"/>
+        <delete file="${plugin.jar}"/>
+    </target>
+    <!--
+    **********************************************************
+    ** install - install the plugin in your local JOSM installation
+    **********************************************************
+    -->
+    <target name="install" depends="dist">
+        <property environment="env"/>
+        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
+            <and>
+                <os family="windows"/>
+            </and>
+        </condition>
+        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
+    </target>
+    <!--
+    ************************** Publishing the plugin ***********************************
+    -->
+    <!--
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
+        ** property ${coreversion.info.entry.revision}
+        **
+        -->
+    <target name="core-info">
+        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="info"/>
+            <arg value="--xml"/>
+            <arg value="../../core"/>
+        </exec>
+        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
+        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
+        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
+        <delete file="core.info.xml"/>
+    </target>
+    <!--
+        ** commits the source tree for this plugin
+        -->
+    <target name="commit-current">
+        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="commit"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="."/>
+        </exec>
+    </target>
+    <!--
+        ** updates (svn up) the source tree for this plugin
+        -->
+    <target name="update-current">
+        <echo>Updating plugin source ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="."/>
+        </exec>
+        <echo>Updating ${plugin.jar} ...</echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
+            <env key="LANG" value="C"/>
+            <arg value="up"/>
+            <arg value="../dist/${plugin.jar}"/>
+        </exec>
+    </target>
+    <!--
+        ** commits the plugin.jar
+        -->
+    <target name="commit-dist">
+        <echo>
+    ***** Properties of published ${plugin.jar} *****
+    Commit message    : '${commit.message}'
+    Plugin-Mainversion: ${plugin.main.version}
+    JOSM build version: ${coreversion.info.entry.revision}
+    Plugin-Version    : ${version.entry.commit.revision}
+    ***** / Properties of published ${plugin.jar} *****
 
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="."/>
-		</exec>
-		<xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-		<delete file="REVISION"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** clean - clean up the build environment
-    **********************************************************
-    -->
-	<target name="clean">
-		<delete dir="${plugin.build.dir}"/>
-		<delete file="${plugin.jar}"/>
-	</target>
-
-	<!--
-    **********************************************************
-    ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-	<target name="install" depends="dist">
-		<property environment="env"/>
-		<condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-			<and>
-				<os family="windows"/>
-			</and>
-		</condition>
-		<copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-	</target>
-
-
-	<!--
-	************************** Publishing the plugin ***********************************
-	-->
-	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
-		** property ${coreversion.info.entry.revision}
-		**
-		-->
-	<target name="core-info">
-		<exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="info"/>
-			<arg value="--xml"/>
-			<arg value="../../core"/>
-		</exec>
-		<xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-		<echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-		<echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-		<delete file="core.info.xml" />
-	</target>
-
-	<!--
-		** commits the source tree for this plugin
-		-->
-	<target name="commit-current">
-		<echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="commit"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="."/>
-		</exec>
-	</target>
-
-	<!--
-		** updates (svn up) the source tree for this plugin
-		-->
-	<target name="update-current">
-		<echo>Updating plugin source ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="."/>
-		</exec>
-		<echo>Updating ${plugin.jar} ...</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-			<env key="LANG" value="C"/>
-			<arg value="up"/>
-			<arg value="../dist/${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!--
-		** commits the plugin.jar
-		-->
-	<target name="commit-dist">
-		<echo>
-	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
-	Plugin-Mainversion: ${plugin.main.version}
-	JOSM build version: ${coreversion.info.entry.revision}
-	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
-	Now commiting ${plugin.jar} ...
-	</echo>
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true">
-			<env key="LANG" value="C"/>
-			<arg value="-m '${commit.message}'"/>
-			<arg value="commit"/>
-			<arg value="${plugin.jar}"/>
-		</exec>
-	</target>
-
-	<!-- ** make sure svn is present as a command line tool ** -->
-	<target name="ensure-svn-present">
-		<exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-			<env key="LANG" value="C" />
-			<arg value="--version" />
-		</exec>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-			<!-- return code not set at all? Most likely svn isn't installed -->
-			<condition>
-				<not>
-					<isset property="svn.exit.code" />
-				</not>
-			</condition>
-		</fail>
-		<fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-			<!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-			<condition>
-				<isfailure code="${svn.exit.code}" />
-			</condition>
-		</fail>
-	</target>
-
-	<target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-	</target>
+    Now commiting ${plugin.jar} ...
+    </echo>
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true">
+            <env key="LANG" value="C"/>
+            <arg value="-m '${commit.message}'"/>
+            <arg value="commit"/>
+            <arg value="${plugin.jar}"/>
+        </exec>
+    </target>
+    <!-- ** make sure svn is present as a command line tool ** -->
+    <target name="ensure-svn-present">
+        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
+            <env key="LANG" value="C"/>
+            <arg value="--version"/>
+        </exec>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
+            <!-- return code not set at all? Most likely svn isn't installed -->
+            <condition>
+                <not>
+                    <isset property="svn.exit.code"/>
+                </not>
+            </condition>
+        </fail>
+        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
+            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
+            <condition>
+                <isfailure code="${svn.exit.code}"/>
+            </condition>
+        </fail>
+    </target>
+    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
+    </target>
 </project>
Index: applications/editors/josm/plugins/wms-turbo-challenge2/build.xml
===================================================================
--- applications/editors/josm/plugins/wms-turbo-challenge2/build.xml	(revision 26173)
+++ applications/editors/josm/plugins/wms-turbo-challenge2/build.xml	(revision 26174)
@@ -1,2 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>
 <!--
 ** To build it run
@@ -9,12 +10,11 @@
 -->
 <project name="wms-turbo-challenge2" default="dist" basedir=".">
-    <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
-    <property name="plugin.build.dir"       value="build"/>
-    <property name="plugin.src.dir"         value="src"/>
+    <property name="josm" location="../../core/dist/josm-custom.jar"/>
+    <property name="plugin.build.dir" value="build"/>
+    <property name="plugin.src.dir" value="src"/>
     <!-- this is the directory where the plugin jar is copied to -->
     <property name="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir"        value="../../dist"/>
-    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-
+    <property name="plugin.dist.dir" value="../../dist"/>
+    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
@@ -25,5 +25,4 @@
         <mkdir dir="${plugin.build.dir}"/>
     </target>
-
     <!--
     **********************************************************
@@ -38,5 +37,4 @@
         </javac>
     </target>
-
     <!--
     **********************************************************
@@ -52,8 +50,11 @@
             <fileset dir="images"/>
         </copy>
+        <copy todir="${plugin.build.dir}/data">
+            <fileset dir="data"/>
+        </copy>
         <copy todir="${plugin.build.dir}">
             <fileset dir=".">
-                <include name="README" />
-                <include name="LICENSE" />
+                <include name="README"/>
+                <include name="LICENSE"/>
             </fileset>
         </copy>
@@ -71,5 +72,4 @@
         </jar>
     </target>
-
     <!--
     **********************************************************
@@ -80,5 +80,4 @@
     -->
     <target name="revision">
-
         <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
             <env key="LANG" value="C"/>
@@ -90,5 +89,4 @@
         <delete file="REVISION"/>
     </target>
-
     <!--
     **********************************************************
@@ -100,5 +98,4 @@
         <delete file="${plugin.jar}"/>
     </target>
-
     <!--
     **********************************************************
Index: applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/GameWindow.java
===================================================================
--- applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/GameWindow.java	(revision 26173)
+++ applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/GameWindow.java	(revision 26174)
@@ -5,4 +5,6 @@
  */
 package wmsturbochallenge;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import java.awt.Color;
@@ -39,5 +41,5 @@
 public class GameWindow extends JFrame implements ActionListener {
     public GameWindow(Layer ground) {
-        setTitle("The Ultimate WMS Super-speed Turbo Challenge II");
+        setTitle(tr("The Ultimate WMS Super-speed Turbo Challenge II"));
         setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         setUndecorated(true);
Index: applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/WMSRacer.java
===================================================================
--- applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/WMSRacer.java	(revision 26173)
+++ applications/editors/josm/plugins/wms-turbo-challenge2/src/wmsturbochallenge/WMSRacer.java	(revision 26174)
@@ -5,4 +5,6 @@
  */
 package wmsturbochallenge;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 import org.openstreetmap.josm.gui.layer.Layer;
@@ -38,6 +40,6 @@
 
         public DriveAction() {
-            super("Go driving", "wmsracer",
-                    "Drive a race car on this layer",
+            super(tr("Go driving"), "wmsracer",
+                    tr("Drive a race car on this layer"),
                     null, true);
             setEnabled(false);
