org.wso2.carbon.utils
Class AntBuildInvoker

java.lang.Object
  extended by org.wso2.carbon.utils.AntBuildInvoker

public class AntBuildInvoker
extends Object

The class AntBuildInvoker provides a Java utility engine to invoke ANT targets of a given build file.


Constructor Summary
AntBuildInvoker(File buildFile)
          The constructor
 
Method Summary
 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)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntBuildInvoker

public AntBuildInvoker(File buildFile)
The constructor

Parameters:
buildFile - the ANT build file
Method Detail

invokeDefaultTarget

public void invokeDefaultTarget()
                         throws AntBuildException
Invokes 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 AntBuildException
Invokes 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


Copyright © 2014 WSO2 Inc. All rights reserved.