Class HtmlResourceCopier

java.lang.Object
net.thucydides.core.reports.html.HtmlResourceCopier

public class HtmlResourceCopier extends Object
Utility class that copies HTML resource files (images, stylesheets...) from a JAR to a target directory.
  • Constructor Details

    • HtmlResourceCopier

      public HtmlResourceCopier(String resourceDirectory)
  • Method Details

    • to

      public void to(File targetDirectory) throws IOException
      Resources (stylesheets, images) etc are all stored in the src/main/resources/reports directory. When the jar is deployed, they will end up on the classpath.
      Throws:
      IOException
    • copyHtmlResourcesFrom

      public static HtmlResourceCopier copyHtmlResourcesFrom(String resourceDirectory)