Ignore:
Timestamp:
Sep 7, 2010, 11:55:05 AM (12 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #249: Version should autopropagate from build.xml to Illumina.java

It's not fully automatic, but the change is only needed in one place in build.xml. Then run ant update-version.

Also added more <about> information to the extensions.xml file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/base2/net.sf.basedb.illumina/trunk/build.xml

    r1226 r1238  
    1515  <property name="name" value="illumina-plugins" />
    1616  <property name="version" value="1.6pre" />
     17  <property name="minbaseversion" value="2.16"
     18    description="Minimal BASE version required by the plug-ins" />
    1719  <property name="src" location="src" description="Location of source files" />
    1820  <property name="build" location="build" description="Location of compiled files" />
     
    105107      source="${javac.source}"
    106108      target="${javac.target}"
     109      includeantruntime="false"
    107110      >
    108111      <compilerarg value="${javac.arg}" />
     
    117120      >
    118121    </jar>     
     122  </target>
     123 
     124  <target name="update-version">
     125    <echo>Setting version to: ${version}</echo>
     126   
     127    <echo>Illumina.java</echo>
     128    <replaceregexp
     129      file="${src}/net/sf/basedb/illumina/Illumina.java"
     130      match="public static final String VERSION = &#34;.*&#34;;"
     131      replace="public static final String VERSION = &#34;${version}&#34;;"
     132      encoding="UTF-8"
     133    />
     134   
     135    <echo>extensions.xml</echo>
     136    <replaceregexp
     137      file="META-INF/extensions.xml"
     138      match="&lt;version&gt;.*&lt;/version&gt;"
     139      replace="&lt;version&gt;${version}&lt;/version&gt;"
     140      encoding="UTF-8"
     141    />
     142   
     143    <echo>base-plugins.xml</echo>
     144    <replaceregexp
     145      file="META-INF/base-plugins.xml"
     146      match="&lt;minbaseversion&gt;.*&lt;/minbaseversion&gt;"
     147      replace="&lt;minbaseversion&gt;${minbaseversion}&lt;/minbaseversion&gt;"
     148      encoding="UTF-8"
     149      flags="g"
     150    />
     151    <echo>Don't forget to commit the changes to the subversion repository!</echo>
    119152  </target>
    120153 
Note: See TracChangeset for help on using the changeset viewer.