org.kuali.maven.plugin
Class ExtractorMojo

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

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

Extracts information contained in the pom and exposes it as project properties eg major version, scm type, scm url


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ExtractorMojo()
           
 
Method Summary
 void execute()
           
protected  String getMajorVersion(String version)
           
 String getMajorVersionProperty()
           
protected  int getPos(String version)
           
 org.apache.maven.project.MavenProject getProject()
           
protected  String getScmType(org.apache.maven.model.Scm scm)
           
protected  String getScmType(String url)
           
 String getScmTypeProperty()
           
protected  String getScmUrl(org.apache.maven.model.Scm scm)
           
 String getScmUrlProperty()
           
protected  void handleMajorVersion(org.apache.maven.project.MavenProject project)
           
protected  void handleScmType(org.apache.maven.project.MavenProject project)
           
protected  void handleScmUrl(org.apache.maven.project.MavenProject project)
           
protected  boolean isInteger(char c)
           
 void setMajorVersionProperty(String majorVersionProperty)
           
 void setProject(org.apache.maven.project.MavenProject project)
           
 void setScmTypeProperty(String scmTypeProperty)
           
 void setScmUrlProperty(String scmUrlProperty)
           
 
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

ExtractorMojo

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

handleScmUrl

protected void handleScmUrl(org.apache.maven.project.MavenProject project)

handleScmType

protected void handleScmType(org.apache.maven.project.MavenProject project)

getScmUrl

protected String getScmUrl(org.apache.maven.model.Scm scm)

getScmType

protected String getScmType(org.apache.maven.model.Scm scm)

getScmType

protected String getScmType(String url)

handleMajorVersion

protected void handleMajorVersion(org.apache.maven.project.MavenProject project)

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)

getMajorVersionProperty

public String getMajorVersionProperty()

setMajorVersionProperty

public void setMajorVersionProperty(String majorVersionProperty)

getScmTypeProperty

public String getScmTypeProperty()

setScmTypeProperty

public void setScmTypeProperty(String scmTypeProperty)

getScmUrlProperty

public String getScmUrlProperty()

setScmUrlProperty

public void setScmUrlProperty(String scmUrlProperty)


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