Package org.wso2.carbon.utils
Class AntBuildInvoker
- java.lang.Object
-
- org.wso2.carbon.utils.AntBuildInvoker
-
public class AntBuildInvoker extends Object
The classAntBuildInvokerprovides a Java utility engine to invokeANTtargets of a given build file.
-
-
Constructor Summary
Constructors Constructor Description AntBuildInvoker(File buildFile)The constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvokeDefaultTarget()Invokes 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 Detail
-
AntBuildInvoker
public AntBuildInvoker(File buildFile)
The constructor- Parameters:
buildFile- theANTbuild file
-
-
Method Detail
-
invokeDefaultTarget
public void invokeDefaultTarget() throws AntBuildExceptionInvokes the default target of the build file. Runs in silent mode- Throws:
AntBuildException- if invoking the target failed
-
invokeDefaultTarget
public void invokeDefaultTarget(boolean showOutput) throws AntBuildExceptionInvokes the default target of the build file. Runs in verbose mode- Throws:
AntBuildException- if invoking the target failed
-
invokeTarget
public void invokeTarget(String target) throws AntBuildException
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
public void invokeTarget(String target, boolean showOutput) throws AntBuildException
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
-
-