Index: build.xml
===================================================================
--- build.xml	(revision 1136)
+++ build.xml	(working copy)
@@ -13,6 +13,9 @@
 		</fileset>
 	</path>
 
+	<!-- load the svn task -->
+	<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="classpath"/>
+
 	<target name="dist" depends="compile">
 		<!-- jars -->
 		<unjar dest="build">
@@ -26,14 +29,9 @@
 			</fileset>
 		</unjar>
 
-		<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"/>
+		<svn>
+			<info target="." verbose="true"/>
+		</svn>
 
 		<!-- images -->
 		<copy todir="build/images">
@@ -57,8 +55,8 @@
 		<jar destfile="dist/josm-custom.jar" basedir="build">
 			<manifest>
 				<attribute name="Main-class" value="JOSM" />
-				<attribute name="Main-Version" value="${version.entry.commit.revision} SVN"/>
-				<attribute name="Main-Date" value="${version.entry.commit.date}"/>
+				<attribute name="Main-Version" value="${svn.info.lastRev} SVN"/>
+				<attribute name="Main-Date" value="${svn.info.lastDate}"/>
 			</manifest>
 		</jar>
 	</target>
