public abstract class AbstractRedmineMojo extends org.nuiton.plugin.AbstractPlugin implements RedmineServiceConfiguration
| Modifier and Type | Field and Description |
|---|---|
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.
|
static String |
REDMINE_SYSTEM |
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 boolean |
verbose
Un flag pour activer le mode verbeux.
|
| Constructor and Description |
|---|
AbstractRedmineMojo() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getApiKey()
Note: Still not used (will be in version 2.0)
|
String |
getEncoding() |
org.apache.maven.project.MavenProject |
getProject() |
String |
getRestPassword() |
URL |
getRestUrl() |
String |
getRestUsername() |
protected void |
init() |
protected abstract boolean |
isGoalSkip() |
protected abstract boolean |
isRunOnce() |
boolean |
isRunOnceDone() |
boolean |
isSafe() |
boolean |
isVerbose() |
void |
setApiKey(String apiKey)
Note: Still not used (will be in version 2.0)
|
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) |
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, writeFilegetLog, getPluginContext, setLog, setPluginContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic static final String REDMINE_SYSTEM
@Component protected org.apache.maven.project.MavenProject project
@Parameter(property="redmine.url") protected URL url
@Parameter(property="redmine.username") protected String username
anonymous service.@Parameter(property="redmine.password") protected String password
anonymous service.@Parameter(property="redmine.encoding",
defaultValue="${project.build.sourceEncoding}")
protected String encoding
file.encoding.@Parameter(property="redmine.verbose",
defaultValue="${maven.verbose}")
protected boolean verbose
@Parameter(property="redmine.safe",
defaultValue="true")
protected boolean safe
@Component protected org.apache.maven.execution.MavenSession session
@Component protected RedmineService service
protected DateFormat dateFormat
protected boolean runOnceDone
protected boolean serviceInit
protected boolean initOk
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.AbstractPluginprotected 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.RestClientConfigurationpublic String getApiKey()
getApiKey in interface RedmineServiceConfigurationpublic void setApiKey(String apiKey)
setApiKey in interface RedmineServiceConfigurationapiKey - the niew api key to setprotected void closeService()
public boolean isRunOnceDone()
public boolean isSafe()
public void setSafe(boolean safe)
Copyright © 2009-2012 CodeLutin. All Rights Reserved.