@Mojo(name="display-data",
requiresOnline=true,
requiresProject=true)
public class DisplayDataMojo
extends AbstractRedmineMojo
implements RedmineProjectAware, RedmineVersionAware
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
actions
list of actions to perform
|
protected boolean |
anonymous
Flag to know if anonymous connexion to redmine server is required.
|
protected String |
projectId
Redmine project name.
|
protected boolean |
sortById
A flag to sort of not retrived data by id.
|
protected String |
types
The data types to display :
issueSatus, issuePriority,
issueCategory, tracker and user. |
protected String |
versionId
Redmine version name.
|
apiKey, dateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, runOnceDone, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
DisplayDataMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkRunOnceDone() |
protected boolean |
checkSkip() |
protected void |
doAction()
Re-expose the protected method for test purposes...
|
protected IdAble[] |
getDatas(String type) |
protected IdAble[] |
getDatasWithProject(String type) |
protected IdAble[] |
getDatasWithProjectAndVersion(String type) |
protected List<String> |
getDownloadActions() |
String |
getProjectId() |
String |
getVersionId() |
protected void |
init() |
boolean |
isAnonymous() |
protected boolean |
isGoalSkip() |
protected boolean |
isRunOnce() |
void |
setAnonymous(boolean anonymous) |
void |
setProjectId(String projectId) |
void |
setVersionId(String versionId) |
afterExecute, closeService, failIfSafe, getAuthConfiguration, getEncoding, getProject, getUrl, isRunOnceDone, isVerbose, setApiKey, setAuthConfiguration, setEncoding, setPassword, setProject, setUrl, setUsername, 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.projectId",
defaultValue="${project.artifactId}",
required=true)
protected String projectId
@Parameter(property="redmine.versionId",
defaultValue="${project.version}")
protected String versionId
@Parameter(property="types",
required=true)
protected String types
issueSatus, issuePriority,
issueCategory, tracker and user.
issueStatus and issuePriority are common for all
projects, so for those datas, no extrat configuration is required.
isseCategoriy, tracker and user are project
specific, so you have to fill also the projectId parameter to
obtain data for those types.
Note : you can specifiy several types separated by comma@Parameter(property="sortById",
defaultValue="true",
required=true)
protected boolean sortById
@Parameter(property="anonymous",
defaultValue="true")
protected boolean anonymous
true
Note: If set to false, you should fill AbstractRedmineMojo.username
and AbstractRedmineMojo.password properties.public boolean isAnonymous()
isAnonymous in interface RedmineClientConfigurationpublic void setAnonymous(boolean anonymous)
setAnonymous in interface RedmineClientConfigurationpublic String getProjectId()
getProjectId in interface RedmineProjectAwarepublic void setProjectId(String projectId)
setProjectId in interface RedmineProjectAwarepublic String getVersionId()
getVersionId in interface RedmineVersionAwarepublic void setVersionId(String versionId)
setVersionId in interface RedmineVersionAwareprotected boolean checkRunOnceDone()
checkRunOnceDone in class AbstractRedmineMojoprotected boolean isGoalSkip()
isGoalSkip in class AbstractRedmineMojoprotected boolean isRunOnce()
isRunOnce in class AbstractRedmineMojoprotected void init()
throws Exception
init in class AbstractRedmineMojoExceptionprotected boolean checkSkip()
checkSkip in class AbstractRedmineMojoprotected void doAction()
throws Exception
AbstractRedmineMojodoAction in class AbstractRedmineMojoException - if any problemsprotected List<String> getDownloadActions() throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected IdAble[] getDatas(String type) throws IOException
IOExceptionprotected IdAble[] getDatasWithProject(String type) throws IOException
IOExceptionprotected IdAble[] getDatasWithProjectAndVersion(String type) throws IOException
IOExceptionCopyright © 2009-2012 CodeLutin. All Rights Reserved.