@Mojo(name="update-version",
requiresOnline=true,
requiresProject=true)
public class UpdateVersionMojo
extends AbstractRedmineMojoWithProjectAndVersion
implements DryRunAware
| Modifier and Type | Field and Description |
|---|---|
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 |
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 |
skipUpdateVersion
A flag to skip the goal.
|
protected String |
versionDescription
The version 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, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
UpdateVersionMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkRunOnceDone() |
protected void |
doAction()
Re-expose the protected method for test purposes...
|
String |
getSkipProperty() |
protected void |
init() |
boolean |
isDryRun() |
boolean |
isGoalSkip() |
boolean |
isRunOnce() |
boolean |
isRunOnceDone() |
boolean |
isRunOnlyOnRoot() |
void |
setDryRun(boolean dryRun) |
checkSkip, 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, setPluginContext@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
@Parameter(property="redmine.runOnlyOnRoot",
defaultValue="true")
protected boolean runOnlyOnRoot
protected boolean runOnceDone
public boolean isDryRun()
isDryRun in interface DryRunAwarepublic void setDryRun(boolean dryRun)
setDryRun in interface DryRunAwarepublic 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 void doAction()
throws Exception
AbstractRedmineMojodoAction in class AbstractRedmineMojoException - if any problemsCopyright © 2009–2014 CodeLutin. All rights reserved.