org.kuali.maven.plugin
Class GetMajorVersionMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.kuali.maven.plugin.GetMajorVersionMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class GetMajorVersionMojo
extends org.apache.maven.plugin.AbstractMojo

Stores the major version of the project as a property. The mojo assumes 3 digit versions eg "1.0.1" and counts "1.0" as the major version


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GetMajorVersionMojo()
           
 
Method Summary
 void execute()
           
protected  String getMajorVersion(String version)
           
protected  int getPos(String version)
           
 org.apache.maven.project.MavenProject getProject()
           
protected  boolean isInteger(char c)
           
 void setProject(org.apache.maven.project.MavenProject project)
           
 
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

GetMajorVersionMojo

public GetMajorVersionMojo()
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

getMajorVersion

protected String getMajorVersion(String version)

getPos

protected int getPos(String version)

isInteger

protected boolean isInteger(char c)

getProject

public org.apache.maven.project.MavenProject getProject()

setProject

public void setProject(org.apache.maven.project.MavenProject project)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.