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

DES-6554 Addressed the issue with spaces of MPR file name #206

Merged
merged 2 commits into from
Oct 8, 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
4 changes: 2 additions & 2 deletions mxbuild/build
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cd /workdir
if [ -f /workdir/project ]; then
JAVA_VERSION=$(cat java-version)
elif [ -f /opt/mendix/modeler/mx ]; then
JAVA_VERSION=$(/opt/mendix/modeler/mx dump-mpr --unit-type 'Settings$ProjectSettings' /workdir/project/${MPR_FILENAME} | \
JAVA_VERSION=$(/opt/mendix/modeler/mx dump-mpr --unit-type 'Settings$ProjectSettings' /workdir/project/"${MPR_FILENAME}" | \
jq -r '.units[] | select(.["$Type"]=="Settings$ProjectSettings") | .["settingsParts"][] | select(.["$Type"]=="Settings$RuntimeSettings").javaVersion | if (. == null or . == "null") then "Java11" else . end')
else
JAVA_VERSION=11
Expand All @@ -33,4 +33,4 @@ $MXBUILD_COMMAND \
--target=package \
--java-home=${JDK_HOME} --java-exe-path=${JDK_HOME}/bin/java \
--model-version=${MODEL_VERSION} \
--output=/workdir/output.mda /workdir/project/${MPR_FILENAME}
--output=/workdir/output.mda /workdir/project/"${MPR_FILENAME}"