Skip to content

Instantly share code, notes, and snippets.

@yujuwon
Created January 11, 2013 01:06
Show Gist options
  • Save yujuwon/4507134 to your computer and use it in GitHub Desktop.
Save yujuwon/4507134 to your computer and use it in GitHub Desktop.
public class Test
{
private final static URL SITE_LOCATION;
private final static Logger logger = Logger.getLogger(com.test.class.getName());
static {
URL url = null;
try {
URL baseUrl;
url = new URL(baseUrl, "file:/C:/test/test.html");
} catch (MalformedURLException e) {
logger.warning("Failed to create URL Location: 'file:/C:/test/test.html', retrying as a local file");
logger.warning(e.getMessage());
}
SITE_LOCATION = url;
}
public Test() {
super(SITE_LOCATION, new QName("test", "test"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment