public abstract class AbstractGitHubMojo
extends org.apache.maven.plugin.AbstractMojo
| Constructor and Description |
|---|
AbstractGitHubMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.egit.github.core.client.GitHubClient |
createClient(String host,
String userName,
String password,
String oauth2Token)
Create client
|
protected void |
debug(String message)
Log given message at debug level
|
protected void |
debug(String message,
Throwable throwable)
Log given message and throwable at debug level
|
protected void |
error(String message)
Log given message at error level
|
protected void |
error(String message,
Throwable throwable)
Log given message and throwable at error level
|
protected org.eclipse.egit.github.core.RepositoryId |
getRepository(org.apache.maven.project.MavenProject project,
String owner,
String name)
Get repository and throw a
MojoExecutionException on failures |
protected void |
info(String message)
Log given message at info level
|
protected void |
info(String message,
Throwable throwable)
Log given message and throwable at info level
|
protected boolean |
isDebug()
Is debug logging enabled?
|
protected boolean |
isInfo()
Is info logging enabled?
|
protected void |
warn(String message)
Log given message at warn level
|
protected void |
warn(String message,
Throwable throwable)
Log given message and throwable at warn level
|
getLog, getPluginContext, setLog, setPluginContextprotected boolean isDebug()
protected boolean isInfo()
protected void debug(String message)
message - protected void debug(String message, Throwable throwable)
message - throwable - protected void info(String message)
message - protected void info(String message, Throwable throwable)
message - throwable - protected void warn(String message)
message - protected void warn(String message, Throwable throwable)
message - throwable - protected void error(String message)
message - protected void error(String message, Throwable throwable)
message - throwable - protected org.eclipse.egit.github.core.client.GitHubClient createClient(String host, String userName, String password, String oauth2Token) throws org.apache.maven.plugin.MojoExecutionException
host - userName - password - oauth2Token - org.apache.maven.plugin.MojoExecutionExceptionprotected org.eclipse.egit.github.core.RepositoryId getRepository(org.apache.maven.project.MavenProject project,
String owner,
String name)
throws org.apache.maven.plugin.MojoExecutionException
MojoExecutionException on failuresproject - owner - name - org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.