Class ListenerDefinition
java.lang.Object
org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.ListenerDefinition
public class ListenerDefinition
extends java.lang.Object
Represents the
<listener> element within the <junitlauncher>
task-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListenerDefinition.ListenerTypedefines available listener types. -
Constructor Summary
Constructors Constructor Description ListenerDefinition() -
Method Summary
Modifier and Type Method Description static ListenerDefinitionfromForkedRepresentation(javax.xml.stream.XMLStreamReader reader)java.lang.StringgetClassName()java.lang.StringgetOutputDir()java.lang.StringgetResultFile()voidsetClassName(java.lang.String className)voidsetIf(java.lang.String ifProperty)voidsetOutputDir(java.lang.String dir)Sets the output directory for this listenervoidsetResultFile(java.lang.String filename)voidsetSendSysErr(boolean sendSysErr)voidsetSendSysOut(boolean sendSysOut)voidsetType(ListenerDefinition.ListenerType type)voidsetUnless(java.lang.String unlessProperty)booleanshouldSendSysErr()booleanshouldSendSysOut()booleanshouldUse(Project project)
-
Constructor Details
-
ListenerDefinition
public ListenerDefinition()
-
-
Method Details
-
setClassName
public void setClassName(java.lang.String className) -
getClassName
public java.lang.String getClassName() -
setIf
public void setIf(java.lang.String ifProperty) -
setUnless
public void setUnless(java.lang.String unlessProperty) -
setType
-
setResultFile
public void setResultFile(java.lang.String filename) -
getResultFile
public java.lang.String getResultFile() -
setSendSysOut
public void setSendSysOut(boolean sendSysOut) -
shouldSendSysOut
public boolean shouldSendSysOut() -
setSendSysErr
public void setSendSysErr(boolean sendSysErr) -
shouldSendSysErr
public boolean shouldSendSysErr() -
setOutputDir
public void setOutputDir(java.lang.String dir)Sets the output directory for this listener- Parameters:
dir- Path to the output directory- Since:
- Ant 1.10.6
-
getOutputDir
public java.lang.String getOutputDir() -
shouldUse
-
fromForkedRepresentation
public static ListenerDefinition fromForkedRepresentation(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException- Throws:
javax.xml.stream.XMLStreamException
-