Changeset 2649


Ignore:
Timestamp:
Sep 19, 2006, 2:27:37 PM (16 years ago)
Author:
Nicklas Nordborg
Message:

Now uses ant task instead of external program to get the subversion revision.
package target now inlcudes the revision in the generated file name.

Location:
trunk
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r2648 r2649  
    5555  <!-- set global properties for this build -->
    5656  <property name="compilerarg" value="-Xlint:unchecked" />
    57   <property name="base.version" value="2.0RC2" />
     57  <property name="base.version" value="2.1" />
    5858  <property environment="env" />
    5959 
     
    134134  </path>
    135135
     136  <path id="subversion.classpath">
     137    <fileset dir="${lib}/svn">
     138      <include name="**/*.jar"/>
     139    </fileset>
     140  </path>
     141 
    136142  <taskdef
    137143    name="hibernatedoclet"
     
    141147  />
    142148
     149  <taskdef
     150    name="svn"
     151    classname="org.tigris.subversion.svnant.SvnTask"
     152    classpathref="subversion.classpath"
     153    description="Task for doing subversion from ant"
     154  />
     155 
    143156  <target
    144157    name="all"
     
    617630    description="Get the current revision number in the subversion and put the value into the base.build property"
    618631    >
     632    <!--
    619633    <exec
    620634      executable="svnversion"
     
    624638      <arg line="." />
    625639    </exec>
     640    -->
     641    <svn>
     642      <status path="./credits.txt" revisionProperty="base.build" />
     643    </svn>
    626644    <echo message="Build #${base.build}" />
    627645  </target>
     
    722740  <target
    723741    name="package"
    724     depends="dist"
     742    depends="dist,svn.revision"
    725743    description="Package the distribution"
    726744    >
    727745    <tar
    728       destfile="base-${base.version}.tar.gz"
     746      destfile="base-${base.version}.${base.build}.tar.gz"
    729747      compression="gzip"
    730748      >
     
    736754    </tar>
    737755    <checksum
    738       file="base-${base.version}.tar.gz"
     756      file="base-${base.version}.${base.build}.tar.gz"
    739757    />
    740758  </target>
Note: See TracChangeset for help on using the changeset viewer.