java.lang.Object
net.thucydides.model.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 Details

    • ResourceList

      protected ResourceList(String resourceDirectory, Pattern pattern)
  • Method Details

    • forResources

      public static ResourceList forResources(String resourceDirectory, 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
    • zipFileFor

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