Changeset 1238 for plugins/base2


Ignore:
Timestamp:
Sep 7, 2010, 11:55:05 AM (13 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.

Location:
plugins/base2/net.sf.basedb.illumina/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/base2/net.sf.basedb.illumina/trunk/META-INF/extensions.xml

    r1141 r1238  
    2525
    2626<extensions xmlns="http://base.thep.lu.se/extensions.xsd">
     27  <about>
     28    <name>Illumina extensions</name>
     29    <version>1.6pre</version>
     30    <copyright>BASE 2 development team</copyright>
     31    <email>basedb-users@lists.sourceforge.net</email>
     32    <url>http://baseplugins.thep.lu.se/wiki/net.sf.basedb.illumina</url>
     33  </about>
    2734  <extension
    2835    id="net.sf.basedb.illumina.extensions.overviewplots.illuminaPlots"
  • plugins/base2/net.sf.basedb.illumina/trunk/RELEASE

    r1175 r1238  
    1313 2. Update version numbers.
    1414   
    15     In build.xml: <property name="version" value="A.B" />
    16     In Illumina.java: public ... String VERSION = "A.B";
    17 
    18     Make sure that the required BASE version is correct in several
    19     files: META-INF/base-plugins.xml, wiki page (several places),
    20     build.xml, README, and INSTALL.
     15    In build.xml:
     16      <property name="version" value="A.B" />
     17      <property name="minbaseversion" value="X.Y" />
     18     
     19    Run `ant update-version`. This should put the version
     20    numbers in a lot of files, including, Illumina.java,
     21    META-INF/extensions.xml and META-INF/base-plugins.xml.
     22   
     23    Check (and update if needed) the README and INSTALL
     24    files and the wiki pages (see also step 8 and 9 below):
     25   
     26      http://baseplugins.thep.lu.se/wiki/net.sf.basedb.illumina
     27      http://baseplugins.thep.lu.se/wiki/PluginDownload
    2128
    2229 3. Make sure that the code compiles and can be packaged.
     
    6269 
    6370    In build.xml: <property name="version" value="A.(B+1)pre" />
    64     In Illumina.java: public ... String VERSION = "A.(B+1)pre";
    65     Commit the change to subversion:
     71    Run `ant update-version` and commit the changes to
     72    subversion:
    6673     
    6774    'Preparing for future release A.B+1'.
  • 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.