"Clean Project" is a bit over enthusiastic
Transform > Clean Project now destroys the entire contents of the output directory…even if that happened to be the ‘war’ directory of, e.g., a GAE project, deleting the WEB-INF artifacts as well. Can this operation be restricted to the resources which were generated by mobl or WEB-INF (“and such”) be excluded?
Submitted by Meinte Boersma on 9 March 2011 at 15:56
Issue Log
heh, that’s a fair point. I didn’t think of that case.
Deleting only generated files is a bit difficult, because it’s pretty hard to determine which files have been generated in the past. I could store this information in a file somewhere, but that gets messy, maybe in the future.
For now I relabeled the “Clean project” option to “Remove build directories”, which should more clearly state what it actually does :)
I’m aware of the difficulty of the “what has been generated before”-problem :)
As an easier solution: maybe make it configurable which directories or files (inside the output dir.) are not scrubbed, with the default including WEB-INF/? (This amounts to declaring which artifacts are [considered to be] non-generated.)
Log in to post comments