org.codehaus.tycho.buildversion
Class BuildQualifierMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.tycho.buildversion.AbstractVersionMojo
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).
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
BUILD_QUALIFIER_PROPERTY
public static final java.lang.String BUILD_QUALIFIER_PROPERTY
- See Also:
- Constant Field Values
UNQUALIFIED_VERSION_PROPERTY
public static final java.lang.String UNQUALIFIED_VERSION_PROPERTY
- See Also:
- Constant Field Values
BuildQualifierMojo
public BuildQualifierMojo()
setFormat
public void setFormat(java.lang.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.