java.lang.Object
org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.ListenerDefinition

public class ListenerDefinition extends Object
Represents the <listener> element within the <junitlauncher> task
  • Constructor Details

    • ListenerDefinition

      public ListenerDefinition()
  • Method Details

    • setClassName

      public void setClassName(String className)
    • getClassName

      public String getClassName()
    • setIf

      public void setIf(String ifProperty)
    • setUnless

      public void setUnless(String unlessProperty)
    • setType

      public void setType(ListenerDefinition.ListenerType type)
    • setResultFile

      public void setResultFile(String filename)
    • getResultFile

      public String getResultFile()
    • setExtension

      public void setExtension(String extension)
      Sets the output file extension for this listener.
      Parameters:
      extension - file extension to use
      Since:
      Ant 1.10.13
    • getExtension

      public String getExtension()
    • setSendSysOut

      public void setSendSysOut(boolean sendSysOut)
    • shouldSendSysOut

      public boolean shouldSendSysOut()
    • setSendSysErr

      public void setSendSysErr(boolean sendSysErr)
    • shouldSendSysErr

      public boolean shouldSendSysErr()
    • setOutputDir

      public void setOutputDir(File dir)
      Sets the output directory for this listener
      Parameters:
      dir - Path to the output directory
      Since:
      Ant 1.10.6
    • getOutputDir

      public File getOutputDir()
    • isUseLegacyReportingName

      public boolean isUseLegacyReportingName()
      Returns:
      Returns true if legacy reporting name (JUnit 4 style) is to be used. Else returns false.
      Since:
      Ant 1.10.10
    • setUseLegacyReportingName

      public void setUseLegacyReportingName(boolean useLegacyReportingName)
      Set the test identifier reporting style
      Parameters:
      useLegacyReportingName - true if legacy reporting name (JUnit 4 style) is to be used. Else false.
      Since:
      Ant 1.10.10
    • shouldUse

      public boolean shouldUse(Project project)
    • fromForkedRepresentation

      public static ListenerDefinition fromForkedRepresentation(XMLStreamReader reader) throws XMLStreamException
      Throws:
      XMLStreamException