How to escape the equals sign in properties files

In your specific example you don’t need to escape the equals – you only need to escape it if it’s part of the key. The properties file format will treat all characters after the first unescaped equals as part of the value.

Leave a Comment