Changeset 2453 in josm for trunk/build.xml


Ignore:
Timestamp:
2009-11-14T22:20:02+01:00 (9 years ago)
Author:
jttt
Message:

Applied #3899 - patch by jpstotz - Automated creation of REVISION file in Eclipse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r2397 r2453  
    2727                </fileset>
    2828        </path>
     29
    2930       
     31        <!--
     32          ** Used by Eclipse ant builder for updating
     33          ** the REVISION file used by JOSM
     34        -->       
     35        <target name="create-revision-eclipse">
     36                <property name="revision.dir" value="bin"/>
     37                <antcall target="create-revision" />
     38        </target>
     39
    3040        <!--
    3141          ** Creates the REVISION file to be included in the distribution
    3242          -->     
    3343        <target name="create-revision">
    34                 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     44                <property name="revision.dir" value="${build.dir}"/>
     45                <exec append="false" output="REVISION.XML" executable="svn" failifexecutionfails="false">
    3546                                <env key="LANG" value="C"/>
    3647                                <arg value="info"/>
    3748                                <arg value="--xml"/>
    3849                                <arg value="."/>
    39                 </exec>         
    40                 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    41                 <delete file="REVISION"/>
     50                </exec>
     51                <xmlproperty file="REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/>
     52                <delete file="REVISION.XML" />
    4253                <tstamp>
    4354                      <format property="build.tstamp" pattern="yyyy-MM-dd HH:mm:ss"/>
     
    4556
    4657                <property name="version.entry.commit.revision" value="UNKNOWN"/>
    47                 <echo file="${build.dir}/REVISION">
     58                <mkdir dir="${revision.dir}" />
     59                <echo file="${revision.dir}/REVISION">
    4860# automatically generated by JOSM build.xml - do not edit                       
    4961Revision: ${version.entry.commit.revision}
Note: See TracChangeset for help on using the changeset viewer.