@Mojo(name="next-version",
requiresOnline=true,
requiresProject=true)
public class NextVersionMojo
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 |
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 |
skipNextVersion
A flag to skip the goal.
|
protected String |
versionDescription
The news description to update to redmine server.
|
releaseVersion, versionIdprojectId, releaseProject, releaseUser, usersapiKey, dateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, runOnceDone, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
NextVersionMojo() |
| 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.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.skipNextVersion",
defaultValue="false")
protected boolean skipNextVersion
@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.