Package org.jacoco.ant
Class DumpTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.jacoco.ant.DumpTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class DumpTask extends org.apache.tools.ant.TaskAnt task for remotely controlling an application that is running with the tcpserver output mode
-
-
Constructor Summary
Constructors Constructor Description DumpTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidsetAddress(java.lang.String address)IP Address or hostname to connect to.voidsetAppend(boolean append)trueif the destination file it to be appended to.voidsetDestfile(java.io.File destfile)Sets the location of the execution data file to write.voidsetDump(boolean dump)Sets whether execution data should be downloaded from the remote host.voidsetPort(int port)Port number to connect to.voidsetReset(boolean reset)Sets whether a reset command should be sent after the execution data has been dumped.voidsetRetryCount(int retryCount)Number of retries which the goal will attempt to establish a connection.-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setDestfile
public void setDestfile(java.io.File destfile)
Sets the location of the execution data file to write. This parameter is required when dump istrue. Default isjacoco.exec- Parameters:
destfile- Location to write execution data to
-
setAddress
public void setAddress(java.lang.String address)
IP Address or hostname to connect to. Defaults tolocalhost- Parameters:
address- IP Address or hostname to connect to
-
setPort
public void setPort(int port)
Port number to connect to. Default is6300- Parameters:
port- Port to connect to
-
setRetryCount
public void setRetryCount(int retryCount)
Number of retries which the goal will attempt to establish a connection. This can be used to wait until the target JVM is successfully launched.- Parameters:
retryCount- number of retries
-
setAppend
public void setAppend(boolean append)
trueif the destination file it to be appended to.falseif the file is to be overwritten- Parameters:
append-trueif the destination file should be appended to
-
setDump
public void setDump(boolean dump)
Sets whether execution data should be downloaded from the remote host. Defaults totrue- Parameters:
dump-trueto download execution data
-
setReset
public void setReset(boolean reset)
Sets whether a reset command should be sent after the execution data has been dumped. Defaults tofalse- Parameters:
reset-trueto reset execution data
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
-