Index: /applications/editors/josm/plugins/tageditor/build.xml
===================================================================
--- /applications/editors/josm/plugins/tageditor/build.xml	(revision 16850)
+++ /applications/editors/josm/plugins/tageditor/build.xml	(revision 16851)
@@ -13,10 +13,13 @@
 **    > ant  dist
 **
-** To install the generated plugin locally (in you default plugin directory) run
+** To install the generated plugin locally (in your 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.
+** To build against the core in ../../core, create a correct manifest and deploy to
+** SVN, run
+**
+**    > ant  deploy
+**
 **
 -->
@@ -34,4 +37,5 @@
     <property name="plugin.dist.dir"        value="../../dist"/>
     <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+    <property name="commit.message" value="" />	
 
     <!--
@@ -85,5 +89,5 @@
                 <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="1900"/>
+                <attribute name="Plugin-Mainversion" value="${coreversion.info.entry.revision}"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
             </manifest>
@@ -135,4 +139,17 @@
     </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>
+		<delete file="core.info.xml" />
+	</target>
+
+	
 	<target name="commit-current">
 	    <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
@@ -144,4 +161,5 @@
 	</target>
 
+	
 	<target name="update-current">
 		<echo>Updating basedir ...</echo>
@@ -169,5 +187,5 @@
    	</target>
 	
-	<target name="deploy" depends="commit-current,update-current,dist,commit-dist">
+	<target name="deploy" depends="core-info,commit-current,update-current,dist,commit-dist">
 	</target>
 </project>
