org.apache.maven.announcement

Class AnnouncementMojo

public class AnnouncementMojo extends AbstractMojo

Version: $Id: AnnouncementMojo.java 422 2005-08-26 aqr $

Author: aramirez@exist.com

UNKNOWN: announcement-generate generate-sources Goal which generate the template for announcement test

Method Summary
voiddoGenerate(ChangesXML xml)
Add the parameters to velocity context
voidexecute()
Generate the template
StringgetArtifactId()
StringgetDevelopmentTeam()
StringgetFinalName()
StringgetGroupId()
StringgetIntroduction()
ReleasegetLatestRelease(List releases)
Get the latest release by matching the release in changes.xml and in the version of the pom
StringgetOutputDirectory()
StringgetPackaging()
StringgetUrl()
StringgetUrlDownload()
VelocityComponentgetVelocity()
StringgetVersion()
ChangesXMLgetXml()
StringgetXmlPath()
voidprocessTemplate(Context context, String outputDirectory, String template)
Create the velocity template
voidsetArtifactId(String artifactId)
voidsetDevelopmentTeam(String developmentTeam)
voidsetFinalName(String finalName)
voidsetGroupId(String groupId)
voidsetIntroduction(String introduction)
voidsetOutputDirectory(String outputDirectory)
voidsetPackaging(String packaging)
voidsetUrl(String url)
voidsetUrlDownload(String urlDownload)
voidsetVelocity(VelocityComponent velocity)
voidsetVersion(String version)
voidsetXml(ChangesXML xml)
voidsetXmlPath(String xmlPath)

Method Detail

doGenerate

public void doGenerate(ChangesXML xml)
Add the parameters to velocity context

Parameters: xml parsed changes.xml

Throws: MojoExecutionException

execute

public void execute()
Generate the template

Throws: MojoExecutionException

getArtifactId

public String getArtifactId()

getDevelopmentTeam

public String getDevelopmentTeam()

getFinalName

public String getFinalName()

getGroupId

public String getGroupId()

getIntroduction

public String getIntroduction()

getLatestRelease

public Release getLatestRelease(List releases)
Get the latest release by matching the release in changes.xml and in the version of the pom

Parameters: releases list of releases in changes.xml

Throws: MojoExecutionException

getOutputDirectory

public String getOutputDirectory()

getPackaging

public String getPackaging()

getUrl

public String getUrl()

getUrlDownload

public String getUrlDownload()

getVelocity

public VelocityComponent getVelocity()

getVersion

public String getVersion()

getXml

public ChangesXML getXml()

getXmlPath

public String getXmlPath()

processTemplate

public void processTemplate(Context context, String outputDirectory, String template)
Create the velocity template

Parameters: context velocity context that has the parameter values outputDirectory directory where the file will be generated template velocity template which will the context be merged

Throws: ResourceNotFoundException, VelocityException, IOException

setArtifactId

public void setArtifactId(String artifactId)

setDevelopmentTeam

public void setDevelopmentTeam(String developmentTeam)

setFinalName

public void setFinalName(String finalName)

setGroupId

public void setGroupId(String groupId)

setIntroduction

public void setIntroduction(String introduction)

setOutputDirectory

public void setOutputDirectory(String outputDirectory)

setPackaging

public void setPackaging(String packaging)

setUrl

public void setUrl(String url)

setUrlDownload

public void setUrlDownload(String urlDownload)

setVelocity

public void setVelocity(VelocityComponent velocity)

setVersion

public void setVersion(String version)

setXml

public void setXml(ChangesXML xml)

setXmlPath

public void setXmlPath(String xmlPath)
Copyright © {inceptionYear}-2007 null. All Rights Reserved.