-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Description
Elasticsearch has a text file called jvm.options which is pretty much a line delimited set of additional command line arguments for java when invoked by bin/elasticsearch (with the caveat it has version specific conditionals to allow eg java 9 specific options). While the integration tests, by virtue of running bin/elasticsearch, use these options, the unit tests do not. This issue is intended to outline a proposal for how unit tests can use these options, without the need for duplication across gradle and the jvm.options text file.
The proposal is to move the specification of the jvm options we ship with into gradle itself. That would allow the unit tests to consume the dsl (or rather, the dsl can fan it's configured settings out to all RandomizedTestTasks or something like that), and the shipped jvm.options file can be generated from the dsl as part of the distribution build.