sdcs
This commit is contained in:
parent
e53ed45d42
commit
70bd9606ca
@ -98,8 +98,7 @@ public class Uri {
|
|||||||
private static List<String> getResourceFiles(final Class<?> clazz, final String path) throws IOException {
|
private static List<String> getResourceFiles(final Class<?> clazz, final String path) throws IOException {
|
||||||
List<String> filenames = new ArrayList<>();
|
List<String> filenames = new ArrayList<>();
|
||||||
|
|
||||||
try (InputStream in = clazz.getResourceAsStream(path);
|
try (InputStream in = clazz.getResourceAsStream(path); BufferedReader br = new BufferedReader(new InputStreamReader(in))) {
|
||||||
BufferedReader br = new BufferedReader(new InputStreamReader(in))) {
|
|
||||||
String resource;
|
String resource;
|
||||||
while ((resource = br.readLine()) != null) {
|
while ((resource = br.readLine()) != null) {
|
||||||
filenames.add(resource);
|
filenames.add(resource);
|
||||||
@ -140,7 +139,7 @@ public class Uri {
|
|||||||
if (realFileName != null) {
|
if (realFileName != null) {
|
||||||
Log.info("(appl) >>> " + realFileName.getFile());
|
Log.info("(appl) >>> " + realFileName.getFile());
|
||||||
} else {
|
} else {
|
||||||
Log.info("(appl) ??? base folder:" + Uri.applicationClass.getProtectionDomain().getCodeSource().getLocation().getPath() + Uri.applicationBasePath + offsetGroup + uri.path);
|
Log.info("(appl) ??? base folder: " + Uri.applicationClass.getProtectionDomain().getCodeSource().getLocation().getPath() + Uri.applicationBasePath + offsetGroup + uri.path);
|
||||||
}
|
}
|
||||||
out = Uri.applicationClass.getResourceAsStream(tmpPath);
|
out = Uri.applicationClass.getResourceAsStream(tmpPath);
|
||||||
|
|
||||||
@ -178,7 +177,7 @@ public class Uri {
|
|||||||
if (realFileName != null) {
|
if (realFileName != null) {
|
||||||
Log.info("(lib) >>> " + realFileName.getFile());
|
Log.info("(lib) >>> " + realFileName.getFile());
|
||||||
} else {
|
} else {
|
||||||
Log.info("(lib) ??? base folder:" + libraryElement.klass.getProtectionDomain().getCodeSource().getLocation().getPath() + libraryElement.basePath + offsetGroup + uri.path);
|
Log.info("(lib) ??? base folder: " + libraryElement.klass.getProtectionDomain().getCodeSource().getLocation().getPath() + libraryElement.basePath + offsetGroup + uri.path);
|
||||||
}
|
}
|
||||||
out = libraryElement.klass.getResourceAsStream(tmpPath);
|
out = libraryElement.klass.getResourceAsStream(tmpPath);
|
||||||
if (out == null) {
|
if (out == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user