Package de.hybris.ant.taskdefs
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, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected voidexecuteForModules(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.voidsetExtension(String extension) voidsetFileExtensions(String fileExtensions) voidsetTestSourceFolders(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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
TestClassesScannerTask
public TestClassesScannerTask()
-
-
Method Details
-
execute
public void execute()- Overrides:
executein classorg.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
-
setExtension
-
setTestSourceFolders
-
setFileExtensions
-