Changeset 30309 in osm for applications/editors/josm
- Timestamp:
- 2014-02-27T15:26:00+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/build-common.xml
r30306 r30309 203 203 --> 204 204 <target name="init-git-revision-xml" if="git.svn.fail"> 205 <exec append="false" output="REVISION.XML" executable="git" failifexecutionfails="false" >205 <exec append="false" output="REVISION.XML" executable="git" failifexecutionfails="false" resultproperty="git.info.result"> 206 206 <arg value="log"/> 207 207 <arg value="-1"/> … … 212 212 match="\s*(\d*)\s+(\d{4}-\d{2}-\d{2}.\d{2}\:\d{2}\:\d{2}\s*[+-]\d{2}:?\d{2})\s*$" 213 213 replace="<info><entry><commit revision="\1"><date>\2</date></commit></entry></info>"/> 214 </target> 215 <target name="revision" depends="init-svn-revision-xml, init-git-svn-revision-xml, init-git-revision-xml"> 214 <condition property="git.fail"> 215 <not> 216 <and> 217 <equals arg1="${git.info.result}" arg2="0" /> 218 <length file="REVISION.XML" when="greater" length="1" /> 219 </and> 220 </not> 221 </condition> 222 </target> 223 <target name="init-revision-fallback" if="git.fail"> 224 <tstamp> 225 <format property="current.time" pattern="yyyy-MM-dd'T'HH:mm:ss.SSS" /> 226 </tstamp> 227 <echo file="REVISION.XML"><![CDATA[<info><entry><commit revision="UNKNOWN"><date>${current.time}</date></commit></entry></info>]]></echo> 228 </target> 229 <target name="revision" depends="init-svn-revision-xml, init-git-svn-revision-xml, init-git-revision-xml, init-revision-fallback"> 216 230 <xmlproperty file="REVISION.XML" prefix="version" keepRoot="false" collapseAttributes="true"/> 217 231 <delete file="REVISION.XML"/>
Note:
See TracChangeset
for help on using the changeset viewer.