org.rhq.bundle.ant
Class AntLauncher
java.lang.Object
org.rhq.bundle.ant.AntLauncher
public class AntLauncher
- extends Object
This object enables you to invoke an Ant script within the running VM. You can fully run the script
or you can ask that the script just be parsed and validated but no tasks executed.
- Author:
- John Mazzitelli, Ian Springer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AntLauncher
public AntLauncher()
executeBundleDeployFile
public BundleAntProject executeBundleDeployFile(File buildFile,
Properties buildProperties,
List<org.apache.tools.ant.BuildListener> buildListeners)
throws InvalidBuildFileException
- Executes the specified bundle deploy Ant build file (i.e. rhq-deploy.xml).
- Parameters:
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.)
- Returns:
- the bundle Ant project containing information about the specified build file
- Throws:
InvalidBuildFileException - if the build file is invalid
parseBundleDeployFile
public BundleAntProject parseBundleDeployFile(File buildFile,
Properties buildProperties)
throws InvalidBuildFileException
- Throws:
InvalidBuildFileException
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.