In case user requests a full rebuild via Build -> Rebuild Project, we
have to clean up facet's output directory as well. The directory could
contain files that are no longer a result of autogeneration. Without the
clean up it's not possible to get rid of them.
I understand that the 'cleanup' code could be moved inside the PbCompiler. I wasn't sure if that's the desirable separation of concern. Please advise and I could easily move it in the PbCompiler.
In case user requests a full rebuild via Build -> Rebuild Project, we have to clean up facet's output directory as well. The directory could contain files that are no longer a result of autogeneration. Without the clean up it's not possible to get rid of them.