public class AnnouncementGenerator extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
AnnouncementGenerator.ArtifactComparator |
| Constructor and Description |
|---|
AnnouncementGenerator(AnnouncementGeneratorConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGenerateAttachmentLinks()
Checks whether links to the issues can be generated.
|
org.apache.velocity.context.Context |
createVelocityContext(List<?> releases) |
void |
doGenerate(org.apache.velocity.app.VelocityEngine engine,
org.apache.velocity.context.Context context,
File out,
String templatePath,
String templateEncoding) |
Map<File,String> |
getArtifactsUrls(String url,
String versionId,
boolean verbose,
File[] files) |
String |
getAttachmentLinkTemplate() |
Map<Attachment,String> |
getAttachmentsUrls(Attachment[] attachments) |
org.apache.maven.plugins.changes.model.Release |
getLatestRelease(List<?> releases,
String releaseVersion)
Get the latest release by matching the supplied releases
with the version from the pom.
|
org.apache.maven.plugin.logging.Log |
getLog() |
protected org.apache.maven.plugins.changes.model.Release |
getRelease(List<?> releases,
String version) |
String |
getUrl() |
protected String |
parseAttachmentLink(String id) |
public AnnouncementGenerator(AnnouncementGeneratorConfiguration configuration)
public String getAttachmentLinkTemplate()
public org.apache.maven.plugin.logging.Log getLog()
public String getUrl()
public Map<Attachment,String> getAttachmentsUrls(Attachment[] attachments)
public Map<File,String> getArtifactsUrls(String url, String versionId, boolean verbose, File[] files)
public org.apache.velocity.context.Context createVelocityContext(List<?> releases) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void doGenerate(org.apache.velocity.app.VelocityEngine engine,
org.apache.velocity.context.Context context,
File out,
String templatePath,
String templateEncoding)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic boolean canGenerateAttachmentLinks()
true if issue links can be generated,
false otherwise.public org.apache.maven.plugins.changes.model.Release getLatestRelease(List<?> releases, String releaseVersion) throws org.apache.maven.plugin.MojoExecutionException
releases - list of releasesreleaseVersion - the release versionRelease that matches the next release of the
current projectorg.apache.maven.plugin.MojoExecutionException - if any pbCopyright © 2009–2015 CodeLutin. All rights reserved.