aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorPavel Aharoni <pa0916@att.com>2017-08-21 17:42:38 +0300
committerPavel Aharoni <pa0916@att.com>2017-08-21 17:42:38 +0300
commit20e20e9cd5d471d505ffcec2b5498f57a1793bc7 (patch)
treebd6a7d3b40178d44e729f1d1163eedd729740cd7 /src/main
parent2c7efd20eb813e6217e70600df61281085e600f0 (diff)
[SDC-242] sdc-tosca resolve get_input
Change-Id: I8617ca99e0699d24e6749f84d216e1bf4cbc3e43 Signed-off-by: Pavel Aharoni <pa0916@att.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcToscaParserFactory.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcToscaParserFactory.java b/src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcToscaParserFactory.java
index 2ddde1f..868b84f 100644
--- a/src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcToscaParserFactory.java
+++ b/src/main/java/org/openecomp/sdc/tosca/parser/impl/SdcToscaParserFactory.java
@@ -44,10 +44,26 @@ public class SdcToscaParserFactory {
* @throws SdcToscaParserException - in case the path or CSAR are invalid.
*/
public ISdcCsarHelper getSdcCsarHelper(String csarPath) throws SdcToscaParserException {
+ return init(csarPath, true);
+ }
+
+ /**
+ * Get an ISdcCsarHelper object for this CSAR file.
+ *
+ * @param csarPath - the absolute path to CSAR file.
+ * @param resolveGetInput - resolve get_input properties
+ * @return ISdcCsarHelper object.
+ * @throws SdcToscaParserException - in case the path or CSAR are invalid.
+ */
+ public ISdcCsarHelper getSdcCsarHelper(String csarPath, boolean resolveGetInput) throws SdcToscaParserException {
+ return init(csarPath, resolveGetInput);
+ }
+
+ private ISdcCsarHelper init(String csarPath, boolean resolveGetInput) throws SdcToscaParserException {
synchronized (SdcToscaParserFactory.class) {
ToscaTemplate tosca = null;
try {
- tosca = new ToscaTemplate(csarPath, null, true, null);
+ tosca = new ToscaTemplate(csarPath, null, true, null, resolveGetInput);
} catch (JToscaException e) {
throwSdcToscaParserException(e);
}