net.sourceforge.cobertura.reporting.html.files
Class CopyFiles

java.lang.Object
  extended bynet.sourceforge.cobertura.reporting.html.files.CopyFiles

public abstract class CopyFiles
extends java.lang.Object


Constructor Summary
CopyFiles()
           
 
Method Summary
static void copy(java.io.File destinationDir)
           
private static void copyResourceFromJar(java.lang.String resourceName, java.io.File directory)
          Copy a file from the jar to a directory on the local machine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyFiles

public CopyFiles()
Method Detail

copy

public static void copy(java.io.File destinationDir)
                 throws java.io.IOException
Throws:
java.io.IOException

copyResourceFromJar

private static void copyResourceFromJar(java.lang.String resourceName,
                                        java.io.File directory)
                                 throws java.io.IOException
Copy a file from the jar to a directory on the local machine.

Parameters:
resourceName - The name of the file in the jar. This file must exist the same package as this method.
directory - The directory to copy the jar to.
Throws:
java.io.IOException - If the file could not be read from the jar or written to the disk.