com.liferay.portal.tools.seleniumbuilder.dependencies.macro_element.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-impl Show documentation
Show all versions of portal-impl Show documentation
Contains implementation for the portal services.
<#assign macro = macroElement.attributeValue("macro")>
<#assign x = macro?last_index_of("#")>
<#assign void = macroNameStack.push(macro?substring(0, x))>
<#if macroElement.getName() == "execute">
executeScopeVariables = new HashMap();
executeScopeVariables.putAll(commandScopeVariables);
<#if macroElement.element("var")??>
<#assign varElements = macroElement.elements("var")>
<#assign context = "executeScopeVariables">
<#list varElements as varElement>
<#include "var_element.ftl">
<#if macroElement.getName() == "execute" && macro?substring(x + 1)?starts_with("is")>
return
${seleniumBuilderFileUtil.getVariableName(macro?substring(0, x))}Macro.${macro?substring(x + 1)}(executeScopeVariables)
<#if macroElement.getName() == "execute">
;
<#assign void = macroNameStack.pop()>