Skip to content

[Maintenance]: Programmatically set applicable system properties #5972

Description

@kwvanderlinde

Describe the problem

There are a few system properties we currently set via command line options but which could be set programmatically. This adds extra effort for users trying to run MapTool JAR files.

The improvement you'd like to see

Set the following command line options via System.setProperty() instead:

  • -Dsun.java2d.d3d=false
  • -Dpolyglot.engine.WarnInterpreterOnly=false
  • -Djava.util.Arrays.useLegacyMergeSort=true

This should be done early in LaunchInstructions so they can take effect before the relevant systems are initialized. For bonus points, only set these if the user did not provide their own option on the command line, so they can experiment with things if they wish.

Expected Benefits

Users of JAR files won't need to remember as many options to get the same behaviour out of MapTool as users of installed packages.

Additional Context

No response

Metadata

Metadata

Assignees

Labels

code-maintenanceAdding/editing javadocs, unit tests, formatting.
No fields configured for Code Maintenance.

Projects

Status
In-Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions