From 20e20e9cd5d471d505ffcec2b5498f57a1793bc7 Mon Sep 17 00:00:00 2001 From: Pavel Aharoni Date: Mon, 21 Aug 2017 17:42:38 +0300 Subject: [SDC-242] sdc-tosca resolve get_input Change-Id: I8617ca99e0699d24e6749f84d216e1bf4cbc3e43 Signed-off-by: Pavel Aharoni --- .../sdc/tosca/parser/impl/SdcToscaParserFactory.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/main') 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); } -- cgit 1.2.3-korg