Class TestClassesScannerTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
de.hybris.ant.taskdefs.TestClassesScannerTask
All Implemented Interfaces:
Cloneable

public class TestClassesScannerTask extends org.apache.tools.ant.Task
This Task scans the TestClassesFolder for testclasses and stores them in a file called {ext_name}/resources/{ext_name}/{ext_name}-testclasses.xml
  • Field Summary

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected void
    executeForModules(ExtensionInfo extensionInfo, com.google.common.base.Stopwatch stopwatch, de.hybris.ant.taskdefs.TestClassesScannerTask.TestClassesScanner scanner, ExtensionModule... modules)
    Execute the scan for test classes for a list of modules.
     
    void
    setExtension(String extension)
     
    void
    setFileExtensions(String fileExtensions)
     
    void
    setTestSourceFolders(String testSourceFolders)
     

    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

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestClassesScannerTask

      public TestClassesScannerTask()
  • Method Details

    • execute

      public void execute()
      Overrides:
      execute in class org.apache.tools.ant.Task
    • executeForModules

      protected void executeForModules(ExtensionInfo extensionInfo, com.google.common.base.Stopwatch stopwatch, de.hybris.ant.taskdefs.TestClassesScannerTask.TestClassesScanner scanner, ExtensionModule... modules)
      Execute the scan for test classes for a list of modules.
      Parameters:
      extensionInfo - Extension to scan.
      stopwatch - Stopwatch instance for timing.
      scanner - Scanner instance.
      modules - List of modules to scan for test classes.
    • getExtension

      public String getExtension()
    • setExtension

      public void setExtension(String extension)
    • setTestSourceFolders

      public void setTestSourceFolders(String testSourceFolders)
    • setFileExtensions

      public void setFileExtensions(String fileExtensions)