org.apache.maven.plugin.announcement
Class AnnouncementMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.announcement.AbstractAnnouncementMojo
org.apache.maven.plugin.announcement.AnnouncementMojo
- All Implemented Interfaces:
- ContextEnabled, Mojo
public class AnnouncementMojo
- extends AbstractAnnouncementMojo
Goal which generate the template for an announcement.
- Since:
- 2.0-beta-2
- Version:
- $Id: AnnouncementMojo.java 1328936 2012-04-22 19:02:59Z bimargulies $
- Author:
- aramirez@exist.com
- Is defined by the goal name:
- announcement-generate
- Requires the dependencies in this specified scope:
- test
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnouncementMojo
public AnnouncementMojo()
execute
public void execute()
throws MojoExecutionException
- Generate the template
- Throws:
MojoExecutionException
doGenerate
public void doGenerate(List<Release> releases)
throws MojoExecutionException
- Add the parameters to velocity context
- Parameters:
releases
- A List
of Release
s
- Throws:
MojoExecutionException
doGenerate
protected void doGenerate(List<Release> releases,
Release release)
throws MojoExecutionException
- Throws:
MojoExecutionException
processTemplate
public void processTemplate(Context context,
File outputDirectory,
String template,
String announcementFile)
throws ResourceNotFoundException,
VelocityException,
MojoExecutionException
- Create the velocity template
- Parameters:
context
- velocity context that has the parameter valuesoutputDirectory
- directory where the file will be generatedtemplate
- velocity template which will the context be mergedannouncementFile
- The file name of the generated announcement
- Throws:
ResourceNotFoundException,
- VelocityException, IOException
ResourceNotFoundException
VelocityException
MojoExecutionException
getJiraReleases
protected List<Release> getJiraReleases()
throws MojoExecutionException
- Throws:
MojoExecutionException
getTracReleases
protected List<Release> getTracReleases()
throws MojoExecutionException
- Throws:
MojoExecutionException
getArtifactId
public String getArtifactId()
setArtifactId
public void setArtifactId(String artifactId)
getDevelopmentTeam
public String getDevelopmentTeam()
setDevelopmentTeam
public void setDevelopmentTeam(String developmentTeam)
getFinalName
public String getFinalName()
setFinalName
public void setFinalName(String finalName)
getGroupId
public String getGroupId()
setGroupId
public void setGroupId(String groupId)
getIntroduction
public String getIntroduction()
setIntroduction
public void setIntroduction(String introduction)
setIssueTypes
public void setIssueTypes(Map<String,String> issueTypes)
getIssueTypes
public Map<String,String> getIssueTypes()
getOutputDirectory
public File getOutputDirectory()
setOutputDirectory
public void setOutputDirectory(File outputDirectory)
getPackaging
public String getPackaging()
setPackaging
public void setPackaging(String packaging)
getUrl
public String getUrl()
setUrl
public void setUrl(String url)
getUrlDownload
public String getUrlDownload()
setUrlDownload
public void setUrlDownload(String urlDownload)
getVelocity
public VelocityComponent getVelocity()
setVelocity
public void setVelocity(VelocityComponent velocity)
getVersion
public String getVersion()
setVersion
public void setVersion(String version)
getXml
public ChangesXML getXml()
setXml
public void setXml(ChangesXML xml)
getXmlPath
public File getXmlPath()
setXmlPath
public void setXmlPath(File xmlPath)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.