gradle / gradle

Adaptable, fast automation for all
https://gradle.org
Apache License 2.0
16.7k stars 4.68k forks source link

Public API for watch file system state #20030

Open eugene-krivobokov opened 2 years ago

eugene-krivobokov commented 2 years ago

Expected Behavior

It would be helpful to have a public API for the watch file system state.

gradle.startParameter.watchFileSystemMode: WatchMode
OR
gradle.startParameter.watchFileSystemEnabled: Boolean

Current Behavior

(gradle.startParameter as StartParameterInternal).watchFileSystemMode

Context

I want to detect disabled watching similar to https://github.com/gradle/gradle/issues/14375#issuecomment-957657625. It can be disabled by devs accidentally or while migrating. If I can't detect it programmatically, I can't find those builds or nag users.

ljacomet commented 5 days ago

Sorry for the late reply!

This issue needs a decision from the team responsible for that area. They have been informed. Response time may vary.


This could be a nice addition to BuildFeatures. See also usage documentation.