org.codehaus.mojo.build
Class HgChangeSetMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.build.HgChangeSetMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

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

Goal which sets project properties for changeSet and changeSetDate from the current Mercurial repository.

Since:
1.0-beta-4
Author:
Tomas Pollak
Is defined by the goal name:
hgchangeset
Requires a Maven project to run:
true

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
HgChangeSetMojo()
           
 
Method Summary
 void execute()
           
protected  java.lang.String getChangeSet()
           
protected  java.lang.String getChangeSetDate(int revision)
           
protected  java.lang.String getChangeSetDateProperty()
           
protected  java.lang.String getChangeSetProperty()
           
protected  java.lang.String getProperty(java.lang.String property)
           
protected  int getRevision()
           
 
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

HgChangeSetMojo

public HgChangeSetMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getChangeSet

protected java.lang.String getChangeSet()
                                 throws org.apache.maven.scm.ScmException,
                                        org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.scm.ScmException
org.apache.maven.plugin.MojoExecutionException

getChangeSetDate

protected java.lang.String getChangeSetDate(int revision)
                                     throws org.apache.maven.scm.ScmException,
                                            org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.scm.ScmException
org.apache.maven.plugin.MojoExecutionException

getChangeSetDateProperty

protected java.lang.String getChangeSetDateProperty()

getChangeSetProperty

protected java.lang.String getChangeSetProperty()

getProperty

protected java.lang.String getProperty(java.lang.String property)

getRevision

protected int getRevision()
                   throws org.apache.maven.scm.ScmException,
                          org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.scm.ScmException
org.apache.maven.plugin.MojoExecutionException


Copyright © 2007-2010 Codehaus. All Rights Reserved.