Messages.properties in /etc/cas

75 views
Skip to first unread message

atilling

unread,
Apr 25, 2024, 11:53:58 PM4/25/24
to CAS Community
Is there a way to move messages.properties to a path under /etc/cas rather then /src/main/resources/ and being built into the war file?

-Andrew Tillinghast

Dustin Luck

unread,
Apr 29, 2024, 12:03:49 PM4/29/24
to CAS Community, atilling
We have done something similar in our environment. However, we did not move the entire message.properties file - we created a custom_messages.properties file. To get CAS to look in the /etc/cas directory, we added the following to the cas.properties file.

cas.message-bundle.cache-seconds=0
cas.message-bundle.base-names=file:/cas/etc/cas/resources/messages/custom_messages,classpath:custom_messages,classpath:messages

You can, of course, set the file path to the specific directory you'd like to use.

Check out this article if you'd like further details: Apereo CAS - User Interface Customizations


-Dustin Luck
 Pepperdine University
Reply all
Reply to author
Forward
0 new messages