|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.jredmine.plugin.AbstractRedmineMojo
org.nuiton.jredmine.plugin.announcement.AbstractAnnouncementMojo
public abstract class AbstractAnnouncementMojo
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
announceParameters
Map which will be pass to the velocity context |
protected java.lang.String |
artifactId
|
protected java.io.File |
artifactsFile
|
protected java.util.Map<java.io.File,java.lang.String> |
artifactUrls
|
protected java.lang.String |
attachmentLinkTemplate
Template strings per system that is used to discover the URL to use to display an attchment. |
protected Attachment[] |
attachments
|
protected java.util.Map<Attachment,java.lang.String> |
attachmentUrls
|
protected java.lang.String |
basedir
The current project base directory. |
protected java.lang.String |
deploymentUrl
|
protected java.lang.String |
developmentTeam
Name of the team that develops the artifact. |
protected java.lang.String |
finalName
The name of the artifact to be used in the announcement. |
protected AnnouncementGenerator |
generator
|
protected java.lang.String |
groupId
|
protected java.lang.String |
introduction
Short description or introduction of the released artifact. |
protected java.lang.String |
packaging
Packaging structure for the artifact. |
protected java.lang.String |
projectUrl
Distribution url of the artifact. |
protected java.util.List<?> |
releases
|
protected boolean |
runOnce
A flag to restirct only one run in a build (for multi-module context). |
protected java.lang.String |
templateDirectory
Directory that contains the template. |
protected java.lang.String |
templateEncoding
The template encoding. |
protected java.io.File |
templateOutputDirectory
Directory where the template file will be generated. |
protected java.lang.String |
urlDownload
URL where the artifact can be downloaded. |
protected org.codehaus.plexus.velocity.VelocityComponent |
velocity
Velocity Component. |
protected java.io.File |
xmlPath
The path of the changes.xml file. |
| Fields inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo |
|---|
dateFormat, encoding, initOk, password, project, projectId, REDMINE_SYSTEM, releaseProject, releaseUser, releaseVersion, runOnceDone, safe, service, serviceInit, session, url, username, users, verbose, versionId |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
protected |
AbstractAnnouncementMojo()
|
| Method Summary | |
|---|---|
protected boolean |
checkRunOnceDone()
|
protected void |
doAction()
Re-expose the protected method for test purposes... |
protected abstract java.lang.String |
getAnnouncementTemplate()
|
java.util.Map<java.lang.String,java.lang.Object> |
getAnnounceParameters()
|
java.lang.String |
getArtifactId()
|
java.util.Map<java.io.File,java.lang.String> |
getArtifactUrls()
|
java.lang.String |
getAttachmentLinkTemplate()
|
java.util.Map<Attachment,java.lang.String> |
getAttachmentUrls()
|
java.lang.String |
getBasedir()
|
java.lang.String |
getDeploymentUrl()
|
java.lang.String |
getDevelopmentTeam()
|
java.lang.String |
getFinalName()
|
java.lang.String |
getGroupId()
|
java.lang.String |
getIntroduction()
|
java.lang.String |
getPackaging()
|
java.lang.String |
getProjectUrl()
|
java.lang.String |
getUrl()
|
java.lang.String |
getUrlDownload()
|
protected void |
init()
|
protected boolean |
isRunOnce()
|
| Methods inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo |
|---|
afterExecute, checkSkip, closeService, getEncoding, getProject, getProjectId, getRestPassword, getRestUrl, getRestUsername, getVersionId, initReleaseProject, initReleaseUser, initReleaseVersion, isAnonymous, isGoalSkip, isRunOnceDone, isSafe, isVerbose, setAnonymous, setEncoding, setProject, setRestPassword, setRestUrl, setRestUsername, setSafe, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, backupFile, checkPackaging, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.nuiton.jredmine.plugin.announcement.AnnouncementGeneratorConfiguration |
|---|
getLog, getProject, getVersionId |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected java.io.File templateOutputDirectory
protected java.io.File xmlPath
protected java.lang.String templateDirectory
Note: This directory must be a subdirectory of
/src/main/resources/ or current project base directory.
protected java.lang.String templateEncoding
protected java.util.Map<java.lang.String,java.lang.Object> announceParameters
protected java.lang.String attachmentLinkTemplate
There are 2 template tokens you can use. %URL%: this is computed by getting the
<issueManagement>/<url> value from the POM, and removing the last '/'
and everything that comes after it. %FILE%: this is the issue number.
protected java.lang.String groupId
protected java.lang.String artifactId
protected java.lang.String projectUrl
protected java.lang.String packaging
protected java.lang.String finalName
protected java.lang.String basedir
protected java.lang.String urlDownload
protected java.lang.String developmentTeam
protected java.lang.String introduction
protected boolean runOnce
protected java.io.File artifactsFile
protected java.lang.String deploymentUrl
protected org.codehaus.plexus.velocity.VelocityComponent velocity
protected Attachment[] attachments
protected java.util.Map<java.io.File,java.lang.String> artifactUrls
protected java.util.Map<Attachment,java.lang.String> attachmentUrls
protected java.util.List<?> releases
protected AnnouncementGenerator generator
| Constructor Detail |
|---|
protected AbstractAnnouncementMojo()
| Method Detail |
|---|
protected abstract java.lang.String getAnnouncementTemplate()
protected boolean isRunOnce()
isRunOnce in class AbstractRedmineMojoprotected boolean checkRunOnceDone()
checkRunOnceDone in class AbstractRedmineMojo
protected void init()
throws java.lang.Exception
init in class AbstractRedmineMojojava.lang.Exception
protected void doAction()
throws java.lang.Exception
AbstractRedmineMojo
doAction in class AbstractRedmineMojojava.lang.ExceptionAbstractPlugin.doAction()public java.lang.String getAttachmentLinkTemplate()
getAttachmentLinkTemplate in interface AnnouncementGeneratorConfigurationpublic java.lang.String getUrl()
getUrl in interface AnnouncementGeneratorConfigurationpublic java.lang.String getArtifactId()
getArtifactId in interface AnnouncementGeneratorConfigurationpublic java.util.Map<java.io.File,java.lang.String> getArtifactUrls()
getArtifactUrls in interface AnnouncementGeneratorConfigurationpublic java.util.Map<Attachment,java.lang.String> getAttachmentUrls()
getAttachmentUrls in interface AnnouncementGeneratorConfigurationpublic java.lang.String getBasedir()
getBasedir in interface AnnouncementGeneratorConfigurationpublic java.lang.String getDeploymentUrl()
getDeploymentUrl in interface AnnouncementGeneratorConfigurationpublic java.lang.String getDevelopmentTeam()
getDevelopmentTeam in interface AnnouncementGeneratorConfigurationpublic java.lang.String getFinalName()
getFinalName in interface AnnouncementGeneratorConfigurationpublic java.lang.String getGroupId()
getGroupId in interface AnnouncementGeneratorConfigurationpublic java.lang.String getIntroduction()
getIntroduction in interface AnnouncementGeneratorConfigurationpublic java.lang.String getPackaging()
getPackaging in interface AnnouncementGeneratorConfigurationpublic java.lang.String getProjectUrl()
getProjectUrl in interface AnnouncementGeneratorConfigurationpublic java.lang.String getUrlDownload()
getUrlDownload in interface AnnouncementGeneratorConfigurationpublic java.util.Map<java.lang.String,java.lang.Object> getAnnounceParameters()
getAnnounceParameters in interface AnnouncementGeneratorConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||