Ignore:
Timestamp:
Feb 28, 2011, 12:02:44 PM (11 years ago)
Author:
Nicklas Nordborg
Message:

Adding 'update-version' target to build script and preparing for 1.0-rc1 release.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/build.xml

    r1301 r1302  
    1010  <!-- variables used -->
    1111  <property name="name" value="reggie" />
    12   <property name="version" value="1.0pre" />
     12  <property name="version" value="1.0-rc1" />
    1313  <property name="src" location="src" description="Location of source files" />
    1414  <property name="build" location="build" description="Location of compiled files" />
     
    171171    </sequential>
    172172  </macrodef>
     173 
     174  <target name="update-version">
     175    <echo>Setting version to: ${version}</echo>
     176   
     177    <echo>Reggie.java</echo>
     178    <replaceregexp
     179      file="${src}/net/sf/basedb/reggie/Reggie.java"
     180      match="public static final String VERSION = &#34;.*&#34;;"
     181      replace="public static final String VERSION = &#34;${version}&#34;;"
     182      encoding="UTF-8"
     183    />
     184
     185    <echo>extensions.xml</echo>
     186    <replaceregexp
     187      file="META-INF/extensions.xml"
     188      match="&lt;version&gt;.*&lt;/version&gt;"
     189      replace="&lt;version&gt;${version}&lt;/version&gt;"
     190      encoding="UTF-8"
     191    />
     192
     193    <echo>Don't forget to commit the changes to the subversion repository!</echo>
     194  </target>
     195
    173196</project>
Note: See TracChangeset for help on using the changeset viewer.