com.carrotsearch.ant.tasks.junit4
Class DuplicateResources

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.types.DataType
          extended by com.carrotsearch.ant.tasks.junit4.DuplicateResources
All Implemented Interfaces:
Cloneable, 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
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
DuplicateResources()
           
 
Method Summary
 void addConfigured(org.apache.tools.ant.types.ResourceCollection rc)
           
 boolean isFilesystemOnly()
           
 Iterator iterator()
           
 void setTimes(int times)
          Set the number of times the input resources should be duplicated.
 int size()
           
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateResources

public DuplicateResources()
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 Iterator iterator()
Specified by:
iterator in interface org.apache.tools.ant.types.ResourceCollection

size

public int size()
Specified by:
size in interface org.apache.tools.ant.types.ResourceCollection

isFilesystemOnly

public boolean isFilesystemOnly()
Specified by:
isFilesystemOnly in interface org.apache.tools.ant.types.ResourceCollection


Copyright © 2011-2012 Carrot Search s.c.. All Rights Reserved.