@Mojo(name="publish-news",
requiresOnline=true,
requiresProject=true)
public class PublishNewsMojo
extends AbstractRedmineMojoWithProject
implements DryRunAware
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
anonymous
Flag to know if anonymous connexion to redmine server is required.
|
protected boolean |
dryRun
A flag to test plugin but send nothing to redmine.
|
protected File |
newsContentFile
The content file of the news.
|
protected String |
newsSummary
Short description or introduction of the released artifact.
|
protected String |
newsTitle
The title of the news to create on redmine server.
|
protected boolean |
runOnce
A flag to restrict only one run in a build (for multi-module context).
|
protected boolean |
runOnceDone
flag to mark if a runOnce goal was done
|
protected boolean |
runOnlyOnRoot
A flag to restrict only to run on root module.
|
protected boolean |
skipPublishNews
A flag to skip the goal.
|
projectId, releaseProject, releaseUser, usersapiKey, dateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
PublishNewsMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkRunOnceDone() |
protected void |
doAction()
Re-expose the protected method for test purposes...
|
String |
getSkipProperty() |
protected void |
init() |
boolean |
isAnonymous() |
boolean |
isDryRun() |
boolean |
isGoalSkip() |
boolean |
isRunOnce() |
boolean |
isRunOnceDone() |
boolean |
isRunOnlyOnRoot() |
void |
setAnonymous(boolean anonymous) |
void |
setDryRun(boolean dryRun) |
checkSkip, getProjectId, initReleaseProject, initReleaseUser, setProjectIdafterExecute, 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.anonymous",
defaultValue="false")
protected boolean anonymous
false, you should fill AbstractRedmineMojo.username
and AbstractRedmineMojo.password properties.@Parameter(property="redmine.newsContentFile",
required=true)
protected File newsContentFile
@Parameter(property="redmine.newsSummary") protected String newsSummary
@Parameter(property="redmine.newsTitle",
required=true)
protected String newsTitle
@Parameter(property="redmine.skipPublishNews",
defaultValue="false")
protected boolean skipPublishNews
@Parameter(property="redmine.dryRun",
defaultValue="false")
protected boolean dryRun
@Parameter(property="redmine.runOnce",
defaultValue="true")
protected boolean runOnce
@Parameter(property="redmine.runOnlyOnRoot",
defaultValue="true")
protected boolean runOnlyOnRoot
protected boolean runOnceDone
public boolean isAnonymous()
isAnonymous in interface RedmineClientConfigurationpublic void setAnonymous(boolean anonymous)
setAnonymous in interface RedmineClientConfigurationpublic boolean isDryRun()
isDryRun in interface DryRunAwarepublic void setDryRun(boolean dryRun)
setDryRun in interface DryRunAwarepublic String getSkipProperty()
getSkipProperty in interface SkipOrRunOnlyOnceAwarepublic boolean isGoalSkip()
isGoalSkip in interface SkipOrRunOnlyOnceAwarepublic boolean checkRunOnceDone()
checkRunOnceDone in interface SkipOrRunOnlyOnceAwarepublic boolean isRunOnce()
isRunOnce in interface SkipOrRunOnlyOnceAwarepublic boolean isRunOnlyOnRoot()
isRunOnlyOnRoot in interface SkipOrRunOnlyOnceAwarepublic boolean isRunOnceDone()
isRunOnceDone in interface SkipOrRunOnlyOnceAwareprotected void init()
throws Exception
init in class AbstractRedmineMojoWithProjectExceptionprotected void doAction()
throws Exception
AbstractRedmineMojodoAction in class AbstractRedmineMojoException - if any problemsCopyright © 2009–2013 CodeLutin. All rights reserved.