Index: .project
===================================================================
--- .project	(revision 2437)
+++ .project	(working copy)
@@ -1,17 +1,27 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>JOSM</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-	</natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>JOSM</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
+			<triggers>full,incremental,</triggers>
+			<arguments>
+				<dictionary>
+					<key>LaunchConfigHandle</key>
+					<value>&lt;project&gt;/.externalToolBuilders/revision.launch</value>
+				</dictionary>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>
Index: build.xml
===================================================================
--- build.xml	(revision 2437)
+++ build.xml	(working copy)
@@ -26,25 +26,37 @@
 			<include name="**/*.jar"/>
 		</fileset>
 	</path>
+
 	
 	<!--
+	  ** Used by Eclipse ant builder for updating 
+	  ** the REVISION file used by JOSM
+	--> 	  
+	<target name="create-revision-eclipse">
+		<property name="revision.dir" value="bin"/>
+		<antcall target="create-revision" />
+	</target>
+
+	<!--
 	  ** Creates the REVISION file to be included in the distribution
 	  --> 	  
 	<target name="create-revision">
-		<exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
+		<property name="revision.dir" value="${build.dir}"/>
+		<exec append="false" output="REVISION.XML" 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"/>
+		</exec>
+		<xmlproperty file="REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/>
+		<delete file="REVISION.XML" />
 		<tstamp>
 		      <format property="build.tstamp" pattern="yyyy-MM-dd HH:mm:ss"/>
 		</tstamp>
 
 		<property name="version.entry.commit.revision" value="UNKNOWN"/>
-		<echo file="${build.dir}/REVISION">
+		<mkdir dir="${revision.dir}" />
+		<echo file="${revision.dir}/REVISION">
 # automatically generated by JOSM build.xml - do not edit 			
 Revision: ${version.entry.commit.revision}
 Is-Local-Build: true
Index: .externalToolBuilders/revision.launch
===================================================================
--- .externalToolBuilders/revision.launch	(revision 0)
+++ .externalToolBuilders/revision.launch	(revision 0)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
+<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_AFTER_CLEAN_TARGETS" value="create-revision-eclipse,"/>
+<stringAttribute key="org.eclipse.ant.ui.ATTR_ANT_MANUAL_TARGETS" value="create-revision-eclipse,"/>
+<booleanAttribute key="org.eclipse.ant.ui.ATTR_TARGETS_UPDATED" value="true"/>
+<booleanAttribute key="org.eclipse.ant.ui.DEFAULT_VM_INSTALL" value="false"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"/>
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
+<stringAttribute key="org.eclipse.jdt.launching.CLASSPATH_PROVIDER" value="org.eclipse.ant.ui.AntClasspathProvider"/>
+<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value=""/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${build_project}/build.xml"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${build_project}"/>
+<stringAttribute key="process_factory_id" value="org.eclipse.ant.ui.remoteAntProcessFactory"/>
+</launchConfiguration>

