@Mojo(name="next-version",
requiresOnline=true,
requiresProject=true)
public class NextVersionMojo
extends AbstractRedmineMojoWithProjectAndVersion
implements DryRunAware
| Modifier and Type | Field and Description |
|---|---|
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 String |
previousVersionName
The name of a previous 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 |
skipNextVersion
A flag to skip the goal.
|
protected boolean |
useLatestClosedVersion
To use the lastest closed version as the previous version.
|
protected String |
versionDescription
The news description to update to redmine server.
|
releaseVersion, versionIdprojectId, releaseProject, releaseUser, usersapiKey, dateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
NextVersionMojo() |
| 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.effectiveDate") protected String effectiveDate
yyyy-mm-dd.
If not Set - will use current day date.
flag is on.@Parameter(property="redmine.previousVersionName") protected String previousVersionName
@Parameter(property="redmine.useLatestClosedVersion") protected boolean useLatestClosedVersion
previousVersionName
is filled.@Parameter(property="redmine.skipNextVersion",
defaultValue="false")
protected boolean skipNextVersion
@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–2015 CodeLutin. All rights reserved.