@Mojo(name="announcement-generate", requiresDependencyResolution=TEST, threadSafe=true) public class AnnouncementMojo extends AbstractAnnouncementMojo
basedir, mavenSession, runOnlyAtExecutionRoot
Constructor and Description |
---|
AnnouncementMojo() |
Modifier and Type | Method and Description |
---|---|
void |
doGenerate(List<Release> releases)
Add the parameters to velocity context
|
protected void |
doGenerate(List<Release> releases,
Release release) |
void |
execute()
Generate the template
|
String |
getArtifactId() |
String |
getDevelopmentTeam() |
String |
getFinalName() |
String |
getGroupId() |
String |
getIntroduction() |
Map<String,String> |
getIssueTypes() |
protected List<Release> |
getJiraReleases() |
File |
getOutputDirectory() |
String |
getPackaging() |
protected List<Release> |
getTracReleases() |
String |
getUrl() |
String |
getUrlDownload() |
org.codehaus.plexus.velocity.VelocityComponent |
getVelocity() |
String |
getVersion() |
ChangesXML |
getXml() |
File |
getXmlPath() |
void |
processTemplate(org.apache.velocity.context.Context context,
File outputDirectory,
String template,
String announcementFile)
Create the velocity template
|
void |
setArtifactId(String artifactId) |
void |
setDevelopmentTeam(String developmentTeam) |
void |
setFinalName(String finalName) |
void |
setGroupId(String groupId) |
void |
setIntroduction(String introduction) |
void |
setIssueTypes(Map<String,String> issueTypes) |
void |
setOutputDirectory(File outputDirectory) |
void |
setPackaging(String packaging) |
void |
setUrl(String url) |
void |
setUrlDownload(String urlDownload) |
void |
setVelocity(org.codehaus.plexus.velocity.VelocityComponent velocity) |
void |
setVersion(String version) |
void |
setXml(ChangesXML xml) |
void |
setXmlPath(File xmlPath) |
isThisTheExecutionRoot
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void doGenerate(List<Release> releases) throws org.apache.maven.plugin.MojoExecutionException
releases
- A List
of Release
sorg.apache.maven.plugin.MojoExecutionException
protected void doGenerate(List<Release> releases, Release release) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void processTemplate(org.apache.velocity.context.Context context, File outputDirectory, String template, String announcementFile) 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 mergedannouncementFile
- The file name of the generated announcementResourceNotFoundException,
- VelocityException, IOExceptionorg.apache.velocity.exception.ResourceNotFoundException
org.apache.velocity.exception.VelocityException
org.apache.maven.plugin.MojoExecutionException
protected List<Release> getJiraReleases() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected List<Release> getTracReleases() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public String getArtifactId()
public void setArtifactId(String artifactId)
public String getDevelopmentTeam()
public void setDevelopmentTeam(String developmentTeam)
public String getFinalName()
public void setFinalName(String finalName)
public String getGroupId()
public void setGroupId(String groupId)
public String getIntroduction()
public void setIntroduction(String introduction)
public File getOutputDirectory()
public void setOutputDirectory(File outputDirectory)
public String getPackaging()
public void setPackaging(String packaging)
public String getUrl()
public void setUrl(String url)
public String getUrlDownload()
public void setUrlDownload(String urlDownload)
public org.codehaus.plexus.velocity.VelocityComponent getVelocity()
public void setVelocity(org.codehaus.plexus.velocity.VelocityComponent velocity)
public String getVersion()
public void setVersion(String version)
public ChangesXML getXml()
public void setXml(ChangesXML xml)
public File getXmlPath()
public void setXmlPath(File xmlPath)
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.