|
||||||||||
| 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
public abstract class AbstractRedmineMojo
Abstract redmine mojo.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected java.text.DateFormat |
dateFormat
the date format used to write a date |
protected java.lang.String |
encoding
The encoding used to read and write files. |
protected java.lang.String |
password
The redmine's server password. |
protected org.apache.maven.project.MavenProject |
project
Dependance du projet. |
protected java.lang.String |
projectId
Redmine project name. |
static java.lang.String |
REDMINE_SYSTEM
|
protected Project |
releaseProject
the project loaded in init if requireProject flag is on |
protected User |
releaseUser
the user loaded in init if requireUser flag is on |
protected Version |
releaseVersion
the version loaded in init if requireVersion flag is on |
protected boolean |
runOnceDone
flag to mark if a runOnce goal was done |
protected boolean |
safe
Un flag pour faire échouer le build si la configuration n'est pas ok. |
protected RedmineService |
service
Redmine service. |
protected org.apache.maven.execution.MavenSession |
session
|
protected java.net.URL |
url
The real basedir redmine url. |
protected java.lang.String |
username
The redmine's server login. |
protected User[] |
users
cache of users of a given project loaded in int if requireUser flag is on |
protected boolean |
verbose
Un flag pour activer le mode verbeux. |
protected java.lang.String |
versionId
redmine version name. |
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractRedmineMojo(boolean requireProject,
boolean requireVersion,
boolean requireUser)
|
|
| Method Summary | |
|---|---|
protected abstract boolean |
checkRunOnceDone()
|
protected void |
closeService()
|
protected abstract void |
doAction()
Re-expose the protected method for test purposes... |
void |
execute()
|
java.lang.String |
getEncoding()
|
org.apache.maven.project.MavenProject |
getProject()
|
java.lang.String |
getRestPassword()
|
java.net.URL |
getRestUrl()
|
java.lang.String |
getRestUsername()
|
protected boolean |
init()
|
protected boolean |
initReleaseProject()
|
protected boolean |
initReleaseUser()
|
protected boolean |
initReleaseVersion()
|
protected abstract boolean |
isGoalSkip()
|
protected abstract boolean |
isRunOnce()
|
boolean |
isRunOnceDone()
|
boolean |
isSafe()
|
boolean |
isVerbose()
|
void |
setEncoding(java.lang.String encoding)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setRestPassword(java.lang.String restPassword)
|
void |
setRestUrl(java.net.URL restUrl)
|
void |
setRestUsername(java.lang.String restUsername)
|
void |
setSafe(boolean safe)
|
void |
setVerbose(boolean verbose)
|
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, checkPackaging, checkResource, checkRunOnceDone, copyFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, 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 |
|---|
public static final java.lang.String REDMINE_SYSTEM
protected org.apache.maven.project.MavenProject project
protected java.net.URL url
protected java.lang.String username
protected java.lang.String password
protected java.lang.String encoding
protected java.lang.String projectId
protected java.lang.String versionId
protected boolean verbose
protected boolean safe
protected org.apache.maven.execution.MavenSession session
protected RedmineService service
protected Project releaseProject
requireProject flag is on
protected Version releaseVersion
requireVersion flag is on
protected User releaseUser
requireUser flag is on
protected User[] users
requireUser flag is on
protected java.text.DateFormat dateFormat
protected boolean runOnceDone
| Constructor Detail |
|---|
public AbstractRedmineMojo(boolean requireProject,
boolean requireVersion,
boolean requireUser)
| Method Detail |
|---|
protected boolean init()
throws java.lang.Exception
init in class org.nuiton.plugin.AbstractPluginjava.lang.Exception
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoexecute in class org.nuiton.plugin.AbstractPluginorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected abstract void doAction()
throws java.lang.Exception
doAction in class org.nuiton.plugin.AbstractPluginjava.lang.ExceptionAbstractPlugin.doAction()protected abstract boolean isGoalSkip()
protected abstract boolean isRunOnce()
protected abstract boolean checkRunOnceDone()
public org.apache.maven.project.MavenProject getProject()
getProject in interface org.nuiton.plugin.Pluginpublic void setProject(org.apache.maven.project.MavenProject project)
setProject in interface org.nuiton.plugin.Pluginpublic boolean isVerbose()
isVerbose in interface org.nuiton.io.rest.RestClientConfigurationisVerbose in interface org.nuiton.plugin.Pluginpublic void setVerbose(boolean verbose)
setVerbose in interface org.nuiton.io.rest.RestClientConfigurationsetVerbose in interface org.nuiton.plugin.Pluginpublic java.lang.String getRestPassword()
getRestPassword in interface org.nuiton.io.rest.RestClientConfigurationpublic java.net.URL getRestUrl()
getRestUrl in interface org.nuiton.io.rest.RestClientConfigurationpublic java.lang.String getRestUsername()
getRestUsername in interface org.nuiton.io.rest.RestClientConfigurationpublic void setRestPassword(java.lang.String restPassword)
setRestPassword in interface org.nuiton.io.rest.RestClientConfigurationpublic void setRestUrl(java.net.URL restUrl)
setRestUrl in interface org.nuiton.io.rest.RestClientConfigurationpublic void setRestUsername(java.lang.String restUsername)
setRestUsername in interface org.nuiton.io.rest.RestClientConfigurationpublic java.lang.String getEncoding()
getEncoding in interface org.nuiton.io.rest.RestClientConfigurationpublic void setEncoding(java.lang.String encoding)
setEncoding in interface org.nuiton.io.rest.RestClientConfiguration
protected boolean initReleaseProject()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected boolean initReleaseVersion()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected boolean initReleaseUser()
protected void closeService()
public boolean isRunOnceDone()
public boolean isSafe()
public void setSafe(boolean safe)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||