Class TestClassesScannerTask

  • All Implemented Interfaces:
    java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      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.
      java.lang.String getExtension()  
      void setExtension​(java.lang.String extension)  
      void setFileExtensions​(java.lang.String fileExtensions)  
      void setTestSourceFolders​(java.lang.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 Detail

      • TestClassesScannerTask

        public TestClassesScannerTask()
    • Method Detail

      • 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 java.lang.String getExtension()
      • setExtension

        public void setExtension​(java.lang.String extension)
      • setTestSourceFolders

        public void setTestSourceFolders​(java.lang.String testSourceFolders)
      • setFileExtensions

        public void setFileExtensions​(java.lang.String fileExtensions)