Created
January 11, 2013 01:06
-
-
Save yujuwon/4507134 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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