Ticket #1735: josm-1735-svnant.patch

File josm-1735-svnant.patch, 1.3 KB (added by stephankn, 17 years ago)

patch to fix build process by using svnant

  • build.xml

     
    1313                </fileset>
    1414        </path>
    1515
     16        <!-- load the svn task -->
     17        <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="classpath"/>
     18
    1619        <target name="dist" depends="compile">
    1720                <!-- jars -->
    1821                <unjar dest="build">
     
    2629                        </fileset>
    2730                </unjar>
    2831
    29                 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
    30                         <env key="LANG" value="C"/>
    31                         <arg value="info"/>
    32                         <arg value="--xml"/>
    33                         <arg value="."/>
    34                 </exec>
    35                 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
    36                 <delete file="REVISION"/>
     32                <svn>
     33                        <info target="." verbose="true"/>
     34                </svn>
    3735
    3836                <!-- images -->
    3937                <copy todir="build/images">
     
    5755                <jar destfile="dist/josm-custom.jar" basedir="build">
    5856                        <manifest>
    5957                                <attribute name="Main-class" value="JOSM" />
    60                                 <attribute name="Main-Version" value="${version.entry.commit.revision} SVN"/>
    61                                 <attribute name="Main-Date" value="${version.entry.commit.date}"/>
     58                                <attribute name="Main-Version" value="${svn.info.lastRev} SVN"/>
     59                                <attribute name="Main-Date" value="${svn.info.lastDate}"/>
    6260                        </manifest>
    6361                </jar>
    6462        </target>