|
||||||||||
| 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.GenerateChangesMojo
public class GenerateChangesMojo
Generates the changes.xml file from the Redmine's server to be used by the maven-changes-plugin to generates the release report and send the annoncement mail at a release time.
| 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 String |
actionMapping
The action mapping to the redmine tracker ids. |
protected boolean |
anonymous
Flag to know if anonymùous connexion to redmine server is required. |
protected String |
categoryIds
The comma separated list of category ids to include in the changes.xml Note : If a value is set to empty - that means to include all categories. |
protected String |
changesTitle
The changes file title. |
protected Map<String,String> |
filters
|
protected boolean |
generateOnce
A flag to generate only once in a multi-module project. |
protected boolean |
onlyCurrentVersion
If you only want to show issues for the current version in the report. |
protected String |
releaseDescription
The description of the release. |
protected boolean |
skipGenerateChanges
A flag to skip the goal. |
protected String |
statusIds
The comma separated list of statuses ids to include in the changes.xml Note : If a value is set to empty - that means to include all status. |
protected Map<Integer,String> |
trackerToAction
le mapping entre l'id d'un tracker et le type d'action |
protected File |
xmlPath
The path of the changes.xml file that will be converted into an HTML report. |
| 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 | |
|---|---|
GenerateChangesMojo()
|
|
| Method Summary | |
|---|---|
protected org.apache.maven.plugins.changes.model.ChangesDocument |
buildChangesDocument(Version version,
User user,
IssuesCollector collector)
|
protected boolean |
checkRunOnceDone()
|
protected boolean |
checkSkip()
|
protected void |
doAction()
Re-expose the protected method for test purposes... |
String |
getCategoryIds()
|
protected Map<String,String> |
getFilters()
|
int |
getMaxEntries()
|
String |
getPriorityIds()
|
String |
getProjectId()
|
String |
getStatusIds()
|
String |
getTrackerIds()
|
String |
getVersionId()
|
String |
getVersionNames()
|
protected void |
init()
|
boolean |
isAnonymous()
|
protected boolean |
isGoalSkip()
|
boolean |
isOnlyCurrentVersion()
|
protected boolean |
isRunOnce()
|
void |
setAnonymous(boolean anonymous)
|
void |
setVersionId(String versionId)
|
| Methods inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo |
|---|
afterExecute, closeService, getEncoding, getProject, getRestPassword, getRestUrl, getRestUsername, initReleaseProject, initReleaseUser, initReleaseVersion, 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.IssueCollectorConfiguration |
|---|
isVerbose |
| 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 xmlPath
changes.xml file that will be converted into an HTML report.
protected String releaseDescription
protected String changesTitle
protected boolean onlyCurrentVersion
${project.version} minus
any "-SNAPSHOT" suffix.
protected String actionMapping
add, fix, update, remove
The syntax of mapping is action:id [,action:id]*
Example :
fix:1 fix:1, add:1
protected String statusIds
protected String categoryIds
protected boolean skipGenerateChanges
protected boolean generateOnce
protected Map<Integer,String> trackerToAction
protected Map<String,String> filters
| Constructor Detail |
|---|
public GenerateChangesMojo()
| Method Detail |
|---|
public boolean isAnonymous()
isAnonymous in interface org.nuiton.io.rest.RestClientConfigurationpublic void setAnonymous(boolean anonymous)
setAnonymous in interface org.nuiton.io.rest.RestClientConfigurationprotected boolean isGoalSkip()
isGoalSkip in class AbstractRedmineMojoprotected boolean isRunOnce()
isRunOnce in class AbstractRedmineMojoprotected boolean checkRunOnceDone()
checkRunOnceDone in class AbstractRedmineMojo
protected void init()
throws Exception
init in class AbstractRedmineMojoExceptionprotected boolean checkSkip()
checkSkip in class AbstractRedmineMojo
protected void doAction()
throws Exception
AbstractRedmineMojo
doAction in class AbstractRedmineMojoExceptionAbstractPlugin.doAction()
protected org.apache.maven.plugins.changes.model.ChangesDocument buildChangesDocument(Version version,
User user,
IssuesCollector collector)
throws RedmineServiceException
RedmineServiceExceptionpublic String getProjectId()
getProjectId in interface IssueCollectorConfigurationgetProjectId in class AbstractRedmineMojopublic String getVersionId()
getVersionId in interface IssueCollectorConfigurationgetVersionId in class AbstractRedmineMojopublic boolean isOnlyCurrentVersion()
isOnlyCurrentVersion in interface IssueCollectorConfigurationpublic int getMaxEntries()
getMaxEntries in interface IssueCollectorConfigurationpublic String getPriorityIds()
getPriorityIds in interface IssueCollectorConfigurationpublic void setVersionId(String versionId)
setVersionId in interface IssueCollectorConfigurationpublic String getCategoryIds()
getCategoryIds in interface IssueCollectorConfigurationpublic String getVersionNames()
getVersionNames in interface IssueCollectorConfigurationpublic String getStatusIds()
getStatusIds in interface IssueCollectorConfigurationpublic String getTrackerIds()
getTrackerIds in interface IssueCollectorConfigurationprotected Map<String,String> getFilters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||