Ticket #1735: josm-1735-svnant.patch
| File josm-1735-svnant.patch, 1.3 KB (added by , 17 years ago) |
|---|
-
build.xml
13 13 </fileset> 14 14 </path> 15 15 16 <!-- load the svn task --> 17 <typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="classpath"/> 18 16 19 <target name="dist" depends="compile"> 17 20 <!-- jars --> 18 21 <unjar dest="build"> … … 26 29 </fileset> 27 30 </unjar> 28 31 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> 37 35 38 36 <!-- images --> 39 37 <copy todir="build/images"> … … 57 55 <jar destfile="dist/josm-custom.jar" basedir="build"> 58 56 <manifest> 59 57 <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}"/> 62 60 </manifest> 63 61 </jar> 64 62 </target>
