public class AntLauncher extends Object
| Constructor and Description |
|---|
AntLauncher()
Deprecated.
since 4.9.0. You can keep using this constructor but be aware that it might change behavior in some
future version of RHQ. It will NOT be removed though.
|
AntLauncher(boolean requireExplicitCompliance) |
| Modifier and Type | Method and Description |
|---|---|
BundleAntProject |
executeBundleDeployFile(File buildFile,
Properties buildProperties,
List<org.apache.tools.ant.BuildListener> buildListeners)
Executes the specified bundle deploy Ant build file (i.e.
|
BundleAntProject |
parseBundleDeployFile(File buildFile,
Properties buildProperties) |
@Deprecated public AntLauncher()
AntLauncher(false).
Note that this might change in the future, because we are requiring the explicit declaration of the
destination directory's compliance mode starting with RHQ 4.9.0.
Nevertheless this constructor is behaving as it was before RHQ 4.9.0 so that users of it aren't surprised
by its behavior.public AntLauncher(boolean requireExplicitCompliance)
requireExplicitCompliance - whether or not to enforce the presence of compliance attribute in the
deployment unit definitions. Before RHQ 4.9.0 a similar deprecated attribute
called manageRootDir was optional and defaulted to true. Since
RHQ 4.9.0 we require the user to explicitly specify the compliance of the
destination directory. But to keep backwards compatibility with the older
bundle recipes already deployed on the agents, we make this behavior optional.public BundleAntProject executeBundleDeployFile(File buildFile, Properties buildProperties, List<org.apache.tools.ant.BuildListener> buildListeners) throws InvalidBuildFileException
buildFile - the path to the build file (i.e. rhq-deploy.xml)buildProperties - the properties to pass into AntbuildListeners - a list of build listeners (provide callback methods for targetExecuted, taskExecuted, etc.)InvalidBuildFileException - if the build file is invalidpublic BundleAntProject parseBundleDeployFile(File buildFile, Properties buildProperties) throws InvalidBuildFileException
InvalidBuildFileExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.