Modify ↓
#19065 closed task (fixed)
Ant: write REVISION to resources/
| Reported by: | simon04 | Owned by: | simon04 |
|---|---|---|---|
| Priority: | normal | Milestone: | 20.05 |
| Component: | Core | Version: | |
| Keywords: | ant revision resources | Cc: |
Description
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?
-
build.xml
diff --git a/build.xml b/build.xml index 77a24027c..794f1f1b9 100644
a b 160 160 ** Creates the REVISION file to be included in the distribution 161 161 --> 162 162 <target name="create-revision" depends="init-properties,init-svn-revision-xml,init-git-revision-xml"> 163 <property name="revision.dir" value="${build.dir}"/> 163 <copy todir="${resources.dir}"> 164 <file file="CONTRIBUTION"/> 165 <file file="README"/> 166 <file file="LICENSE"/> 167 </copy> 164 168 <xmlproperty file="${base.dir}/REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/> 165 169 <delete file="${base.dir}/REVISION.XML"/> 166 170 <tstamp> … … 168 172 </tstamp> 169 173 <property name="version.entry.commit.revision" value="UNKNOWN"/> 170 174 <property name="version.entry.commit.date" value="UNKNOWN"/> 171 <mkdir dir="${revision.dir}"/>172 175 <!-- add Build-Name: ... when making special builds, e.g. DEBIAN --> 173 <echo file="${re vision.dir}/REVISION">176 <echo file="${resources.dir}/REVISION"> 174 177 # automatically generated by JOSM build.xml - do not edit 175 178 Revision: ${version.entry.commit.revision} 176 179 Is-Local-Build: true … … Build-Date: ${build.tstamp} 188 191 <!-- 189 192 ** Main target that builds JOSM and checks XML against schemas 190 193 --> 191 <target name="dist" depends="compile,extract-libraries,epsg,c opy-resources,create-revision,check-schemas">194 <target name="dist" depends="compile,extract-libraries,epsg,create-revision,copy-resources,check-schemas"> 192 195 <echo>Revision ${version.entry.commit.revision}</echo> 193 <copy file="CONTRIBUTION" todir="${build.dir}"/>194 <copy file="README" todir="${build.dir}"/>195 <copy file="LICENSE" todir="${build.dir}"/>196 196 <!-- create josm-custom.jar --> 197 197 <delete file="${dist.jar}"/> 198 198 <jar destfile="${dist.jar}" basedir="${build.dir}" level="${clevel}">
Attachments (0)
Change History (4)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.



This also affects Eclipse, not just IntelliJ (I had been wondering why I was suddenly on an unknown JOSM version, when building/testing features).