net.sourceforge.cobertura.util

Class ConfigurationUtil

public class ConfigurationUtil extends Object

A Utility Class to load the configuration. Checks for values using the following hierarchy. 1) System Property matching key. 2) cobertura.properties Resource Property matching key. 3) hardcoded default value

Author: Joakim Erdfelt

Field Summary
Propertiesprops
static StringRESOURCE
Constructor Summary
ConfigurationUtil()
Method Summary
voidDEBUG(String msg)
Poor mans debugging.
StringgetDatafile()
StringgetProperty(String key, String defvalue)
voidinit()

Field Detail

props

private Properties props

RESOURCE

public static final String RESOURCE

Constructor Detail

ConfigurationUtil

public ConfigurationUtil()

Method Detail

DEBUG

private void DEBUG(String msg)
Poor mans debugging. Intentionally didn't use log4j, as we dont want to introduce that dependency on instrumented files.

getDatafile

public String getDatafile()

getProperty

public String getProperty(String key, String defvalue)

init

public void init()