Index: /applications/editors/josm/plugins/getrevision.pl
===================================================================
--- /applications/editors/josm/plugins/getrevision.pl	(revision 10454)
+++ /applications/editors/josm/plugins/getrevision.pl	(revision 10454)
@@ -0,0 +1,17 @@
+#! /usr/bin/perl
+
+my $checkrev = qr/commit[ \n]+revision=\"(\d+)\">/;
+my $text = `svn info --xml .`;
+my $revision = $1 if $text =~ $checkrev;
+foreach my $file (@ARGV)
+{
+  my $ftext = `svn info --xml $file`;
+  my $frevision = $1 if $ftext =~ $checkrev;
+  if($frevision > $revision)
+  {
+    $text = $ftext;
+    $revision = $frevision;
+  }
+}
+
+print $text;
Index: /applications/editors/josm/plugins/osmarender/build.xml
===================================================================
--- /applications/editors/josm/plugins/osmarender/build.xml	(revision 10453)
+++ /applications/editors/josm/plugins/osmarender/build.xml	(revision 10454)
@@ -36,9 +36,8 @@
     <copy tofile="${plugin.build.dir}/osm-map-features.xml"
 	  file="${rendering}/osm-map-features-z17.xml"/>
-    <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+    <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
       <env key="LANG" value="C"/>
-      <arg value="info"/>
-      <arg value="--xml"/>
-      <arg value="."/>
+      <arg value="../getrevision.pl"/>
+      <arg value="osmarender"/>
     </exec>
     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
Index: /applications/editors/josm/plugins/slippy_map_chooser/build.xml
===================================================================
--- /applications/editors/josm/plugins/slippy_map_chooser/build.xml	(revision 10453)
+++ /applications/editors/josm/plugins/slippy_map_chooser/build.xml	(revision 10454)
@@ -25,9 +25,8 @@
       <fileset dir="images" />
     </copy>
-    <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+    <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
       <env key="LANG" value="C"/>
-      <arg value="info"/>
-      <arg value="--xml"/>
-      <arg value="."/>
+      <arg value="../getrevision.pl"/>
+      <arg value="src_jmv"/>
     </exec>
     <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
@@ -62,4 +61,3 @@
     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
   </target>
-
 </project>
