Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
3.1.0
-
None
-
None
Description
Greetings,
When generating a partial archetype on an existing project which already contains some of its files, the generation fails with the message "Don't override file".
However, given the code, the generation should not fail in this case, but rather display a warning message. It seems the problem lies in the fact that the "failIfExists" parameter is inverted in the methods "processArchetypeTemplates" and "processArchetypeTemplatesWithWarning". I think "failIfExists" should be false for "processArchetypeTemplatesWithWarning" (as the method name would imply), and true for "processArchetypeTemplates". This is currently the opposite.