@Mojo(name="login",
requiresOnline=true,
requiresProject=true)
public class LoginMojo
extends org.nuiton.plugin.AbstractPlugin
implements RedmineServiceConfiguration
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
checkLogin
Un flag pour verifier le login (effectue une connexion au serveur).
|
protected static org.nuiton.helper.plugin.ShareServerSecretPlugin |
plugin
shared instance of delegate plugin to obtain login
|
protected org.apache.maven.project.MavenProject |
project
Dependance du projet.
|
protected boolean |
safe
Un flag pour faire échouer le build si la configuration n'est pas ok.
|
protected org.sonatype.plexus.components.sec.dispatcher.SecDispatcher |
sec
password decypher.
|
protected String |
serverId
Redmine server id to obtain login and password.
|
protected RedmineService |
service
Redmine service.
|
protected org.apache.maven.settings.Settings |
settings
Settings.
|
protected URL |
url
The real basedir redmine url.
|
protected boolean |
verbose
Un flag pour activer le mode verbeux.
|
| Constructor and Description |
|---|
LoginMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute() |
protected boolean |
checkSkip() |
protected void |
doAction() |
String |
getApiKey() |
String |
getEncoding() |
org.apache.maven.project.MavenProject |
getProject() |
String |
getRestPassword() |
URL |
getRestUrl() |
String |
getRestUsername() |
protected void |
init() |
boolean |
isAnonymous() |
boolean |
isSafe() |
boolean |
isVerbose() |
void |
setAnonymous(boolean anonymous) |
void |
setApiKey(String apiKey) |
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, setPluginContext@Component protected org.apache.maven.project.MavenProject project
@Parameter(property="redmine.url") protected URL url
@Parameter(property="redmine.verbose",
defaultValue="${maven.verbose}")
protected boolean verbose
@Parameter(property="redmine.checkLogin",
defaultValue="false")
protected boolean checkLogin
@Parameter(property="redmine.safe",
defaultValue="true")
protected boolean safe
@Parameter(property="redmine.serverId",
required=true)
protected String serverId
@Component protected org.apache.maven.settings.Settings settings
@Component(hint="helper-maven-plugin") protected org.sonatype.plexus.components.sec.dispatcher.SecDispatcher sec
@Component protected RedmineService service
protected static org.nuiton.helper.plugin.ShareServerSecretPlugin plugin
protected void init()
throws Exception
init in class org.nuiton.plugin.AbstractPluginExceptionprotected boolean checkSkip()
checkSkip in class org.nuiton.plugin.AbstractPluginprotected void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginExceptionprotected void afterExecute()
afterExecute in class org.nuiton.plugin.AbstractPluginpublic 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 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 getEncoding()
getEncoding in interface org.nuiton.io.rest.RestClientConfigurationpublic void setEncoding(String encoding)
setEncoding in interface org.nuiton.io.rest.RestClientConfigurationpublic boolean isAnonymous()
isAnonymous in interface org.nuiton.io.rest.RestClientConfigurationpublic void setAnonymous(boolean anonymous)
setAnonymous in interface org.nuiton.io.rest.RestClientConfigurationpublic boolean isSafe()
public void setSafe(boolean safe)
public String getApiKey()
getApiKey in interface RedmineServiceConfigurationpublic void setApiKey(String apiKey)
setApiKey in interface RedmineServiceConfigurationCopyright © 2009-2012 CodeLutin. All Rights Reserved.