Changeset 6032


Ignore:
Timestamp:
03/17/10 05:34:24 (10 years ago)
Author:
curtis
Message:

More robust handling of SVN metadata in Ant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ant/common.xml

    r6016 r6032  
    3333  <target name="init-svn"> 
    3434    <!-- determine SVN and version statistics --> 
     35    <property name="svn.path" value="${basedir}/.svn/entries"/> 
     36    <available file="${svn.path}" property="svn.present"/> 
    3537    <if> 
    36       <isset property="svn.log"/> 
    37       <else> 
    38         <loadfile property="svn.entries" srcFile="${basedir}/.svn/entries"/> 
     38      <isset property="svn.present"/> 
     39      <then> 
     40        <loadfile property="svn.entries" srcFile="${svn.path}"/> 
    3941 
    4042        <propertyregex property="svn.revision" 
     
    6062          input="${svn.url}" regexp=".*/tags/loci-tools-([^/]*).*" 
    6163          replace="stable \1"/> 
    62       </else> 
     64      </then> 
    6365    </if> 
    6466  </target> 
Note: See TracChangeset for help on using the changeset viewer.