-
Notifications
You must be signed in to change notification settings - Fork 20
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 files generated from deleted templates? #16
Comments
Thanks @2Beaucoup, good point. That's something I stumble over regularly and forget that I would be the one to fix it... |
Haha! What's the best practice here? Simply wiping Mmh, really would like to know the standard behaviour. Maybe there is no way around |
I think there are these possible solutions:
|
👍 Thx @jrudolph! |
Let's see how well it works... If there are other source generators it may be slow scanning through all files but may be good enough for most of the simple cases. |
The pattern in maven is that generated files are written to |
related: sbt/sbt-xjc#15 (comment) |
Thanks for digging this up, @2Beaucoup. Let's reopen this to reconsider it for the next release. |
Thx! And sorry for chiming in a bit late here. |
This is rather a question: Should the plugin delete files generated from deleted templates? It currently overwrites files whose templates got updated.
Or is an explicit
clean
required here? How do other plugins behave in that regard?Background: I often get compile errors after switching branches because of leftover generated files which became invalid. Is a
clean
recommended after switching branches in general?Thanks!
The text was updated successfully, but these errors were encountered: