Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pref.xml template Update for Non-Mendix Cloud (SAP) #718

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions buildpack/core/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from buildpack import util
from lib.m2ee import M2EE as m2ee_class
from lib.m2ee.version import MXVersion
from lib.m2ee.util import strtobool

from . import security

Expand Down Expand Up @@ -173,6 +174,14 @@ def _activate_license():
<entry key="license_key" value="{{LICENSE_KEY}}"/>
</map>"""

if(strtobool(os.environ.get("MXRUNTIME_License.UseLicenseServer","false"))):
prefs_template = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE map SYSTEM "http://java.sun.com/dtd/preferences.dtd">
<map MAP_XML_VERSION="1.0">
<entry key="id2" value="{{LICENSE_ID}}"/>
<entry key="license_key2" value="{{LICENSE_KEY}}"/>
</map>"""

license_key = os.environ.get(
"FORCED_LICENSE_KEY", os.environ.get("LICENSE_KEY", None)
)
Expand Down
Loading