Select correct classloader
This commit is contained in:
parent
51dbaa5c54
commit
2d9d6e32de
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ public class ConverterFactory {
|
||||||
*/
|
*/
|
||||||
public static String getVersion() {
|
public static String getVersion() {
|
||||||
Properties prop = new Properties();
|
Properties prop = new Properties();
|
||||||
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
ClassLoader loader = ConverterFactory.class.getClassLoader();
|
||||||
InputStream stream = loader.getResourceAsStream(propPath);
|
InputStream stream = loader.getResourceAsStream(propPath);
|
||||||
String version = "Failed to get version";
|
String version = "Failed to get version";
|
||||||
try {
|
try {
|
||||||
|
@ -61,7 +61,7 @@ public class ConverterFactory {
|
||||||
*/
|
*/
|
||||||
public static String getDate() {
|
public static String getDate() {
|
||||||
Properties prop = new Properties();
|
Properties prop = new Properties();
|
||||||
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
ClassLoader loader = ConverterFactory.class.getClassLoader();
|
||||||
InputStream stream = loader.getResourceAsStream(propPath);
|
InputStream stream = loader.getResourceAsStream(propPath);
|
||||||
String date = "Failed to get date";
|
String date = "Failed to get date";
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Add table
Reference in a new issue