|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.mule.devkit.maven.AbstractGitHubMojo
public abstract class AbstractGitHubMojo
Based on Maven plugin by Kevin Sawicki (kevin@github.com)
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractGitHubMojo()
|
|
| Method Summary | |
|---|---|
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 |
| 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 |
|---|
execute |
| Constructor Detail |
|---|
public AbstractGitHubMojo()
| Method Detail |
|---|
protected 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.MojoExecutionException
protected 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 failures
project - owner - name -
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||