aboutsummaryrefslogtreecommitdiffstats
path: root/utils/provider/src
diff options
context:
space:
mode:
authorSmokowski, Kevin (ks6305) <kevin.smokowski@att.com>2020-02-03 16:02:18 +0000
committerDan Timoney <dtimoney@att.com>2020-02-21 14:01:50 -0500
commit28d8801959ffa9b12a00114c3d389a58a0359c40 (patch)
tree9e9bbfe922bc4bb205ab1a677d6538db0e3ed57b /utils/provider/src
parent599315984b449ca05f00b35037a103f1dc335030 (diff)
Springboot-based SLI-API
Implement SLI-API RESTCONF in springboot Change-Id: I8b9b07e3b1aeb4a5adac977307c6f95c905ea038 Issue-ID: CCSDK-2096 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'utils/provider/src')
-rwxr-xr-xutils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/utils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java b/utils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java
index cc164d04..9ae094f1 100755
--- a/utils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java
+++ b/utils/provider/src/main/java/org/onap/ccsdk/sli/core/utils/JREFileResolver.java
@@ -55,7 +55,14 @@ public class JREFileResolver implements PropertiesFileResolver {
@Override
public Optional<File> resolveFile(final String filename) {
- final Bundle bundle = FrameworkUtil.getBundle(this.clazz);
+ final Bundle bundle;
+
+ try {
+ bundle = FrameworkUtil.getBundle(this.clazz);
+ } catch (NoClassDefFoundError e) {
+ return Optional.empty();
+ }
+
final File dataFile;
@@ -82,9 +89,13 @@ public class JREFileResolver implements PropertiesFileResolver {
}
return Optional.of(dataFile);
- } catch(final Exception e) {
+ } catch (NoClassDefFoundError e) {
+ return Optional.empty();
+ }
+ catch(final Exception e) {
return Optional.empty();
}
+
}
@Override