@Mojo(name="generate-changes",
requiresOnline=true,
requiresProject=true)
public class GenerateChangesMojo
extends AbstractRedmineMojoWithProjectAndVersion
implements IssueCollectorConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected String |
actionMapping
The action mapping to the redmine tracker ids.
|
protected boolean |
anonymous
Flag to know if anonymous 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. |
releaseVersion, versionIdprojectId, releaseProject, releaseUser, usersdateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, runOnceDone, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
GenerateChangesMojo() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getStatusIds() |
String |
getTrackerIds() |
String |
getVersionNames() |
protected void |
init() |
boolean |
isAnonymous() |
protected boolean |
isGoalSkip() |
boolean |
isOnlyCurrentVersion() |
protected boolean |
isRunOnce() |
void |
setAnonymous(boolean anonymous) |
getVersionId, initReleaseVersion, setVersionIdgetProjectId, initReleaseProject, initReleaseUser, setProjectIdafterExecute, closeService, getApiKey, getEncoding, getProject, getRestPassword, getRestUrl, getRestUsername, isRunOnceDone, isSafe, isVerbose, setApiKey, setEncoding, setProject, setRestPassword, setRestUrl, setRestUsername, setSafe, setVerboseacceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, backupFile, checkEncoding, checkPackaging, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProjectId, getVersionId, isVerbose, setVersionId@Parameter(property="redmine.anonymous",
defaultValue="true")
protected boolean anonymous
true
Note: If set to false, you should fill AbstractRedmineMojo.username
and AbstractRedmineMojo.password properties.@Parameter(property="redmine.xmlPath",
defaultValue="${basedir}/src/changes/changes.xml",
required=true)
protected File xmlPath
changes.xml file that will be converted into an HTML report.@Parameter(property="releaseDescription") protected String releaseDescription
@Parameter(property="changesTitle",
defaultValue="${project.description}",
required=true)
protected String changesTitle
@Parameter(property="redmine.onlyCurrentVersion",
defaultValue="false")
protected boolean onlyCurrentVersion
${project.version} minus
any "-SNAPSHOT" suffix.@Parameter(property="redmine.actionMapping",
required=true)
protected String actionMapping
add, fix, update, remove
The syntax of mapping is action:id [,action:id]*
Example :
fix:1 fix:1, add:1
@Parameter(property="redmine.statusIds") protected String statusIds
@Parameter(property="redmine.categoryIds") protected String categoryIds
@Parameter(property="redmine.skipGenerateChanges",
defaultValue="false")
protected boolean skipGenerateChanges
@Parameter(property="redmine.generateOnce",
defaultValue="true")
protected boolean generateOnce
protected Map<Integer,String> trackerToAction
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 AbstractRedmineMojoprotected void init()
throws Exception
init in class AbstractRedmineMojoWithProjectAndVersionExceptionprotected boolean checkSkip()
checkSkip in class AbstractRedmineMojoWithProjectAndVersionprotected void doAction()
throws Exception
AbstractRedmineMojodoAction in class AbstractRedmineMojoException - if any problemsprotected org.apache.maven.plugins.changes.model.ChangesDocument buildChangesDocument(Version version, User user, IssuesCollector collector) throws RedmineServiceException
RedmineServiceExceptionpublic boolean isOnlyCurrentVersion()
isOnlyCurrentVersion in interface IssueCollectorConfigurationpublic int getMaxEntries()
getMaxEntries in interface IssueCollectorConfigurationpublic String getPriorityIds()
getPriorityIds 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 IssueCollectorConfigurationCopyright © 2009-2012 CodeLutin. All Rights Reserved.