org.kuali.maven.plugin
Class GetMajorVersionMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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
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 |
GetMajorVersionMojo
public GetMajorVersionMojo()
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.