Skip to content

Commit

Permalink
improve wording and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias krause committed Nov 27, 2023
1 parent 0a315b5 commit 7d92b3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Add a Studio export file (.xml) in any arbitary directory and add a folder named

Replace **<YOUR_STUDIO_EXPORT>** with the filename of your export file and execute the following command in this directory.

If your project depends on web applications included in IRIS, you can include theire configuration settings so that the converter will take them into account during the conversion process. To do so, [export the webapp configuration](https://docs.intersystems.com/iris20233/csp/documatic/%25CSP.Documatic.cls?LIBRARY=%25SYS&CLASSNAME=Security.Applications#Export) and place the xml-files into a separate folder, like ``./webapps/``.
If your project depends on web applications that are included in IRIS, you can include their configuration settings so that the converter takes them into account during the conversion process. To do this, [export the webapp configuration](https://docs.intersystems.com/iris20233/csp/documatic/%25CSP.Documatic.cls?LIBRARY=%25SYS&CLASSNAME=Security.Applications#Export) and save the xml-files in a separate folder, e.g. ``./webapps/``.

On Windows:
```
Expand Down
11 changes: 7 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
#!/bin/bash

#convert web application configurations
# prepare web application configurations
if [ "$(ls -A /webapplications/ | grep -E '.*xml$')" != "" ] ; then
echo "found web application confiugurations ..."
cp /webapplications/*.xml /converted-webapps/
for inputfile in /converted-webapps/*.xml ; do
echo "convert webapp config $inputfile"
echo "prepare web appclication config file '$inputfile' for import"
# replace namespace with default namespace USER
sed -i -E "s/<NameSpace>.*<\/NameSpace>/<NameSpace>USER<\/NameSpace>/" $inputfile
done
fi

# start IRIS
iris start IRIS quietly > /dev/null

#import web application configurations
# import web application configurations
if [ "$(ls -A /converted-webapps/ | grep -E '.*xml$')" != "" ] ; then
for inputfile in /converted-webapps/*.xml ; do
echo "import webapp config from $inputfile"
echo "import web application config from $inputfile"
# call web application import-method from IRIS terminal session
cat << EOF | iris session IRIS
zn "%SYS"
Write !,##class(Security.Applications).Import("$inputfile")
Expand Down

0 comments on commit 7d92b3b

Please sign in to comment.