|
||||||||||
| 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
org.nuiton.jredmine.plugin.report.AbstractRedmineReport
public abstract class AbstractRedmineReport
Abstract redmine report 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 boolean |
anonymous
Flag to know if anonymùous connexion to redmine server is required. |
protected org.apache.maven.artifact.factory.ArtifactFactory |
factory
|
protected org.codehaus.plexus.i18n.I18N |
i18n
Internationalization. |
protected String |
issueLinkTemplate
Template strings per system that is used to discover the URL to use to display an issue report. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Local Repository. |
protected File |
outputDirectory
Report output directory. |
protected org.apache.maven.artifact.resolver.ArtifactResolver |
resolver
|
protected org.apache.maven.doxia.siterenderer.Renderer |
siteRenderer
Doxia Site Renderer. |
protected String |
versionLinkTemplate
Template strings per system that is used to discover the URL to use to display an issue report. |
| Fields inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo |
|---|
dateFormat, encoding, initOk, password, project, projectId, REDMINE_SYSTEM, releaseProject, releaseUser, releaseVersion, runOnceDone, safe, service, serviceInit, session, url, username, users, verbose, versionId |
| Fields inherited from interface org.apache.maven.reporting.MavenReport |
|---|
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLE |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractRedmineReport(boolean requireProject,
boolean requireVersion,
boolean requireUser)
|
|
| Method Summary | |
|---|---|
boolean |
canGenerateReport()
|
protected void |
doAction()
Re-expose the protected method for test purposes... |
protected abstract void |
executeReport(Locale locale)
|
void |
generate(org.codehaus.doxia.sink.Sink sink,
Locale locale)
|
protected ResourceBundle |
getBundle(Locale locale)
|
String |
getCategoryName()
|
String |
getDescription(Locale locale)
|
String |
getName(Locale locale)
|
File |
getReportOutputDirectory()
|
protected org.apache.maven.doxia.sink.Sink |
getSink()
|
protected File |
getSkinArtifactFile()
|
boolean |
isAnonymous()
|
boolean |
isExternalReport()
|
void |
setAnonymous(boolean anonymous)
|
void |
setReportOutputDirectory(File reportOutputDirectory)
|
protected abstract boolean |
skipReport()
|
| Methods inherited from class org.nuiton.jredmine.plugin.AbstractRedmineMojo |
|---|
afterExecute, checkRunOnceDone, checkSkip, closeService, getEncoding, getProject, getProjectId, getRestPassword, getRestUrl, getRestUsername, getVersionId, init, initReleaseProject, initReleaseUser, initReleaseVersion, isGoalSkip, isRunOnce, isRunOnceDone, isSafe, isVerbose, setEncoding, setProject, setRestPassword, setRestUrl, setRestUsername, setSafe, setVerbose |
| 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.apache.maven.reporting.MavenReport |
|---|
getOutputName |
| Methods inherited from interface org.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected boolean anonymous
true
Note: If set to false, you should fill AbstractRedmineMojo.username
and AbstractRedmineMojo.password properties.
protected String issueLinkTemplate
There are 2 template tokens you can use. %URL%: this is computed by getting the
<issueManagement>/<url> value from the POM, and removing the last '/'
and everything that comes after it. %ISSUE%: this is the issue number.
protected String versionLinkTemplate
There are 2 template tokens you can use. %URL%: this is computed by getting the
<issueManagement>/<url> value from the POM, and removing the last '/'
and everything that comes after it. %VERSION%: this is the issue number.
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected File outputDirectory
protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
protected org.apache.maven.artifact.factory.ArtifactFactory factory
protected org.codehaus.plexus.i18n.I18N i18n
protected org.apache.maven.doxia.siterenderer.Renderer siteRenderer
| Constructor Detail |
|---|
public AbstractRedmineReport(boolean requireProject,
boolean requireVersion,
boolean requireUser)
| Method Detail |
|---|
protected abstract void executeReport(Locale locale)
throws org.apache.maven.reporting.MavenReportException
org.apache.maven.reporting.MavenReportExceptionprotected abstract boolean skipReport()
true if report should be skippublic boolean isAnonymous()
isAnonymous in interface org.nuiton.io.rest.RestClientConfigurationpublic void setAnonymous(boolean anonymous)
setAnonymous in interface org.nuiton.io.rest.RestClientConfiguration
protected void doAction()
throws Exception
AbstractRedmineMojo
doAction in class AbstractRedmineMojoException - if any problemspublic boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReport
public void generate(org.codehaus.doxia.sink.Sink sink,
Locale locale)
throws org.apache.maven.reporting.MavenReportException
generate in interface org.apache.maven.reporting.MavenReportorg.apache.maven.reporting.MavenReportExceptionpublic String getName(Locale locale)
getName in interface org.apache.maven.reporting.MavenReportpublic String getDescription(Locale locale)
getDescription in interface org.apache.maven.reporting.MavenReportpublic String getCategoryName()
getCategoryName in interface org.apache.maven.reporting.MavenReportpublic File getReportOutputDirectory()
getReportOutputDirectory in interface org.apache.maven.reporting.MavenReportpublic void setReportOutputDirectory(File reportOutputDirectory)
setReportOutputDirectory in interface org.apache.maven.reporting.MavenReportpublic boolean isExternalReport()
isExternalReport in interface org.apache.maven.reporting.MavenReportprotected org.apache.maven.doxia.sink.Sink getSink()
protected ResourceBundle getBundle(Locale locale)
protected File getSkinArtifactFile()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||