net.sourceforge.cobertura.reporting.html.files

Class CopyFiles

public abstract class CopyFiles extends Object

Method Summary
static voidcopy(File destinationDir)
static voidcopyResourceFromJar(String resourceName, File directory)
Copy a file from the jar to a directory on the local machine.

Method Detail

copy

public static void copy(File destinationDir)

copyResourceFromJar

private static void copyResourceFromJar(String resourceName, File directory)
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: IOException If the file could not be read from the jar or written to the disk.