|
||||||||||
| 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 Map<String,Object> |
announceParameters
Map which will be pass to the velocity context |
protected boolean |
anonymous
Flag to know if anonymùous connexion to redmine server is required. |
protected String |
artifactId
|
protected File |
artifactsFile
|
protected Map<File,String> |
artifactUrls
|
protected String |
attachmentLinkTemplate
Template strings per system that is used to discover the URL to use to display an attchment. |
protected Attachment[] |
attachments
|
protected Map<Attachment,String> |
attachmentUrls
|
protected String |
basedir
The current project base directory. |
protected String |
deploymentUrl
|
protected String |
developmentTeam
Name of the team that develops the artifact. |
protected String |
finalName
The name of the artifact to be used in the announcement. |
protected AnnouncementGenerator |
generator
|
protected String |
groupId
|
protected String |
introduction
Short description or introduction of the released artifact. |
protected String |
packaging
Packaging structure for the artifact. |
protected String |
projectUrl
Distribution url of the artifact. |
protected List<?> |
releases
|
protected boolean |
runOnce
A flag to restirct only one run in a build (for multi-module context). |
protected String |
templateDirectory
Directory that contains the template. |
protected String |
templateEncoding
The template encoding. |
protected File |
templateOutputDirectory
Directory where the template file will be generated. |
protected String |
urlDownload
URL where the artifact can be downloaded. |
protected org.codehaus.plexus.velocity.VelocityComponent |
velocity
Velocity Component. |
protected 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 String |
getAnnouncementTemplate()
|
Map<String,Object> |
getAnnounceParameters()
|
String |
getArtifactId()
|
Map<File,String> |
getArtifactUrls()
|
String |
getAttachmentLinkTemplate()
|
Map<Attachment,String> |
getAttachmentUrls()
|
String |
getBasedir()
|
String |
getDeploymentUrl()
|
String |
getDevelopmentTeam()
|
String |
getFinalName()
|
String |
getGroupId()
|
String |
getIntroduction()
|
String |
getPackaging()
|
String |
getProjectUrl()
|
String |
getUrl()
|
String |
getUrlDownload()
|
protected void |
init()
|
boolean |
isAnonymous()
|
protected boolean |
isRunOnce()
|
void |
setAnonymous(boolean anonymous)
|
| Methods inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo |
|---|
afterExecute, checkSkip, closeService, getEncoding, getProject, getProjectId, getRestPassword, getRestUrl, getRestUsername, getVersionId, initReleaseProject, initReleaseUser, initReleaseVersion, isGoalSkip, isRunOnceDone, isSafe, isVerbose, 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 boolean anonymous
true
Note: If set to false, you should fill AbstractRedmineMojo.username
and AbstractRedmineMojo.password properties.
protected File templateOutputDirectory
protected File xmlPath
protected String templateDirectory
Note: This directory must be a subdirectory of
/src/main/resources/ or current project base directory.
protected String templateEncoding
protected Map<String,Object> announceParameters
protected 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 String groupId
protected String artifactId
protected String projectUrl
protected String packaging
protected String finalName
protected String basedir
protected String urlDownload
protected String developmentTeam
protected String introduction
protected boolean runOnce
protected File artifactsFile
protected String deploymentUrl
protected org.codehaus.plexus.velocity.VelocityComponent velocity
protected Attachment[] attachments
protected Map<File,String> artifactUrls
protected Map<Attachment,String> attachmentUrls
protected List<?> releases
protected AnnouncementGenerator generator
| Constructor Detail |
|---|
protected AbstractAnnouncementMojo()
| Method Detail |
|---|
protected abstract String getAnnouncementTemplate()
public boolean isAnonymous()
isAnonymous in interface org.nuiton.io.rest.RestClientConfigurationpublic void setAnonymous(boolean anonymous)
setAnonymous in interface org.nuiton.io.rest.RestClientConfigurationprotected boolean isRunOnce()
isRunOnce in class AbstractRedmineMojoprotected boolean checkRunOnceDone()
checkRunOnceDone in class AbstractRedmineMojo
protected void init()
throws Exception
init in class AbstractRedmineMojoException
protected void doAction()
throws Exception
AbstractRedmineMojo
doAction in class AbstractRedmineMojoExceptionAbstractPlugin.doAction()public String getAttachmentLinkTemplate()
getAttachmentLinkTemplate in interface AnnouncementGeneratorConfigurationpublic String getUrl()
getUrl in interface AnnouncementGeneratorConfigurationpublic String getArtifactId()
getArtifactId in interface AnnouncementGeneratorConfigurationpublic Map<File,String> getArtifactUrls()
getArtifactUrls in interface AnnouncementGeneratorConfigurationpublic Map<Attachment,String> getAttachmentUrls()
getAttachmentUrls in interface AnnouncementGeneratorConfigurationpublic String getBasedir()
getBasedir in interface AnnouncementGeneratorConfigurationpublic String getDeploymentUrl()
getDeploymentUrl in interface AnnouncementGeneratorConfigurationpublic String getDevelopmentTeam()
getDevelopmentTeam in interface AnnouncementGeneratorConfigurationpublic String getFinalName()
getFinalName in interface AnnouncementGeneratorConfigurationpublic String getGroupId()
getGroupId in interface AnnouncementGeneratorConfigurationpublic String getIntroduction()
getIntroduction in interface AnnouncementGeneratorConfigurationpublic String getPackaging()
getPackaging in interface AnnouncementGeneratorConfigurationpublic String getProjectUrl()
getProjectUrl in interface AnnouncementGeneratorConfigurationpublic String getUrlDownload()
getUrlDownload in interface AnnouncementGeneratorConfigurationpublic Map<String,Object> getAnnounceParameters()
getAnnounceParameters in interface AnnouncementGeneratorConfiguration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||