net.thucydides.core.reports.html
Class HtmlResourceCopier

Package class diagram package HtmlResourceCopier
java.lang.Object
  extended by 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 Summary
HtmlResourceCopier(String resourceDirectory)
           
 
Method Summary
 void copyHTMLResourcesTo(File targetDirectory)
          Resources (stylesheets, images) etc are all stored in the src/main/resources/reports directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlResourceCopier

public HtmlResourceCopier(String resourceDirectory)
Method Detail

copyHTMLResourcesTo

public void copyHTMLResourcesTo(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


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