aboutsummaryrefslogtreecommitdiffstats
path: root/data-migrator
diff options
context:
space:
mode:
Diffstat (limited to 'data-migrator')
-rw-r--r--data-migrator/pom.xml5
-rw-r--r--data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java3
2 files changed, 7 insertions, 1 deletions
diff --git a/data-migrator/pom.xml b/data-migrator/pom.xml
index 5c1922ef..48b1a0de 100644
--- a/data-migrator/pom.xml
+++ b/data-migrator/pom.xml
@@ -68,6 +68,11 @@
<version>2.18.0</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.onap.ccsdk.sli.core</groupId>
+ <artifactId>utils-provider</artifactId>
+ <version>${ccsdk.sli.version}</version>
+ </dependency>
</dependencies>
<build>
diff --git a/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java b/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java
index 40a1b920..9c3f7ac9 100644
--- a/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java
+++ b/data-migrator/src/main/java/org/onap/sdnc/oam/datamigrator/common/MigratorConfiguration.java
@@ -19,6 +19,7 @@
*/
package org.onap.sdnc.oam.datamigrator.common;
+import org.onap.ccsdk.sli.core.utils.common.EnvProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -73,7 +74,7 @@ public class MigratorConfiguration {
+ propFile);
}
- Properties props = new Properties();
+ Properties props = new EnvProperties();
props.load(new FileInputStream(propFile));
this.sourceHost = props.getProperty("org.onap.sdnc.datamigrator.source.host");
this.sourceUser = props.getProperty("org.onap.sdnc.datamigrator.source.user");