diff --git a/czechaddress/build.xml b/czechaddress/build.xml
index 594d4a4..5551de0 100644
--- a/czechaddress/build.xml
+++ b/czechaddress/build.xml
@@ -6,6 +6,12 @@
     <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.7"/>
+    <!--
+    **********************************************************
+    ** include targets that all plugins have in common
+    **********************************************************
+    -->
+    <import file="../build-common.xml"/>
     <target name="clean" description="Removes all build files and the plugins's jar">
         <delete dir="${plugin.build.dir}"/>
         <delete file="${plugin.jar}"/>
@@ -39,16 +45,6 @@
     <target name="dist" depends="compile">
         <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}" manifestencoding="UTF-8" manifest="${plugin.build.dir}/org/openstreetmap/josm/plugins/czechaddress/MANIFEST.MF"/>
     </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="install" depends="dist">
         <property environment="env"/>
         <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
diff --git a/dataimport/build.xml b/dataimport/build.xml
index e83111e..f8b9de1 100644
--- a/dataimport/build.xml
+++ b/dataimport/build.xml
@@ -18,6 +18,12 @@
     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
+    ** include targets that all plugins have in common
+    **********************************************************
+    -->
+    <import file="../build-common.xml"/>
+    <!--
+    **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
@@ -36,7 +42,7 @@
             <compilerarg value="-Xlint:unchecked"/>
             <classpath>
                 <pathelement location="${josm}"/>
-                <fileset dir="lib">
+                <fileset dir="lib" erroronmissingdir="no">
                     <include name="**/*.jar"/>
                 </fileset>
             </classpath>
@@ -79,23 +85,6 @@
     </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
     **********************************************************
     -->
diff --git a/ext_tools/build.xml b/ext_tools/build.xml
index e1ec1c9..419cfb2 100644
--- a/ext_tools/build.xml
+++ b/ext_tools/build.xml
@@ -11,6 +11,7 @@
     <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.resources.dir" value="resources"/>
     <!-- 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.7"/>
@@ -18,11 +19,18 @@
     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
+    ** include targets that all plugins have in common
+    **********************************************************
+    -->
+    <import file="../build-common.xml"/>
+    <!--
+    **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
     <target name="init">
         <mkdir dir="${plugin.build.dir}"/>
+        <mkdir dir="${plugin.resources.dir}"/>
     </target>
     <!--
     **********************************************************
@@ -81,23 +89,6 @@
     </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
     **********************************************************
     -->
diff --git a/globalsat/build.xml b/globalsat/build.xml
index 59cc4b2..2689803 100644
--- a/globalsat/build.xml
+++ b/globalsat/build.xml
@@ -14,6 +14,12 @@
     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <property name="ant.build.javac.target" value="1.7"/>
     <property name="RXTX" location="./libs/RXTXcomm.jar"/>
+    <!--
+    **********************************************************
+    ** include targets that all plugins have in common
+    **********************************************************
+    -->
+    <import file="../build-common.xml"/>
     <target name="init">
         <mkdir dir="${plugin.build.dir}"/>
     </target>
@@ -49,16 +55,6 @@
             </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}"/>
diff --git a/gpsblam/build.xml b/gpsblam/build.xml
index 3dbce20..1bab608 100644
--- a/gpsblam/build.xml
+++ b/gpsblam/build.xml
@@ -12,7 +12,10 @@
     **********************************************************
     -->
     <import file="../build-common.xml"/>
-  
+    <target name="init">
+        <mkdir dir="resources"/>
+        <mkdir dir="build"/>
+    </target>
     <!--
     **********************************************************
     ** dist - creates the plugin jar
diff --git a/infomode/build.xml b/infomode/build.xml
index 50b62a1..1063d1d 100644
--- a/infomode/build.xml
+++ b/infomode/build.xml
@@ -8,6 +8,7 @@
     <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.resources.dir" value="resources"/>
     <!-- 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.7"/>
@@ -15,11 +16,18 @@
     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
+    ** include targets that all plugins have in common
+    **********************************************************
+    -->
+    <import file="../build-common.xml"/>
+    <!--
+    **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
     <target name="init">
         <mkdir dir="${plugin.build.dir}"/>
+        <mkdir dir="${plugin.resources.dir}"/>
     </target>
     <!--
     **********************************************************
@@ -79,23 +87,6 @@
     </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
     **********************************************************
     -->
@@ -118,10 +109,10 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
     <!--
-    ************************** Publishing the plugin *********************************** 
+    ************************** Publishing the plugin ***********************************
     -->
     <!--
-    ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+    ** extracts the JOSM release for the JOSM version in ../core and saves it in the
     ** property ${coreversion.info.entry.revision}
     -->
     <target name="core-info">
