|
||||||||||
| 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.InitState, org.nuiton.plugin.Plugin.Packaging |
| Field Summary | |
|---|---|
protected DateFormat |
dateFormat
the date format used to write a date |
protected String |
encoding
The encoding used to read and write files. |
protected boolean |
initOk
|
protected String |
password
The redmine's server password. |
protected org.apache.maven.project.MavenProject |
project
Dependance du projet. |
protected String |
projectId
Redmine project name. |
static 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 boolean |
serviceInit
flag to mark if service was sucessfull init |
protected org.apache.maven.execution.MavenSession |
session
|
protected URL |
url
The real basedir redmine url. |
protected 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 String |
versionId
redmine version name. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractRedmineMojo(boolean requireProject,
boolean requireVersion,
boolean requireUser)
|
|
| Method Summary | |
|---|---|
protected void |
afterExecute()
|
protected abstract boolean |
checkRunOnceDone()
|
protected boolean |
checkSkip()
|
protected void |
closeService()
|
protected abstract void |
doAction()
Re-expose the protected method for test purposes... |
String |
getEncoding()
|
org.apache.maven.project.MavenProject |
getProject()
|
String |
getProjectId()
|
String |
getRestPassword()
|
URL |
getRestUrl()
|
String |
getRestUsername()
|
String |
getVersionId()
|
protected void |
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(String encoding)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setRestPassword(String restPassword)
|
void |
setRestUrl(URL restUrl)
|
void |
setRestUsername(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, backupFile, checkEncoding, checkPackaging, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, 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.nuiton.io.rest.RestClientConfiguration |
|---|
isAnonymous, setAnonymous |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
public static final String REDMINE_SYSTEM
protected org.apache.maven.project.MavenProject project
protected URL url
protected String username
anonymous service.
configuration.
protected String password
anonymous service.
configuration.
protected String encoding
file.encoding.
protected String projectId
protected 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 DateFormat dateFormat
protected boolean runOnceDone
protected boolean serviceInit
protected boolean initOk
| Constructor Detail |
|---|
public AbstractRedmineMojo(boolean requireProject,
boolean requireVersion,
boolean requireUser)
| Method Detail |
|---|
protected void init()
throws Exception
init in class org.nuiton.plugin.AbstractPluginExceptionprotected boolean checkSkip()
checkSkip in class org.nuiton.plugin.AbstractPluginprotected void afterExecute()
afterExecute in class org.nuiton.plugin.AbstractPlugin
protected abstract void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginException - if any problemsprotected 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 String getEncoding()
getEncoding in interface org.nuiton.io.rest.RestClientConfigurationpublic void setEncoding(String encoding)
setEncoding in interface org.nuiton.io.rest.RestClientConfigurationpublic String getRestPassword()
getRestPassword in interface org.nuiton.io.rest.RestClientConfigurationpublic URL getRestUrl()
getRestUrl in interface org.nuiton.io.rest.RestClientConfigurationpublic String getRestUsername()
getRestUsername in interface org.nuiton.io.rest.RestClientConfigurationpublic void setRestPassword(String restPassword)
setRestPassword in interface org.nuiton.io.rest.RestClientConfigurationpublic void setRestUrl(URL restUrl)
setRestUrl in interface org.nuiton.io.rest.RestClientConfigurationpublic void setRestUsername(String restUsername)
setRestUsername 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)
public String getProjectId()
public String getVersionId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||