public class BundleAntProject
extends org.apache.tools.ant.Project
AntLauncher or custom
bundle Ant tasks. The launcher or tasks can inform this project object of things that
are happening as the Ant script is being parsed and/or executed.
Also provides a common method for any task to invoke to send an audit message.| Modifier and Type | Class and Description |
|---|---|
static class |
BundleAntProject.AuditStatus |
| Constructor and Description |
|---|
BundleAntProject() |
BundleAntProject(boolean parseOnly) |
| Modifier and Type | Method and Description |
|---|---|
void |
auditLog(BundleAntProject.AuditStatus status,
String action,
String info,
String message,
String details)
Logs a message in a format that our audit task/agent-side audit log listener knows about.
|
String |
getBundleDescription() |
Set<String> |
getBundleFileNames() |
String |
getBundleName() |
String |
getBundleVersion() |
org.rhq.core.domain.configuration.Configuration |
getConfiguration() |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getConfigurationDefinition() |
DeployDifferences |
getDeployDifferences() |
File |
getDeployDir() |
int |
getDeploymentId() |
DeploymentPhase |
getDeploymentPhase() |
Set<File> |
getDownloadedFiles()
If there were url-file or url-archives, this returns the set of files
that were downloaded from the URLs.
|
boolean |
isDryRun() |
boolean |
isParseOnly() |
void |
setBundleDescription(String bundleDescription) |
void |
setBundleName(String bundleName) |
void |
setBundleVersion(String bundleVersion) |
void |
setDeployDir(File deployDir) |
void |
setDeploymentId(int deploymentId) |
void |
setDeploymentPhase(DeploymentPhase deploymentPhase) |
void |
setDryRun(boolean dryRun) |
addBuildListener, addDataTypeDefinition, addFilter, addIdReference, addOrReplaceTarget, addOrReplaceTarget, addReference, addTarget, addTarget, addTaskDefinition, checkTaskClass, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyInheritedProperties, copyUserProperties, createClassLoader, createClassLoader, createDataType, createSubProject, createTask, defaultInput, demuxFlush, demuxInput, demuxOutput, executeSortedTargets, executeTarget, executeTargets, fireBuildFinished, fireBuildStarted, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireMessageLogged, fireSubBuildFinished, fireSubBuildStarted, fireTargetFinished, fireTargetStarted, fireTaskFinished, fireTaskStarted, getBaseDir, getBuildListeners, getCoreLoader, getDataTypeDefinitions, getDefaultInputStream, getDefaultTarget, getDescription, getElementName, getExecutor, getFilters, getGlobalFilterSet, getInheritedProperties, getInputHandler, getJavaVersion, getName, getProject, getProperties, getProperty, getReference, getReferences, getResource, getTargets, getTaskDefinitions, getThreadTask, getUserProperties, getUserProperty, hasReference, inheritIDReferences, init, initProperties, initSubProject, isKeepGoingMode, log, log, log, log, log, log, log, registerThreadTask, removeBuildListener, replaceProperties, resolveFile, resolveFile, setBaseDir, setBasedir, setCoreLoader, setDefault, setDefaultInputStream, setDefaultTarget, setDescription, setExecutor, setFileLastModified, setInheritedProperty, setInputHandler, setJavaVersionProperty, setKeepGoingMode, setName, setNewProperty, setProjectReference, setProperty, setSystemProperties, setUserProperty, toBoolean, topoSort, topoSort, topoSort, translatePathpublic BundleAntProject()
public BundleAntProject(boolean parseOnly)
public boolean isParseOnly()
public org.rhq.core.domain.configuration.definition.ConfigurationDefinition getConfigurationDefinition()
public org.rhq.core.domain.configuration.Configuration getConfiguration()
public String getBundleName()
public void setBundleName(String bundleName)
public String getBundleVersion()
public void setBundleVersion(String bundleVersion)
public String getBundleDescription()
public void setBundleDescription(String bundleDescription)
public File getDeployDir()
public void setDeployDir(File deployDir)
public int getDeploymentId()
public void setDeploymentId(int deploymentId)
public DeploymentPhase getDeploymentPhase()
public void setDeploymentPhase(DeploymentPhase deploymentPhase)
public void setDryRun(boolean dryRun)
public boolean isDryRun()
public DeployDifferences getDeployDifferences()
public Set<File> getDownloadedFiles()
public void auditLog(BundleAntProject.AuditStatus status, String action, String info, String message, String details)
status - SUCCESS, FAILURE, WARN, INFOaction - audit action, a short summary easily displayed (e.g "File Download")info - information about the action target, easily displayed (e.g. "myfile.zip")message - Optional, brief (one or two lines) information messagedetails - Optional, verbose data, such as full file text or long error messages/stack tracesCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.