|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.announcement.AbstractAnnouncementMojo
org.apache.maven.plugin.announcement.AnnouncementMojo
public class AnnouncementMojo
Goal which generate the template for an announcement.
Field Summary |
---|
Fields inherited from class org.apache.maven.plugin.announcement.AbstractAnnouncementMojo |
---|
basedir, mavenSession, runOnlyAtExecutionRoot |
Fields inherited from interface org.apache.maven.plugin.Mojo |
---|
ROLE |
Constructor Summary | |
---|---|
AnnouncementMojo()
|
Method Summary | |
---|---|
void |
doGenerate(java.util.List releases)
Add the parameters to velocity context |
protected void |
doGenerate(java.util.List releases,
Release release)
|
void |
doJiraGenerate()
|
void |
execute()
Generate the template |
java.lang.String |
getArtifactId()
|
java.lang.String |
getDevelopmentTeam()
|
java.lang.String |
getFinalName()
|
java.lang.String |
getGroupId()
|
java.lang.String |
getIntroduction()
|
protected java.util.List |
getJiraReleases()
|
Release |
getLatestRelease(java.util.List releases)
Get the latest release by matching the supplied releases with the version from the pom. |
java.io.File |
getOutputDirectory()
|
java.lang.String |
getPackaging()
|
protected Release |
getRelease(java.util.List releases,
java.lang.String version)
Get a release with the specified version from the list of releases. |
java.lang.String |
getUrl()
|
java.lang.String |
getUrlDownload()
|
org.codehaus.plexus.velocity.VelocityComponent |
getVelocity()
|
java.lang.String |
getVersion()
|
ChangesXML |
getXml()
|
java.io.File |
getXmlPath()
|
protected java.util.List |
mergeReleases(java.util.List firstReleases,
java.util.List secondReleases)
Merge releases from one issue tracker with releases from another issue tracker. |
void |
processTemplate(org.apache.velocity.context.Context context,
java.io.File outputDirectory,
java.lang.String template)
Create the velocity template |
void |
setArtifactId(java.lang.String artifactId)
|
void |
setDevelopmentTeam(java.lang.String developmentTeam)
|
void |
setFinalName(java.lang.String finalName)
|
void |
setGroupId(java.lang.String groupId)
|
void |
setIntroduction(java.lang.String introduction)
|
void |
setOutputDirectory(java.io.File outputDirectory)
|
void |
setPackaging(java.lang.String packaging)
|
void |
setUrl(java.lang.String url)
|
void |
setUrlDownload(java.lang.String urlDownload)
|
void |
setVelocity(org.codehaus.plexus.velocity.VelocityComponent velocity)
|
void |
setVersion(java.lang.String version)
|
void |
setXml(ChangesXML xml)
|
void |
setXmlPath(java.io.File xmlPath)
|
Methods inherited from class org.apache.maven.plugin.announcement.AbstractAnnouncementMojo |
---|
isThisTheExecutionRoot |
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 |
---|
public AnnouncementMojo()
Method Detail |
---|
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void doGenerate(java.util.List releases) throws org.apache.maven.plugin.MojoExecutionException
releases
- A List
of Release
s
org.apache.maven.plugin.MojoExecutionException
protected void doGenerate(java.util.List releases, Release release) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public Release getLatestRelease(java.util.List releases) throws org.apache.maven.plugin.MojoExecutionException
releases
- list of releases
Release
that matches the next release of the current project
org.apache.maven.plugin.MojoExecutionException
protected Release getRelease(java.util.List releases, java.lang.String version)
releases
- A list of releasesversion
- The version we want
public void processTemplate(org.apache.velocity.context.Context context, java.io.File outputDirectory, java.lang.String template) throws org.apache.velocity.exception.ResourceNotFoundException, org.apache.velocity.exception.VelocityException, org.apache.maven.plugin.MojoExecutionException
context
- velocity context that has the parameter valuesoutputDirectory
- directory where the file will be generatedtemplate
- velocity template which will the context be merged
ResourceNotFoundException,
- VelocityException, IOException
org.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.VelocityException
org.apache.maven.plugin.MojoExecutionException
public void doJiraGenerate() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.util.List getJiraReleases() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected java.util.List mergeReleases(java.util.List firstReleases, java.util.List secondReleases)
firstReleases
- Releases from the first issue trackersecondReleases
- Releases from the second issue tracker
public java.io.File getXmlPath()
public void setXmlPath(java.io.File xmlPath)
public java.io.File getOutputDirectory()
public void setOutputDirectory(java.io.File outputDirectory)
public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
public java.lang.String getArtifactId()
public void setArtifactId(java.lang.String artifactId)
public java.lang.String getVersion()
public void setVersion(java.lang.String version)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public ChangesXML getXml()
public void setXml(ChangesXML xml)
public java.lang.String getPackaging()
public void setPackaging(java.lang.String packaging)
public java.lang.String getDevelopmentTeam()
public void setDevelopmentTeam(java.lang.String developmentTeam)
public java.lang.String getIntroduction()
public void setIntroduction(java.lang.String introduction)
public org.codehaus.plexus.velocity.VelocityComponent getVelocity()
public void setVelocity(org.codehaus.plexus.velocity.VelocityComponent velocity)
public java.lang.String getFinalName()
public void setFinalName(java.lang.String finalName)
public java.lang.String getUrlDownload()
public void setUrlDownload(java.lang.String urlDownload)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |