Commits
Tarun Sukhani authored 7441d3d582e
chore(build): silence ant compile warning + Mockito self-attach warnings
Two unrelated build.xml hygiene fixes bundled:
includeantruntime declared explicitly:
- Main compile: includeantruntime="true" (framework src genuinely needs
the Ant runtime — play.ant.* tasks import org.apache.tools.ant.*).
- Test compiles: includeantruntime="false" (test code doesn't import
Ant types directly).
Silences "'includeantruntime' was not set" warning while declaring the
real dependency surface honestly per target.
Mockito self-attach silenced:
- Add bytebuddy.agent.jar property pinned to lib-test/byte-buddy-agent-1.17.6.jar
(bump in lock-step with byte-buddy-*.jar).
- Pass -javaagent:${bytebuddy.agent.jar} to the four test-running fork
targets (unittest, integration-test, test-single, debug-test-single)
so Mockito's inline mock-maker doesn't dynamically self-attach
byte-buddy-agent at runtime.
Silences:
- "Mockito is currently self-attaching to enable the inline-mock-maker"
- "WARNING: A Java agent has been loaded dynamically"
- "WARNING: Dynamic loading of agents will be disallowed by default"
NetBeans nb-* targets unchanged — they fork the application, not tests,
and don't load Mockito.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>