focus icon indicating copy to clipboard operation
focus copied to clipboard

Generated focus.settings.gradle disappear on clean/rebuild

Open ConstOrVar opened this issue 3 years ago • 2 comments

Plugin works great! But when trigger clean or rebuild (from Android Studio), all build directories will be removed. So generated focus.settings.gradle will be deleted and project will be broken (.focus file exists, but points at nowhere now). How do you solve that problem in your team?

As workaround I'm replacing path where generated focus.settings.gradle will be saved - select root folder of target project, which placed in focus.

ConstOrVar avatar Apr 14 '22 13:04 ConstOrVar

Hmm, clean should also be removing your .focus file, as it's an OutputFile of the focus task. Are you creating it with the focus task?

rharter avatar Apr 15 '22 01:04 rharter

Yes, .focus file has been created using ./gradlew module:focus. And it's still exist after ./gradlew clean triggered. If you call rebuild (using Android Studio), first command that is performed, is clean. That's why it will be strange if on each rebuild action selected configuration will be lost. In my opinion, that sounds weird.

ConstOrVar avatar Apr 15 '22 05:04 ConstOrVar