Dustin,

Should your file be custom_messages.properties (note '_')?

Then maybe cas.messageBundle.baseNames = 
file:/etc/cas/messages/custom_messages,classpath...

You could also put your custom file in src/main/resources/ and it will end up 
in the classpath (would this negate setting cas.messageBundle.baseNames?).

Ray

On Wed, 2020-01-29 at 12:33 -0800, Dustin J Luck wrote:
I am trying to externalize as many of the customizations to CAS as possible. I 
have figured out how to do so for UI 
templates<https://apereo.github.io/2018/06/10/cas-userinterface-customizations/>
 using the cas.view.templatePrefixes[0] property, but am having trouble 
figuring out a similar technique for custom_messages.properties. I tried using 
the cas.messageBundle.baseNames property as described in this 
thread<https://groups.google.com/a/apereo.org/d/topic/cas-user/FbC6iDGUx4A/discussion>,
 but couldn't get that to work. Am I missing something or is there another 
method I should try?

Actual property value set
cas.messageBundle.baseNames = 
file:/etc/cas/messages,classpath:custom_messages,classpath:messages

File location on server:
c:\etc\cas\messages\custom.messages.properties


If it isn't possible to externalize custom messages, what are the downsides to 
including my customized text as literals in the UI templates rather than 
bringing them in as custom messages?


Thanks


My environment:

  *   Standalone CAS 6.0.5 build
  *   Windows Server 2012 R2
  *   Tomcat 9 running as a service

--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | [email protected]<mailto:[email protected]>

I respectfully acknowledge that my place of work is located within the 
ancestral, traditional and unceded territory of the Songhees, Esquimalt and 
WSÁNEĆ Nations.

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/b166236aa95c77e527cb6325bdc331110bc8d3dc.camel%40uvic.ca.

Reply via email to