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:
java.lang.Cloneable,java.lang.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.ResourceCollectionDuplicate nested resources N times. Useful for running suites multiple times with load balancing.
-
-
Constructor Summary
Constructors Constructor Description DuplicateResources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfigured(org.apache.tools.ant.types.ResourceCollection rc)private java.util.List<java.lang.Object>getElements()booleanisFilesystemOnly()java.util.Iteratoriterator()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, toString
-
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
-
-
-
Method Detail
-
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
public java.util.Iterator iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<org.apache.tools.ant.types.Resource>
-
getElements
private java.util.List<java.lang.Object> 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
-
-