- version updated
- .configure moved to src/bin directory - UTF-8 decoder for filepath git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@185 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
@@ -3,6 +3,7 @@ package ch.ntb.usb.logger;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.net.URL;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.ConsoleHandler;
|
||||
import java.util.logging.Handler;
|
||||
@@ -60,7 +61,8 @@ public class LogUtil {
|
||||
if (url == null)
|
||||
throw new FileNotFoundException(PROPERTIES_FILE
|
||||
+ " not found -> file must be on classpath");
|
||||
FileInputStream fis = new FileInputStream(url.getFile());
|
||||
String filename = URLDecoder.decode(url.getPath(), "UTF-8");
|
||||
FileInputStream fis = new FileInputStream(filename);
|
||||
Properties prop = new Properties();
|
||||
prop.load(fis);
|
||||
// get global debug enable flag
|
||||
|
||||
Reference in New Issue
Block a user