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 
<https://fawnoos.com/2021/02/16/cas63-ui-themes/#dynamic-messages>


-Dustin Luck
 Pepperdine University


On Thursday, April 25, 2024 at 8:53:58 PM UTC-7 atilling wrote:

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

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/fcffb0c8-cbb4-42aa-97f7-50d2090ba7d9n%40apereo.org.

Reply via email to