Package com.consol.citrus.actions
Class AntRunAction
- java.lang.Object
-
- com.consol.citrus.actions.AbstractTestAction
-
- com.consol.citrus.actions.AntRunAction
-
- All Implemented Interfaces:
com.consol.citrus.common.Described
,com.consol.citrus.common.Named
,com.consol.citrus.TestAction
,com.consol.citrus.TestActorAware
public class AntRunAction extends AbstractTestAction
Action calls Apache ANT with given build file and runs ANT targets as separate build. User can set and overwrite properties for the build. Build logging output is forwarded to test run logger.- Since:
- 1.3
- Author:
- Christoph Deppisch
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AntRunAction.Builder
Action builder.
-
Field Summary
-
Fields inherited from class com.consol.citrus.actions.AbstractTestAction
description
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doExecute(com.consol.citrus.context.TestContext context)
Subclasses may add custom execution logic here.String
getBuildFilePath()
Gets the buildFilePath.org.apache.tools.ant.BuildListener
getBuildListener()
Gets the buildListener.Properties
getProperties()
Gets the properties.String
getPropertyFilePath()
Gets the propertyFilePath.String
getTarget()
Gets the target.String
getTargets()
Gets the targets.-
Methods inherited from class com.consol.citrus.actions.AbstractTestAction
execute, getActor, getDescription, getName, isDisabled, setActor, setDescription, setName
-
-
-
-
Method Detail
-
doExecute
public void doExecute(com.consol.citrus.context.TestContext context)
Description copied from class:AbstractTestAction
Subclasses may add custom execution logic here.- Specified by:
doExecute
in classAbstractTestAction
-
getBuildFilePath
public String getBuildFilePath()
Gets the buildFilePath.- Returns:
- the buildFilePath the buildFilePath to get.
-
getTarget
public String getTarget()
Gets the target.- Returns:
- the target the target to get.
-
getTargets
public String getTargets()
Gets the targets.- Returns:
- the targets the targets to get.
-
getProperties
public Properties getProperties()
Gets the properties.- Returns:
- the properties the properties to get.
-
getPropertyFilePath
public String getPropertyFilePath()
Gets the propertyFilePath.- Returns:
- the propertyFilePath the propertyFilePath to get.
-
getBuildListener
public org.apache.tools.ant.BuildListener getBuildListener()
Gets the buildListener.- Returns:
- the buildListener the buildListener to get.
-
-