org.codehaus.tycho.buildversion
Class BuildQualifierMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.tycho.buildversion.AbstractVersionMojo
          extended by org.codehaus.tycho.buildversion.BuildQualifierMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class BuildQualifierMojo
extends AbstractVersionMojo

This mojo generates build qualifier according to the rules outlined in http://help.eclipse.org/ganymede/topic/org.eclipse.pde.doc.user/tasks/pde_version_qualifiers.htm 1. explicit -DforceContextQualifier 2. forceContextQualifier from ${project.baseDir}/build.properties 3. the tag that was used to fetch the bundle (only when using map file) 4. a time stamp in the form YYYYMMDDHHMM (ie 200605121600) The generated qualifier is assigned to buildQualifier project property. Unqualified project version is assigned to unqualifiedVersion project property. Unqualified version is calculated based on ${project.version} and can be used for any Tycho project (eclipse-update-site, eclipse-application, etc) and regular maven project. Implementation guarantees that the same timestamp is used for all projects in reactor build. Different projects can use different formats to expand the timestamp, however (highly not recommended but possible).


Field Summary
static String BUILD_QUALIFIER_PROPERTY
           
static String UNQUALIFIED_VERSION_PROPERTY
           
 
Fields inherited from class org.codehaus.tycho.buildversion.AbstractVersionMojo
packaging, project, projectTypes
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BuildQualifierMojo()
           
 
Method Summary
 void execute()
           
 void setFormat(String format)
           
 
Methods inherited from class org.codehaus.tycho.buildversion.AbstractVersionMojo
getOSGiVersion
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILD_QUALIFIER_PROPERTY

public static final String BUILD_QUALIFIER_PROPERTY
See Also:
Constant Field Values

UNQUALIFIED_VERSION_PROPERTY

public static final String UNQUALIFIED_VERSION_PROPERTY
See Also:
Constant Field Values
Constructor Detail

BuildQualifierMojo

public BuildQualifierMojo()
Method Detail

setFormat

public void setFormat(String format)

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException


Copyright © 2008-2011. All Rights Reserved.