|
||||||||||
| 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.lang.String |
basedir
The current project base directory. |
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 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 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()
|
org.apache.velocity.context.Context |
createVelocityContext(AnnouncementGenerator generator,
java.util.List<?> releases)
|
protected void |
doAction()
Re-expose the protected method for test purposes... |
protected abstract java.lang.String |
getAnnouncementTemplate()
|
protected void |
init()
|
protected boolean |
isRunOnce()
|
| Methods inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo |
|---|
afterExecute, checkSkip, closeService, getEncoding, getProject, getRestPassword, getRestUrl, getRestUsername, 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.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 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 org.codehaus.plexus.velocity.VelocityComponent velocity
| Constructor Detail |
|---|
protected AbstractAnnouncementMojo()
| Method Detail |
|---|
protected abstract java.lang.String getAnnouncementTemplate()
protected boolean isRunOnce()
isRunOnce in class AbstractRedmineMojoprotected boolean checkRunOnceDone()
checkRunOnceDone in class AbstractRedmineMojotrue if the goal was already invoked
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 org.apache.velocity.context.Context createVelocityContext(AnnouncementGenerator generator,
java.util.List<?> releases)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||