Version 11, last updated by Premek Brada at 10 Jan 10:30 UTC

Description

Tool for automated OSGi bundle versioning. Using subtyping the tool evaluates two bundles for changes, and sets bundle version manifest header of the second bundle accordingly.

Usage

  • Prepare prerequisites (libraries to ./lib folder).
  • Put the tool binary (jar) into the ./lib folder.
  • Create ant task as follows:

      <project name="generate-version" basedir="." default="generate-version">
    
          <target name="declare">
            <path id="lib.path">
              <fileset dir="lib" includes="**/*.jar"/>
           </path>
          <taskdef name="bundleversion" 
              classname="cz.zcu.kiv.osgi.versionGenerator.antTask.AntTask"
              classpathref="lib.path"/>
          </target>
          <target name="generate-version" depends="declare">
             <bundleversion
                 previousversionbundle="file:///... path to bundles ... /cz.zcu.kiv.osgi.tempsensor_0.1.0.jar"
                 currentversionbundle="file:///... path to bundles ... /cz.zcu.kiv.osgi.tempsensor_1.0.0.jar">
           </bundleversion>
         </target>
      </project>
    
  • Set path_to_bundle and bundle names.

  • Run ant task "generate-version".

Download

Prerequisites

License

This software is available under the "Creative Commons BY-NC-SA 3.0 license":http://creativecommons.org/licenses/by-nc-sa/3.0/.