@Mojo(name="announcement-generate", threadSafe=true) public class AnnouncementMojo extends AbstractAnnouncementMojo
runOnlyAtExecutionRoot
basedir, mavenSession
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
|
File |
getAnnouncementDirectory() |
String |
getArtifactId() |
String |
getDevelopmentTeam() |
String |
getFinalName() |
protected List<Release> |
getGitHubReleases() |
String |
getGroupId() |
String |
getIntroduction() |
Map<String,String> |
getIssueTypes() |
protected List<Release> |
getJiraReleases() |
String |
getPackaging() |
protected List<Release> |
getTracReleases() |
String |
getUrl() |
String |
getUrlDownload() |
org.codehaus.plexus.velocity.VelocityComponent |
getVelocity() |
String |
getVersion() |
ChangesXML |
getXml() |
File |
getXmlPath() |
void |
processTemplate(Context context,
File outputDirectory,
String template,
String announcementFile)
Create the velocity template
|
void |
setAnnouncementDirectory(File announcementDirectory) |
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 |
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
getLog, getPluginContext, setLog, setPluginContext
public void execute() throws MojoExecutionException
MojoExecutionException
public void doGenerate(List<Release> releases) throws MojoExecutionException
releases
- A List
of Release
sMojoExecutionException
protected void doGenerate(List<Release> releases, Release release) throws MojoExecutionException
MojoExecutionException
public void processTemplate(Context context, File outputDirectory, String template, String announcementFile) throws VelocityException, 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, IOExceptionVelocityException
MojoExecutionException
protected List<Release> getJiraReleases() throws MojoExecutionException
MojoExecutionException
protected List<Release> getTracReleases() throws MojoExecutionException
MojoExecutionException
protected List<Release> getGitHubReleases() throws MojoExecutionException
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 getAnnouncementDirectory()
public void setAnnouncementDirectory(File announcementDirectory)
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–2016 The Apache Software Foundation. All rights reserved.