@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 |
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[] |
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 |
skipPublishAttachments
A flag to skip the goal.
|
releaseVersion, versionIdprojectId, releaseProject, releaseUser, usersapiKey, dateFormat, encoding, initOk, password, project, REDMINE_SYSTEM, runOnceDone, safe, service, serviceInit, session, url, username, verbose| Constructor and Description |
|---|
PublishAttachmentsMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkRunOnceDone() |
protected boolean |
checkSkip() |
protected void |
doAction()
Re-expose the protected method for test purposes...
|
protected List<File> |
getFilesToDeploy() |
protected void |
init() |
boolean |
isAnonymous() |
boolean |
isDryRun() |
protected boolean |
isGoalSkip() |
protected boolean |
isRunOnce() |
void |
setAnonymous(boolean anonymous) |
void |
setDryRun(boolean dryRun) |
getProjectVersion, getProjectVersions, getVersionId, initReleaseVersion, setVersionIdgetProjectId, initReleaseProject, initReleaseUser, setProjectIdafterExecute, 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.anonymous",
defaultValue="false")
protected boolean anonymous
false, you should fill AbstractRedmineMojo.username
and AbstractRedmineMojo.password properties.@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
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 DryRunAwareprotected boolean isGoalSkip()
isGoalSkip in class AbstractRedmineMojoprotected boolean isRunOnce()
isRunOnce in class AbstractRedmineMojoprotected boolean checkRunOnceDone()
checkRunOnceDone in class AbstractRedmineMojoprotected 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-2012 CodeLutin. All Rights Reserved.