openapi-generator-dart icon indicating copy to clipboard operation
openapi-generator-dart copied to clipboard

Builder Clean support

Open robertcsakany opened this issue 5 years ago • 2 comments

Is there any way to remove generated files with the build runner clean - like other builder supported genrators?

robertcsakany avatar Sep 28 '20 19:09 robertcsakany

Hi @robertcsakany,

Because this generator generates project files using an external java library, it might not be possible to hook into build_runner clean, to the best of my knowledge. Please tell me a use case for this and i can find a workaround or better still, a PR will be most helpfull

gibahjoe avatar Oct 04 '20 03:10 gibahjoe

Okay, thanks. I will investigate this. I think if we are able to collect a file list from openAPI generator which files are affected with generaration on that case its possible to calclulate the clean step.

robertcsakany avatar Oct 04 '20 11:10 robertcsakany