-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathimport.bat
17 lines (14 loc) · 1012 Bytes
/
import.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
:: This batch script makes the Caché application deployment much faster by building, importing and
:: exporting the XML the project. Replace the path below to your Caché installation and build & import application to
:: Caché using only one command.
:: Latest NodeJS & Caché 2017.1+ IS REQUIRED TO PROCEED
@echo off
:: CHANGE THIS PATH TO YOUR CACHÉ INSTALLATION PATH ON WINDOWS (folder that contains bin, CSP, mgr and other folders)
set CACHE_DIR=C:\Program Files\InterSystems\Ensemble
:: NAMESPACE TO IMPORT PACKAGE TO
set NAMESPACE=USER
:: Build and import application to Caché
echo Building the project...
npm run gulp && ^
echo w "IMPORT SUCCESS: "_$system.OBJ.ImportDir("%~dp0build\cache",,"ck") halt | "%CACHE_DIR%\bin\cache.exe" -s "%CACHE_DIR%\mgr" -U %NAMESPACE% && ^
echo w $c(13,10)_"EXPORT SUCCESS: "_$system.OBJ.ExportPackage("VisualEditor", "%~dp0build\VisualEditor-v"_##class(VisualEditor.Installer).#VERSION_".xml") halt | "%CACHE_DIR%\bin\cache.exe" -s "%CACHE_DIR%\mgr" -U %NAMESPACE%