Index: applications/editors/josm/plugins/czechaddress/build.xml
===================================================================
--- applications/editors/josm/plugins/czechaddress/build.xml	(revision 32286)
+++ applications/editors/josm/plugins/czechaddress/build.xml	(revision 32306)
@@ -1,116 +1,24 @@
 <?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="ant.build.javac.target" value="1.7"/>
-    <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}" includeantruntime="false">
-            <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"/>
-            <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.czechaddress.CzechAddressPlugin"/>
-            <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-            <attribute name="Plugin-Description" value="Creating and handling address nodes and buildings within Czech Republic."/>
-            <attribute name="Plugin-Link" value="https://wiki.openstreetmap.org/wiki/CS:JOSM/Plugins/CzechAddress"/>
-            <attribute name="Plugin-Icon" value="images/preferences/czech_flag.png"/>
-            <attribute name="Plugin-Mainversion" value="7001"/>
-            <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-        </manifest>
-    </target>
-    <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">
-            <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">
-            <jvmarg value="-Xmx1024m"/>
-            <jvmarg value="-Xdebug"/>
-            <jvmarg value="-ea"/>
-            <jvmarg value="-Djava.net.useSystemProxies=true"/>
-            <classpath>
-                <pathelement location="${plugin.build.dir}"/>
-                <pathelement path="${java.class.path}"/>
-            </classpath>
-            <classpath>
-                <pathelement location="${josm}"/>
-                <pathelement path="${java.class.path}"/>
-            </classpath>
-        </java>
-    </target>
-    <target name="profile" depends="compile" description="Profile CzechAddress with Netbeans">
-        <fail unless="netbeans.home">
-            This target can only run inside the NetBeans IDE.
-        </fail>
-        <nbprofiledirect>
-            <classpath>
-                <pathelement location="${plugin.build.dir}"/>
-            </classpath>
-        </nbprofiledirect>
-        <java classname="JOSM" fork="true">
-            <jvmarg value="${profiler.info.jvmargs.agent}"/>
-            <jvmarg value="-Xmx1024m"/>
-            <classpath>
-                <pathelement location="${plugin.build.dir}"/>
-                <pathelement path="${java.class.path}"/>
-            </classpath>
-            <classpath>
-                <pathelement location="${josm}"/>
-                <pathelement path="${java.class.path}"/>
-            </classpath>
-        </java>
-    </target>
-    <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}"/>
-            <jvmarg value="-Xmx1024m"/>
-            <jvmarg value="-Xdebug"/>
-            <jvmarg value="-ea"/>
-            <classpath>
-                <pathelement location="${plugin.build.dir}"/>
-                <pathelement path="${java.class.path}"/>
-            </classpath>
-            <classpath>
-                <pathelement location="${josm}"/>
-                <pathelement path="${java.class.path}"/>
-            </classpath>
-        </java>
-    </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="7001"/>
+
+    <!-- Configure these properties (replace "..." accordingly).
+         See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
+    -->
+    <property name="plugin.author" value="Radomír Černoch"/>
+    <property name="plugin.class" value="org.openstreetmap.josm.plugins.czechaddress.CzechAddressPlugin"/>
+    <property name="plugin.description" value="Creating and handling address nodes and buildings within Czech Republic."/>
+    <property name="plugin.icon" value="images/preferences/czech_flag.png"/>
+    <property name="plugin.link" value="https://wiki.openstreetmap.org/wiki/CS:JOSM/Plugins/CzechAddress"/>
+    <!--<property name="plugin.early" value="..."/>-->
+    <!--<property name="plugin.requires" value="..."/>-->
+    <!--<property name="plugin.stage" value="..."/>-->
+
+    <!-- ** include targets that all plugins have in common ** -->
+    <import file="../build-common.xml"/>
+  
 </project>
