// download csar package and save in location.
JSONObject downloadObject =
- downloadCsar(downloadUri, csarfilepath + System.getProperty("file.separator") + csarfilename);
+ downloadCsar(downloadUri, csarfilepath + System.getProperty(Constant.FILE_SEPARATOR) + csarfilename);
if(Integer.valueOf(downloadObject.get("retCode").toString()) != Constant.REST_SUCCESS) {
LOG.error("download CSAR fail.", downloadObject.get("retCode"));
// unzip csar package to location.
JSONObject unzipObject =
- unzipCSAR(csarfilepath + System.getProperty("file.separator") + csarfilename, csarfilepath);
+ unzipCSAR(csarfilepath + System.getProperty(Constant.FILE_SEPARATOR) + csarfilename, csarfilepath);
if(Integer.valueOf(unzipObject.get("retCode").toString()) != Constant.REST_SUCCESS) {
LOG.error("unzip CSAR fail.", unzipObject.get("retCode"));
BufferedInputStream bins = null;
String fileContent = "";
- String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot() + System.getProperty("file.separator")
- + "etc" + System.getProperty("file.separator") + "vnfpkginfo" + System.getProperty("file.separator")
- + Constant.VNFPKGINFO;
+ String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot()
+ + System.getProperty(Constant.FILE_SEPARATOR) + "etc" + System.getProperty(Constant.FILE_SEPARATOR)
+ + "vnfpkginfo" + System.getProperty(Constant.FILE_SEPARATOR) + Constant.VNFPKGINFO;
try {
ins = new FileInputStream(fileName);
BufferedInputStream bins = null;
String fileContent = "";
- String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot() + System.getProperty("file.separator")
- + "etc" + System.getProperty("file.separator") + "vnfpkginfo" + System.getProperty("file.separator")
- + "vnfd_ids.json";
+ String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot()
+ + System.getProperty(Constant.FILE_SEPARATOR) + "etc" + System.getProperty(Constant.FILE_SEPARATOR)
+ + "vnfpkginfo" + System.getProperty(Constant.FILE_SEPARATOR) + "vnfd_ids.json";
try {
ins = new FileInputStream(fileName);
BufferedInputStream bins = null;
String fileContent = "";
- String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot() + System.getProperty("file.separator")
- + "etc" + System.getProperty("file.separator") + "adapterInfo" + System.getProperty("file.separator")
- + VNFMADAPTER2DRIVERMGR;
+ String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot()
+ + System.getProperty(Constant.FILE_SEPARATOR) + "etc" + System.getProperty(Constant.FILE_SEPARATOR)
+ + "adapterInfo" + System.getProperty(Constant.FILE_SEPARATOR) + VNFMADAPTER2DRIVERMGR;
try {
ins = new FileInputStream(fileName);
BufferedInputStream bins = null;
String fileContent = "";
- String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot() + System.getProperty("file.separator")
- + "etc" + System.getProperty("file.separator") + "adapterInfo" + System.getProperty("file.separator")
- + VNFMADAPTERINFO;
+ String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot()
+ + System.getProperty(Constant.FILE_SEPARATOR) + "etc" + System.getProperty(Constant.FILE_SEPARATOR)
+ + "adapterInfo" + System.getProperty(Constant.FILE_SEPARATOR) + VNFMADAPTERINFO;
try {
ins = new FileInputStream(fileName);
import javax.net.ssl.X509TrustManager;
import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.common.restclient.SystemEnvVariablesFactory;
+import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.constant.Constant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
BufferedInputStream bins = null;
String fileContent = "";
- String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot() + System.getProperty("file.separator")
- + "etc" + System.getProperty("file.separator") + "conf" + System.getProperty("file.separator")
- + "sslconf.json";
+ String fileName = SystemEnvVariablesFactory.getInstance().getAppRoot()
+ + System.getProperty(Constant.FILE_SEPARATOR) + "etc" + System.getProperty(Constant.FILE_SEPARATOR)
+ + "conf" + System.getProperty(Constant.FILE_SEPARATOR) + "sslconf.json";
try {
ins = new FileInputStream(fileName);