@Mojo(name="update-version",
requiresOnline=true,
requiresProject=true)
public class UpdateVersionMojo
extends AbstractRedmineMojoWithProjectAndVersion
implements DryRunAware
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
anonymous
Flag to know if anonymous connexion to redmine server is required.
|
protected boolean |
closeVersion
A flag to close the version on redmine (will fix effectiveDate).
|
protected boolean |
dryRun
A flag to test plugin but send nothing to redmine.
|
protected String |
effectiveDate
The effective date to set on the version.
|
protected boolean |
runOnce
A flag to restrict only one run in a build (for multi-module context).
|
protected boolean |
skipUpdateVersion
A flag to skip the goal.
|
protected String |
versionDescription
The news description to update to redmine server.
|
protected String |
versionStatus
The status to set on the version amoung values
open, lock, closed. |
releaseVersion, versionIdprojectId, releaseProject, releaseUser, usersapiKey, dateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, runOnceDone, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
UpdateVersionMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkRunOnceDone() |
protected void |
doAction()
Re-expose the protected method for test purposes...
|
protected void |
init() |
boolean |
isAnonymous() |
boolean |
isDryRun() |
protected boolean |
isGoalSkip() |
protected boolean |
isRunOnce() |
void |
setAnonymous(boolean anonymous) |
void |
setDryRun(boolean dryRun) |
checkSkip, getProjectVersion, getProjectVersions, getVersionId, initReleaseVersion, setVersionIdgetProjectId, initReleaseProject, initReleaseUser, setProjectIdafterExecute, closeService, failIfSafe, getAuthConfiguration, getEncoding, getProject, getUrl, isRunOnceDone, 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, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFilegetLog, getPluginContext, setLog, setPluginContext@Parameter(property="redmine.anonymous",
defaultValue="false")
protected boolean anonymous
false, you should fill AbstractRedmineMojo.username
and AbstractRedmineMojo.password properties.@Parameter(property="redmine.versionDescription") protected String versionDescription
@Parameter(property="redmine.closeVersion",
defaultValue="false")
protected boolean closeVersion
closed then.@Parameter(property="redmine.effectiveDate") protected String effectiveDate
yyyy-mm-dd.
If not Set - will use current day date only if closeVersion
flag is on.@Parameter(property="redmine.versionStatus") protected String versionStatus
open, lock, closed.
If not Set - will use the closed value only if
closeVersion flag is on.@Parameter(property="redmine.skipUpdateVersion",
defaultValue="false")
protected boolean skipUpdateVersion
@Parameter(property="redmine.dryRun",
defaultValue="false")
protected boolean dryRun
@Parameter(property="redmine.runOnce",
defaultValue="true")
protected boolean runOnce
public boolean isAnonymous()
isAnonymous in interface RedmineClientConfigurationpublic void setAnonymous(boolean anonymous)
setAnonymous in interface RedmineClientConfigurationpublic boolean isDryRun()
isDryRun in interface DryRunAwarepublic void setDryRun(boolean dryRun)
setDryRun in interface DryRunAwareprotected 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 void doAction()
throws Exception
AbstractRedmineMojodoAction in class AbstractRedmineMojoException - if any problemsCopyright © 2009-2012 CodeLutin. All Rights Reserved.