net.thucydides.core.resources
Class ResourceList

Package class diagram package ResourceList
java.lang.Object
  extended by net.thucydides.core.resources.ResourceList

public class ResourceList
extends Object

Utility class to read report resources from the classpath. This way, report resources such as images and stylesheets can be shipped in a separate JAR file.


Constructor Summary
protected ResourceList(Pattern pattern)
           
 
Method Summary
static ResourceList forResources(Pattern pattern)
           
 Collection<String> list()
          Find a list of resources matching a given path on the classpath.
 Collection<String> systemPropertiesClasspathElements()
           
protected  ZipFile zipFileFor(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceList

protected ResourceList(Pattern pattern)
Method Detail

forResources

public static ResourceList forResources(Pattern pattern)

list

public Collection<String> list()
Find a list of resources matching a given path on the classpath. for all elements of java.class.path get a Collection of resources Pattern pattern = Pattern.compile(".*"); gets all resources

Returns:
the resources in the order they are found

systemPropertiesClasspathElements

public Collection<String> systemPropertiesClasspathElements()

zipFileFor

protected ZipFile zipFileFor(File file)
                      throws IOException
Throws:
IOException


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.