Hi folks,
This is probably something very simple, but I cannot get this working.
I have Messages.properties in the src/main/resources/<my.java.package>.
mvn compile creates a <my.java.package>.Messages class that contains all getter methods that return the messages I have put to Messages.properties. So far so good.
I have an entry "scheduleIsAvailable=Schedule is available" in this property file. So that's exposed as Messages.scheduleIsAvailable(). Peachy.
Next thing I do is I refer to this constant in Jelly as advised in
https://wiki.jenkins-ci.org/display/JENKINS/Internationalization:
${%scheduleIsAvailable}
Guess what? It's rendered as "scheduleIsAvailable" :(
The Jelly is config.jelly (build step config) sitting in src/main/resources/<my.java.package>/MyBuildStep (src/main/resources/<my.java.package>/MyBuildStep/config.jelly).
I would do a workaround exposing smth like getMessage(key) in Descriptor, and would call ${descriptor.getMessage('scheduleIsAvailable')}, but Messages class doesn't provide any way to get message by key...
Please help!
Regards,
Kirill.