diff options
author | 2017-04-19 17:21:44 +0800 | |
---|---|---|
committer | 2017-04-19 17:21:44 +0800 | |
commit | 479243ad2b77fd90f55142e2b81db7fb6b1e09e6 (patch) | |
tree | ca1f10fa036819c9eac64f47943a56133e67fef4 /wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src | |
parent | a4019a2c6f05385452de5de45ad781f053e6262a (diff) |
Modify the config of wso2
Issue-ID: OCS-217
Change-Id: I6ab627200ebae31ea77b0da5d608b9f8f52b701e
Signed-off-by: lizi00164331 <li.zi30@zte.com.cn>
Diffstat (limited to 'wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src')
-rw-r--r-- | wso2bpel-ext/wso2bpel-core/wso2bpel-mgr/src/main/java/org/openo/carbon/bpel/Wso2BpelConfiguration.java | 18 |
1 files changed, 15 insertions, 3 deletions
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 |