File tree 4 files changed +5
-5
lines changed
src/main/java/com/ericsson/eiffelcommons
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 4
4
<modelVersion >4.0.0</modelVersion >
5
5
<groupId >com.github.ericsson</groupId >
6
6
<artifactId >eiffel-commons-java</artifactId >
7
- <version >0.0.7 </version >
7
+ <version >0.0.8 </version >
8
8
<name >eiffel commons java</name >
9
9
<description >A shared library for eiffel components</description >
10
10
Original file line number Diff line number Diff line change 10
10
import lombok .Getter ;
11
11
12
12
public abstract class SubscriptionObject {
13
- private static final String SUBSCRIPTION_TEMPLATE_PATH = "subscriptionsTemplate.json" ;
13
+ private static final String SUBSCRIPTION_TEMPLATE_PATH = "/ subscriptionsTemplate.json" ;
14
14
15
15
@ Getter
16
16
protected JSONObject subscriptionJson ;
Original file line number Diff line number Diff line change 5
5
import org .json .JSONObject ;
6
6
7
7
public class RegExProvider {
8
- private static final String REGULAR_EXPRESSIONS_PATH = "regExs.json" ;
8
+
9
+ private static final String REGULAR_EXPRESSIONS_PATH = "/regExs.json" ;
9
10
10
11
/**
11
12
* This method returns Json Object for regular expressions
Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ public class Utils {
36
36
* @throws FileNotFoundException
37
37
*/
38
38
public static String getResourceFileAsString (String fileName ) throws FileNotFoundException {
39
- ClassLoader classLoader = ClassLoader .getSystemClassLoader ();
40
- InputStream inputStream = classLoader .getResourceAsStream (fileName );
39
+ InputStream inputStream = Utils .class .getResourceAsStream (fileName );
41
40
if (inputStream != null ) {
42
41
BufferedReader reader = new BufferedReader (new InputStreamReader (inputStream ));
43
42
return reader .lines ()
You can’t perform that action at this time.
0 commit comments