Package org.wso2.carbon.utils
Class AntBuildInvoker
java.lang.Object
org.wso2.carbon.utils.AntBuildInvoker
The class
AntBuildInvoker provides a Java utility engine to
invoke ANT targets of a given build file.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvokes the default target of the build file.voidinvokeDefaultTarget(boolean showOutput) Invokes the default target of the build file.voidinvokeTarget(String target) Invokes the given target of the build file.voidinvokeTarget(String target, boolean showOutput) Invokes the given target of the build file under the given mode (silent/verbose)
-
Constructor Details
-
AntBuildInvoker
The constructor- Parameters:
buildFile- theANTbuild file
-
-
Method Details
-
invokeDefaultTarget
Invokes the default target of the build file. Runs in silent mode- Throws:
AntBuildException- if invoking the target failed
-
invokeDefaultTarget
Invokes the default target of the build file. Runs in verbose mode- Throws:
AntBuildException- if invoking the target failed
-
invokeTarget
Invokes the given target of the build file. Runs in silent mode- Parameters:
target- the target to be executed- Throws:
AntBuildException- if invoking the target failed
-
invokeTarget
Invokes the given target of the build file under the given mode (silent/verbose)- Parameters:
target- the target to be executed- Throws:
AntBuildException- if invoking the target failed
-