@@ -15,6 +15,11 @@ todo add optional parameter WEBAPP to Alter web app name if it needs to have ano
1515<Log Text="Set namespace to ${Namespace}" Level="0"/>
1616</IfNotDef>
1717
18+ <IfNotDef Var="Import">
19+ <Var Name="Import" Value="1"/>
20+ <Log Text="Set Import to 1" Level="0"/>
21+ </IfNotDef>
22+
1823<Role Name="MDX2JSONSettings" Description="Role to access and set default MDX2JSON settings for an App"/>
1924
2025<If Condition='(##class(Config.Namespaces).Exists("${Namespace}")=0)'>
@@ -28,6 +33,8 @@ todo add optional parameter WEBAPP to Alter web app name if it needs to have ano
2833</If>
2934
3035<Namespace Name="${Namespace}" Create="no">
36+
37+ <If Condition="${Import}">
3138<IfDef Var="SourceDir">
3239<Log Text="SourceDir defined - offline install from ${SourceDir}" Level="0"/>
3340<Import File="${SourceDir}"/>
@@ -36,6 +43,8 @@ todo add optional parameter WEBAPP to Alter web app name if it needs to have ano
3643<Log Text="SourceDir undefined - online install from GitHub" Level="0"/>
3744<RunInstall Class="MDX2JSON.Installer" Method="DownloadFromGitHub"/>
3845</IfNotDef>
46+ </If>
47+
3948<If Condition='(##class(Security.Applications).Exists("/"_"${Namespace}")=0)'>
4049 <Log Text="Creating web application /${Namespace}" Level="0"/>
4150 <!-- This method creates conflits with web-server. Kept for reference purposes. See ##class(%EnsembleMgr).createPortalApp()
@@ -87,6 +96,7 @@ Main setup method
8796Set pVars("User")="web"
8897Set pVars("Password")="dsweb"
8998Set pVars("Namespace")="TEMP3"
99+ Set pVars("Import")=1
90100Set pVars("SourceDir")="C:\temp\MDX2JSON\MDX2JSON"
91101Do ##class(MDX2JSON.Installer).setup(.pVars)</Description >
92102<Internal >1</Internal >
0 commit comments