public abstract class AbstractRedmineReport extends AbstractRedmineMojoWithProject implements org.apache.maven.reporting.MavenReport, RedmineVersionAware
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
anonymous
Flag to know if anonymous 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 |
versionId
redmine version name.
|
protected String |
versionLinkTemplate
Template strings per system that is used to discover the URL to use to display an issue report.
|
projectId, releaseProject, releaseUser, usersdateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, runOnceDone, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
AbstractRedmineReport() |
| Modifier and Type | Method and Description |
|---|---|
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() |
String |
getVersionId() |
boolean |
isAnonymous() |
boolean |
isExternalReport() |
void |
setAnonymous(boolean anonymous) |
void |
setReportOutputDirectory(File reportOutputDirectory) |
void |
setVersionId(String versionId) |
protected abstract boolean |
skipReport() |
checkSkip, getProjectId, init, initReleaseProject, initReleaseUser, setProjectIdafterExecute, checkRunOnceDone, closeService, getApiKey, getEncoding, getProject, getRestPassword, getRestUrl, getRestUsername, isGoalSkip, isRunOnce, isRunOnceDone, isSafe, isVerbose, setApiKey, setEncoding, setProject, setRestPassword, setRestUrl, setRestUsername, setSafe, setVerboseacceptPackaging, 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@Parameter(property="redmine.versionId",
defaultValue="${project.version}")
protected String versionId
@Parameter(property="redmine.anonymous",
defaultValue="true")
protected boolean anonymous
true
Note: If set to false, you should fill AbstractRedmineMojo.username
and AbstractRedmineMojo.password properties.@Parameter(property="redmine.issueLinkTemplate",
defaultValue="%URL%/issues/show/%ISSUE%")
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.
@Parameter(property="redmine.versionLinkTemplate",
defaultValue="%URL%/versions/show/%VERSION%")
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.
@Parameter(property="localRepository",
required=true,
readonly=true)
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
@Parameter(defaultValue="${project.reporting.outputDirectory}")
protected File outputDirectory
@Component protected org.apache.maven.artifact.resolver.ArtifactResolver resolver
@Component protected org.apache.maven.artifact.factory.ArtifactFactory factory
@Component protected org.codehaus.plexus.i18n.I18N i18n
@Component protected org.apache.maven.doxia.siterenderer.Renderer siteRenderer
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.RestClientConfigurationpublic final String getVersionId()
getVersionId in interface RedmineVersionAwarepublic void setVersionId(String versionId)
setVersionId in interface RedmineVersionAwareprotected void doAction()
throws Exception
AbstractRedmineMojodoAction in class AbstractRedmineMojoException - if any problemspublic boolean canGenerateReport()
canGenerateReport in interface org.apache.maven.reporting.MavenReportpublic 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.MojoExecutionExceptionCopyright © 2009-2012 CodeLutin. All Rights Reserved.