org.codehaus.tycho.buildversion
Class ValidateVersionMojo

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

public class ValidateVersionMojo
extends AbstractVersionMojo

Validates project Maven and OSGi versions. For SNAPSHOT versions, OSGi version qualifier must be ".qualifier" and unqualified Maven and OSGi versions must be equal. For RELEASE versions, OSGi and Maven versions must be equal.


Field Summary
 
Fields inherited from class org.codehaus.tycho.buildversion.AbstractVersionMojo
packaging, project, projectTypes
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ValidateVersionMojo()
           
 
Method Summary
 void execute()
           
 void validateReleaseVersion(String mavenVersion, String osgiVersion)
           
 void validateSnapshotVersion(String mavenVersion, String osgiVersion)
           
 
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
 

Constructor Detail

ValidateVersionMojo

public ValidateVersionMojo()
Method Detail

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

validateReleaseVersion

public void validateReleaseVersion(String mavenVersion,
                                   String osgiVersion)
                            throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

validateSnapshotVersion

public void validateSnapshotVersion(String mavenVersion,
                                    String osgiVersion)
                             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2008-2011. All Rights Reserved.