Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@

set -e

CLASSPATH="/app/resources:/app/classes:/app/localLibs/*:/app/orgLibs/*:/app/externalLibs/*"
if [ "\$FIPS_ENABLED" = "true" ]; then
CLASSPATH="/usr/share/java/bc-fips/*:\${CLASSPATH}"
echo "Adding the additional FIPS libs to the classpath"
fi

# Remove trailing colon if present
FIPS_CLASSPATH="\${FIPS_CLASSPATH%:}"
Copy link
Contributor

@aaron-steinfeld aaron-steinfeld Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know there's some differences in sh vs bash for the string manipulation capabilities - have we verified these are all compatible with sh since that's the shell here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes tested with the sh

# If FIPS_CLASSPATH is not empty, prepend it to classpath with colon as delim
CLASSPATH="\${FIPS_CLASSPATH:+\${FIPS_CLASSPATH}:}/app/resources:/app/classes:/app/localLibs/*:/app/orgLibs/*:/app/externalLibs/*"
echo "Using the classpath \$CLASSPATH"
exec java ${defaultJvmOpts.substring(1, defaultJvmOpts.length()-1)} \$JAVA_OPTS \$FIPS_JAVA_OPTS -classpath \${CLASSPATH} ${mainClassName} \$@