|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.jredmine.plugin.AbstractRedmineMojo
org.nuiton.jredmine.plugin.UpdateVersionMojo
public class UpdateVersionMojo
Create or update a version on redmine server.
Will add a the version if not existing, otherwise, will update the version.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected boolean |
anonymous
Flag to know if anonymùous 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 restirct 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. |
| Fields inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo |
|---|
dateFormat, encoding, initOk, password, project, projectId, REDMINE_SYSTEM, releaseProject, releaseUser, releaseVersion, runOnceDone, safe, service, serviceInit, session, url, username, users, verbose, versionId |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
UpdateVersionMojo()
|
|
| Method Summary | |
|---|---|
protected boolean |
checkRunOnceDone()
|
protected void |
doAction()
Re-expose the protected method for test purposes... |
protected void |
init()
|
boolean |
isAnonymous()
|
protected boolean |
isGoalSkip()
|
protected boolean |
isRunOnce()
|
void |
setAnonymous(boolean anonymous)
|
| Methods inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo |
|---|
afterExecute, checkSkip, closeService, getEncoding, getProject, getProjectId, getRestPassword, getRestUrl, getRestUsername, getVersionId, initReleaseProject, initReleaseUser, initReleaseVersion, isRunOnceDone, isSafe, isVerbose, setEncoding, setProject, setRestPassword, setRestUrl, setRestUsername, setSafe, setVerbose |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addTestResourceDir, addUrlToUrlsList, backupFile, checkPackaging, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected boolean anonymous
false, you should fill AbstractRedmineMojo.username
and AbstractRedmineMojo.password properties.
protected String versionDescription
protected boolean closeVersion
protected String effectiveDate
yyyy-mm-dd.
If not Set - will use current day date only if closeVersion
flag is on.
protected boolean skipUpdateVersion
protected boolean dryRun
protected boolean runOnce
| Constructor Detail |
|---|
public UpdateVersionMojo()
| Method Detail |
|---|
public boolean isAnonymous()
public void setAnonymous(boolean anonymous)
protected boolean isGoalSkip()
isGoalSkip in class AbstractRedmineMojoprotected boolean isRunOnce()
isRunOnce in class AbstractRedmineMojoprotected boolean checkRunOnceDone()
checkRunOnceDone in class AbstractRedmineMojo
protected void init()
throws Exception
init in class AbstractRedmineMojoException
protected void doAction()
throws Exception
AbstractRedmineMojo
doAction in class AbstractRedmineMojoExceptionAbstractPlugin.doAction()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||