From 479243ad2b77fd90f55142e2b81db7fb6b1e09e6 Mon Sep 17 00:00:00 2001 From: lizi00164331 Date: Wed, 19 Apr 2017 17:21:44 +0800 Subject: Modify the config of wso2 Issue-ID: OCS-217 Change-Id: I6ab627200ebae31ea77b0da5d608b9f8f52b701e Signed-off-by: lizi00164331 --- .../org/openo/carbon/bpel/Wso2BpelConfiguration.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'wso2bpel-ext/wso2bpel-core/wso2bpel-mgr') diff --git a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java b/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java index 9c0967e..953a919 100644 --- a/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java +++ b/wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java @@ -143,7 +143,11 @@ public class Wso2BpelConfiguration extends Configuration { @JsonProperty public void setWso2Path(String wso2Path) { - this.wso2Path = wso2Path; + if (wso2Path.startsWith("/") == false) { + this.wso2Path = System.getProperty("WSO2_EXT_HOME") + "/" + wso2Path; + } else { + this.wso2Path = wso2Path; + } } @JsonProperty @@ -153,7 +157,11 @@ public class Wso2BpelConfiguration extends Configuration { @JsonProperty public void setWso2UploadFilePath(String wso2UploadFilePath) { - this.wso2UploadFilePath = wso2UploadFilePath; + if (wso2UploadFilePath.startsWith("/") == false) { + this.wso2UploadFilePath = System.getProperty("WSO2_EXT_HOME") + "/" + wso2UploadFilePath; + } else { + this.wso2UploadFilePath = wso2UploadFilePath; + } } @JsonProperty @@ -163,7 +171,11 @@ public class Wso2BpelConfiguration extends Configuration { @JsonProperty public void setWso2SslJksFile(String wso2SslJksFile) { - this.wso2SslJksFile = wso2SslJksFile; + if (wso2SslJksFile.startsWith("/") == false) { + this.wso2SslJksFile = System.getProperty("WSO2_EXT_HOME") + "/" + wso2SslJksFile; + } else { + this.wso2SslJksFile = wso2SslJksFile; + } } @JsonProperty -- cgit 1.2.3-korg