Commits
Tarun Sukhani authored f7513077d0b
fix(bundle): ship the framework's default messages in play bundle (PF-181)
MessagesPlugin loads <framework.path>/resources/messages and only logs
"Default messages file missing" when that fails. The bundle launcher
points framework.path at the bundle's own framework/ directory, and
PlayBundleTask copied the framework jar and its lib jars there but not
that file. Every bundled boot therefore logged the WARN, and the 29
built-in texts (validation.*, since.*) rendered as their raw keys unless
the app defined them itself. Gradle-launched runs read the real
framework install and were unaffected, which is why it went unnoticed.
PlayBundleTask now copies the file to <app>/framework/resources/messages.
It is read as a plain file, so .classpath is unchanged, and a framework
root without it is skipped rather than failed.
BundleDefaultMessagesTest runs playBundle against a fake framework and
asserts the zip entry and its content, plus the tolerant case; the first
fails without the fix. Verified on a real bundle booted against the real
framework: Messages.get("validation.required") returns "Required" and
the WARN is gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>