-
Notifications
You must be signed in to change notification settings - Fork 10
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
Delete stale code when output changes #7
Comments
Hey, thanks for your interest in this project! I'm not entirely sure if this is a bug. Do you experience problems (apart from disk usage) with this behavior? For example,
Searching the Gradle documentation, I also could not find a way to detect changes in properties during task execution and retrieve the old value. There is |
No problems, no. Just seemed odd. Honestly, I initially started filing a feature request but then changed to a bug based on how I was phrasing the request. I think it's pretty rare that people change those values after the prototyping stage, so if you say "close, won't implement", I think that's reasonable. The way I've seen other plugins do this is basically hashing their properties, and writing the files to a directory with the hash as a name. Then, on subsequent runs, they can see if any neighboring directories exist and delete them, since they indicate a different hash. |
Also, thank you for making and publishing this plugin in the first place! It makes using |
Thanks for your input! I found an (very old) open issue at the The keypoints are:
Since, at the moment, it is only a matter of running I'm glad this plugin helps other people spinning up projects using |
Environment
gradle-jextract
version: 0.2.4How does this bug occur?
When the output destination changes, such as when a new
className
ortargetPackage
is given, the previously-generated code remains untilclean
is run.What happens when the bug occurs?
Compilation proceeds with both the new and the old code.
Would you like to submit a PR fixing this bug?
[ ] YES
[x] NO
The text was updated successfully, but these errors were encountered: