﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
19065	Ant: write REVISION to resources/	simon04	simon04	"`CONTRIBUTION`, `REVISION`, `README`, `LICENSE` are additional resource files.

For an easier IDE setup (IntelliJ), those files should be copied/written to the `resources/` directory.

Vincent, can I apply the following patch?

{{{
#!patch
diff --git a/build.xml b/build.xml
index 77a24027c..794f1f1b9 100644
--- a/build.xml
+++ b/build.xml
@@ -160,7 +160,11 @@
       ** Creates the REVISION file to be included in the distribution
     -->
     <target name=""create-revision"" depends=""init-properties,init-svn-revision-xml,init-git-revision-xml"">
-        <property name=""revision.dir"" value=""${build.dir}""/>
+        <copy todir=""${resources.dir}"">
+            <file file=""CONTRIBUTION""/>
+            <file file=""README""/>
+            <file file=""LICENSE""/>
+        </copy>
         <xmlproperty file=""${base.dir}/REVISION.XML"" prefix=""version"" keepRoot=""false"" collapseAttributes=""true""/>
         <delete file=""${base.dir}/REVISION.XML""/>
         <tstamp>
@@ -168,9 +172,8 @@
         </tstamp>
         <property name=""version.entry.commit.revision"" value=""UNKNOWN""/>
         <property name=""version.entry.commit.date"" value=""UNKNOWN""/>
-        <mkdir dir=""${revision.dir}""/>
         <!-- add Build-Name: ... when making special builds, e.g. DEBIAN -->
-        <echo file=""${revision.dir}/REVISION"">
+        <echo file=""${resources.dir}/REVISION"">
 # automatically generated by JOSM build.xml - do not edit
 Revision: ${version.entry.commit.revision}
 Is-Local-Build: true
@@ -188,11 +191,8 @@ Build-Date: ${build.tstamp}
     <!--
       ** Main target that builds JOSM and checks XML against schemas
     -->
-    <target name=""dist"" depends=""compile,extract-libraries,epsg,copy-resources,create-revision,check-schemas"">
+    <target name=""dist"" depends=""compile,extract-libraries,epsg,create-revision,copy-resources,check-schemas"">
         <echo>Revision ${version.entry.commit.revision}</echo>
-        <copy file=""CONTRIBUTION"" todir=""${build.dir}""/>
-        <copy file=""README"" todir=""${build.dir}""/>
-        <copy file=""LICENSE"" todir=""${build.dir}""/>
         <!-- create josm-custom.jar -->
         <delete file=""${dist.jar}""/>
         <jar destfile=""${dist.jar}"" basedir=""${build.dir}"" level=""${clevel}"">
}}}"	task	closed	normal	20.05	Core		fixed	ant revision resources	
