Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow supression of auto add of headless=true #1054

Merged
merged 1 commit into from
Jul 14, 2022
Merged

Conversation

hcoles
Copy link
Owner

@hcoles hcoles commented Jul 14, 2022

New ConfigurationUpdater interface allows this to be handled as a
feature and disabled by passed features="-macos_focus"

Pitest automatically adds -Djava.awt.headless=true to the jvm args to
prevent keyboard focu being stolen on macs.

The change introduces a new extention point ConfigurationUpdater
to allow changes to be made to the supplied config.

This interface uses the feature system, so implementations can be
enabled and disabled at runtime.

The previously hard coded adding of headless=true is moved into a
feature. It is enabled by default, but can now be dissabled by passing

features="-macos_focus"

Consideration was given to only adding the param when running on OS X,
but this was decided against and it would make the build inconsistent.
@hcoles hcoles force-pushed the feature/macos_focus branch from 92174a9 to cf684f0 Compare July 14, 2022 15:01
@hcoles hcoles changed the title Auto add headless true only on Mac Os Allow supression of auto add of headless=true Jul 14, 2022
@hcoles hcoles merged commit ee19f7f into master Jul 14, 2022
@hcoles hcoles deleted the feature/macos_focus branch July 14, 2022 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant