net.thucydides.core.resources
Class ResourceList
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceList
protected ResourceList(Pattern pattern)
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-2013 Wakaleo Consulting. All Rights Reserved.