Commit bc923390 authored by Daniel Bluhm's avatar Daniel Bluhm

Fix VelocityProperties use from dependent projects

Signed-off-by: Daniel Bluhm's avatarDaniel Bluhm <bluhmdj@ornl.gov>
parent 0f5a65d0
......@@ -11,7 +11,6 @@
package org.eclipse.ice.dev.annotations.processors;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
......@@ -46,8 +45,7 @@ class VelocityProperties extends Properties {
* Construct VelocityProperties, loading from resource file.
*/
private VelocityProperties() {
String propertyFile = getClass().getClassLoader().getResource(FILENAME).getPath();
try (InputStream propertyStream = new FileInputStream(propertyFile)) {
try (InputStream propertyStream = getClass().getClassLoader().getResourceAsStream(FILENAME)) {
super.load(propertyStream);
} catch (FileNotFoundException e) {
logger.error("velocity.properties could not be found");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment