@Mojo(name="publish-attachments",
requiresOnline=true,
requiresProject=true)
public class PublishAttachmentsMojo
extends AbstractRedmineMojoWithProjectAndVersion
implements DryRunAware
| Modifier and Type | Field and Description |
|---|---|
protected List<File> |
allFiles
files to deploy
|
protected boolean |
dryRun
A flag to test plugin but send nothing to redmine.
|
protected File[] |
files
A list of files to deploy.
|
protected File |
filesFromProperties
The path of a properties files where files to deploy are descriped.
|
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 |
skipPublishAttachments
A flag to skip the goal.
|
releaseVersion, versionIdprojectId, releaseProject, releaseUser, usersapiKey, dateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
PublishAttachmentsMojo() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkRunOnceDone() |
protected boolean |
checkSkip() |
protected void |
doAction()
Re-expose the protected method for test purposes...
|
protected List<File> |
getFilesToDeploy() |
String |
getSkipProperty() |
protected void |
init() |
boolean |
isDryRun() |
boolean |
isGoalSkip() |
boolean |
isRunOnce() |
boolean |
isRunOnceDone() |
boolean |
isRunOnlyOnRoot() |
void |
setDryRun(boolean dryRun) |
getProjectVersion, getProjectVersions, getVersionId, initReleaseVersion, setVersionIdgetProjectId, 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.filesFromProperties") protected File filesFromProperties
@Parameter(property="redmine.files") protected File[] files
@Parameter(property="redmine.skipCollectReleaseAttachments",
defaultValue="false")
protected boolean skipPublishAttachments
@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 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 isRunOnce()
isRunOnce in interface SkipOrRunOnlyOnceAwarepublic boolean isRunOnlyOnRoot()
isRunOnlyOnRoot in interface SkipOrRunOnlyOnceAwarepublic boolean isRunOnceDone()
isRunOnceDone in interface SkipOrRunOnlyOnceAwarepublic boolean checkRunOnceDone()
checkRunOnceDone in interface SkipOrRunOnlyOnceAwareprotected void init()
throws Exception
init in class AbstractRedmineMojoWithProjectAndVersionExceptionprotected boolean checkSkip()
checkSkip in class AbstractRedmineMojoWithProjectAndVersionprotected void doAction()
throws Exception
AbstractRedmineMojodoAction in class AbstractRedmineMojoException - if any problemsCopyright © 2009–2015 CodeLutin. All rights reserved.