@@ -165,12 +156,12 @@
     <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">
diff --git a/irsrectify/build.xml b/irsrectify/build.xml
index 93c82a3..6554515 100644
--- a/irsrectify/build.xml
+++ b/irsrectify/build.xml
@@ -18,6 +18,12 @@
     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <!--
     **********************************************************
+    ** include targets that all plugins have in common
+    **********************************************************
+    -->
+    <import file="../build-common.xml"/>
+    <!--
+    **********************************************************
     ** init - initializes the build
     **********************************************************
     -->
@@ -79,23 +85,6 @@
     </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
     **********************************************************
     -->
@@ -118,10 +107,10 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
     <!--
-    ************************** Publishing the plugin *********************************** 
+    ************************** Publishing the plugin ***********************************
     -->
     <!--
-        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
         ** property ${coreversion.info.entry.revision}
         **
         -->
@@ -167,17 +156,17 @@
         </exec>
     </target>
     <!--
-        ** commits the plugin.jar 
+        ** 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">
diff --git a/no_more_mapping/build.xml b/no_more_mapping/build.xml
index fe6eacb..8f948c3 100644
--- a/no_more_mapping/build.xml
+++ b/no_more_mapping/build.xml
@@ -20,9 +20,6 @@
     -->
     <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>
diff --git a/openvisible/build.xml b/openvisible/build.xml
index 3306760..d3c03e6 100644
--- a/openvisible/build.xml
+++ b/openvisible/build.xml
@@ -5,6 +5,12 @@
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
     <property name="plugin.main.version" value="7001"/>
     <!--
+    **********************************************************
+    ** include targets that all plugins have in common
+    **********************************************************
+    -->
+    <import file="../build-common.xml"/>
+    <!--
       ************************************************
       ** should not be necessary to change the following properties
      -->
@@ -44,16 +50,6 @@
             </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}"/>
@@ -68,10 +64,10 @@
         <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     </target>
     <!--
-    ************************** Publishing the plugin *********************************** 
+    ************************** Publishing the plugin ***********************************
     -->
     <!--
-        ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
+        ** extracts the JOSM release for the JOSM version in ../core and saves it in the
         ** property ${coreversion.info.entry.revision}
         **
         -->
@@ -117,17 +113,17 @@
         </exec>
     </target>
     <!--
-        ** commits the plugin.jar 
+        ** 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">
diff --git a/osmarender/build.xml b/osmarender/build.xml
index f65095f..fa5375d 100644
--- a/osmarender/build.xml
+++ b/osmarender/build.xml
@@ -22,24 +22,4 @@
         <copy tofile="${plugin.build.dir}/osm-map-features.xml" file="${stylesheets}/osm-map-features-z17.xml"/>
     </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>
-
 </project>
diff --git a/routes/build.xml b/routes/build.xml
index 85be3e9..4eb075e 100644
--- a/routes/build.xml
+++ b/routes/build.xml
@@ -5,10 +5,18 @@
     <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.lib.dir" value="lib"/>
     <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     <property name="ant.build.javac.target" value="1.7"/>
+    <!--
+    **********************************************************
+    ** include targets that all plugins have in common
+    **********************************************************
+    -->
+    <import file="../build-common.xml"/>
     <target name="init">
         <mkdir dir="${plugin.build.dir}"/>
+        <mkdir dir="${plugin.lib.dir}"/>
     </target>
     <target name="compile" depends="init">
         <echo message="creating ${plugin.jar}"/>
@@ -40,16 +48,6 @@
             </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}"/>
diff --git a/tagging-preset-tester/build.xml b/tagging-preset-tester/build.xml
index efc1653..7d15dfe 100644
--- a/tagging-preset-tester/build.xml
+++ b/tagging-preset-tester/build.xml
@@ -7,6 +7,12 @@
     <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.7"/>
+    <!--
+    **********************************************************
+    ** include targets that all plugins have in common
+    **********************************************************
+    -->
+    <import file="../build-common.xml"/>
     <target name="init">
         <mkdir dir="${plugin.build.dir}"/>
     </target>
@@ -41,16 +47,6 @@
             </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}"/>
diff --git a/turnlanes/build.xml b/turnlanes/build.xml
index 5815fbe..e4197bf 100644
--- a/turnlanes/build.xml
+++ b/turnlanes/build.xml
@@ -12,7 +12,6 @@
     **********************************************************
     -->
     <import file="../build-common.xml"/>
-
     <!--
     **********************************************************
     ** dist - creates the plugin jar
@@ -20,9 +19,6 @@
     -->
     <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>
