net.sourceforge.cobertura.reporting.html.files
public abstract class CopyFiles extends java.lang.Object
Constructor and Description |
---|
CopyFiles() |
Modifier and Type | Method and Description |
---|---|
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.
|
public CopyFiles()
public static void copy(java.io.File destinationDir) throws java.io.IOException
java.io.IOException
private static void copyResourceFromJar(java.lang.String resourceName, java.io.File directory) throws java.io.IOException
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.java.io.IOException
- If the file could not be read from the
jar or written to the disk.