@Mojo(name="generate-changes",
requiresOnline=true,
requiresProject=true)
public class GenerateChangesMojo
extends AbstractRedmineMojoWithProjectAndVersion
implements IssueCollectorConfiguration, SkipOrRunOnlyOnceAware
| Modifier and Type | Field and Description |
|---|---|
protected String |
actionMapping
The action mapping to the redmine tracker ids.
|
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 String |
issueLinkTemplate
Template strings per system that is used to discover the URL to use to display an issue report.
|
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 |
runOnceDone
flag to mark if a runOnce goal was done
|
protected boolean |
runOnlyOnRoot
A flag to restrict only to run on root module.
|
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, usersapiKey, dateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, 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) |
boolean |
checkRunOnceDone() |
protected boolean |
checkSkip() |
protected void |
doAction()
Re-expose the protected method for test purposes...
|
String |
getCategoryIds() |
int |
getMaxEntries() |
String |
getPriorityIds() |
String |
getSkipProperty() |
String |
getStatusIds() |
String |
getTrackerIds() |
String |
getVersionNames() |
protected void |
init() |
boolean |
isGoalSkip() |
boolean |
isOnlyCurrentVersion() |
boolean |
isRunOnce() |
boolean |
isRunOnceDone() |
boolean |
isRunOnlyOnRoot() |
getProjectVersion, getProjectVersions, getVersionId, initReleaseVersion, setVersionIdgetProjectId, initReleaseProject, initReleaseUser, setProjectIdafterExecute, closeService, failIfSafe, getAuthConfiguration, getEncoding, getProject, getUrl, isVerbose, setApiKey, setAuthConfiguration, setEncoding, setPassword, setProject, setUrl, setUsername, 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, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProjectId, getVersionId, isVerbose, setVersionId@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
@Parameter(property="redmine.runOnlyOnRoot",
defaultValue="true")
protected boolean runOnlyOnRoot
@Parameter(property="redmine.issueLinkTemplate",
defaultValue="%URL%/issues/%ISSUE%")
protected String issueLinkTemplate
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. %ISSUE%: this is the issue number.
protected Map<Integer,String> trackerToAction
protected boolean runOnceDone
public 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 IssueCollectorConfigurationpublic String getSkipProperty()
getSkipProperty in interface SkipOrRunOnlyOnceAwarepublic boolean isGoalSkip()
isGoalSkip in interface SkipOrRunOnlyOnceAwarepublic boolean isRunOnce()
isRunOnce in interface SkipOrRunOnlyOnceAwarepublic boolean isRunOnlyOnRoot()
isRunOnlyOnRoot in interface SkipOrRunOnlyOnceAwarepublic boolean isRunOnceDone()
isRunOnceDone in interface SkipOrRunOnlyOnceAwarepublic boolean checkRunOnceDone()
checkRunOnceDone in interface SkipOrRunOnlyOnceAwareprotected 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
RedmineServiceExceptionCopyright © 2009–2015 CodeLutin. All rights reserved.