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

Generated focus.settings.gradle disappear on clean/rebuild #23

Open
ConstOrVar opened this issue Apr 14, 2022 · 2 comments
Open

Generated focus.settings.gradle disappear on clean/rebuild #23

ConstOrVar opened this issue Apr 14, 2022 · 2 comments

Comments

@ConstOrVar
Copy link

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.

@rharter
Copy link
Collaborator

rharter commented Apr 15, 2022

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?

@ConstOrVar
Copy link
Author

ConstOrVar commented Apr 15, 2022

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.

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

No branches or pull requests

2 participants