public class AntBuildInvoker extends Object
AntBuildInvoker provides a Java utility engine to
invoke ANT targets of a given build file.| Constructor and Description |
|---|
AntBuildInvoker(File buildFile)
The constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
invokeDefaultTarget()
Invokes the default target of the build file.
|
void |
invokeDefaultTarget(boolean showOutput)
Invokes the default target of the build file.
|
void |
invokeTarget(String target)
Invokes the given target of the build file.
|
void |
invokeTarget(String target,
boolean showOutput)
Invokes the given target of the build file under the given mode (silent/verbose)
|
public AntBuildInvoker(File buildFile)
buildFile - the ANT build filepublic void invokeDefaultTarget()
throws AntBuildException
AntBuildException - if invoking the target failedpublic void invokeDefaultTarget(boolean showOutput)
throws AntBuildException
AntBuildException - if invoking the target failedpublic void invokeTarget(String target) throws AntBuildException
target - the target to be executedAntBuildException - if invoking the target failedpublic void invokeTarget(String target, boolean showOutput) throws AntBuildException
target - the target to be executedAntBuildException - if invoking the target failedCopyright © 2018 WSO2 Inc. All rights reserved.