From 21926fdef8ddedb42181502aaa1dcdffb08dd572 Mon Sep 17 00:00:00 2001 From: schlaepfer Date: Thu, 26 Oct 2006 12:39:53 +0000 Subject: [PATCH] - 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 --- java/build.xml | 2 +- java/{ => src}/.configure | 0 java/src/ch/ntb/usb/logger/LogUtil.java | 4 +++- java/version.properties | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) rename java/{ => src}/.configure (100%) diff --git a/java/build.xml b/java/build.xml index b730185..f5b0d6f 100644 --- a/java/build.xml +++ b/java/build.xml @@ -49,7 +49,7 @@ - + diff --git a/java/.configure b/java/src/.configure similarity index 100% rename from java/.configure rename to java/src/.configure diff --git a/java/src/ch/ntb/usb/logger/LogUtil.java b/java/src/ch/ntb/usb/logger/LogUtil.java index 75fc9ff..159f45d 100644 --- a/java/src/ch/ntb/usb/logger/LogUtil.java +++ b/java/src/ch/ntb/usb/logger/LogUtil.java @@ -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 diff --git a/java/version.properties b/java/version.properties index e4ee0bb..db02053 100644 --- a/java/version.properties +++ b/java/version.properties @@ -1,4 +1,4 @@ #Thu Aug 24 14:28:28 CEST 2006 version.major=0 -version.minor=2 +version.minor=3 version.release=0