@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 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, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
DisplayDataMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkSkip() |
protected void |
doAction()
Re-expose the protected method for test purposes...
|
protected org.nuiton.jredmine.model.IdAble[] |
getDatas(String type) |
protected org.nuiton.jredmine.model.IdAble[] |
getDatasWithProject(String type) |
protected org.nuiton.jredmine.model.IdAble[] |
getDatasWithProjectAndVersion(String type) |
protected List<String> |
getDownloadActions() |
String |
getProjectId() |
String |
getVersionId() |
protected void |
init() |
void |
setProjectId(String projectId) |
void |
setVersionId(String versionId) |
afterExecute, closeService, failIfSafe, getAuthConfiguration, getEncoding, getProject, getUrl, 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, needInvoke, needInvoke, 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
public 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 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 org.nuiton.jredmine.model.IdAble[] getDatas(String type) throws IOException
IOExceptionprotected org.nuiton.jredmine.model.IdAble[] getDatasWithProject(String type) throws IOException
IOExceptionprotected org.nuiton.jredmine.model.IdAble[] getDatasWithProjectAndVersion(String type) throws IOException
IOExceptionCopyright © 2009–2016 CodeLutin. All rights reserved.