Class DuplicateResources
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
com.carrotsearch.ant.tasks.junit4.DuplicateResources
- All Implemented Interfaces:
Cloneable, Iterable<org.apache.tools.ant.types.Resource>, org.apache.tools.ant.types.ResourceCollection
public class DuplicateResources
extends org.apache.tools.ant.types.DataType
implements org.apache.tools.ant.types.ResourceCollection
Duplicate nested resources N times. Useful for running
suites multiple times with load balancing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<org.apache.tools.ant.types.ResourceCollection> private intFields inherited from class org.apache.tools.ant.types.DataType
checked, refFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigured(org.apache.tools.ant.types.ResourceCollection rc) booleaniterator()voidsetTimes(int times) Set the number of times the input resources should be duplicated.intsize()Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toStringMethods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface org.apache.tools.ant.types.ResourceCollection
isEmpty, stream
-
Field Details
-
rcs
-
times
private int times
-
-
Constructor Details
-
DuplicateResources
public DuplicateResources()
-
-
Method Details
-
addConfigured
public void addConfigured(org.apache.tools.ant.types.ResourceCollection rc) -
setTimes
public void setTimes(int times) Set the number of times the input resources should be duplicated. -
iterator
-
getElements
-
size
public int size()- Specified by:
sizein interfaceorg.apache.tools.ant.types.ResourceCollection
-
isFilesystemOnly
public boolean isFilesystemOnly()- Specified by:
isFilesystemOnlyin interfaceorg.apache.tools.ant.types.ResourceCollection
-