tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

Gradle Build Unable to Replace Duplicate Files that are not in the overlay folder #9

Open benallenallen opened 10 years ago

benallenallen commented 10 years ago

modules\tsg\1.core\classes\oc-overlay-config.xml modules\tsg\3.wizard\classes\oc-overlay-config.xml

If both of those files exist, when the WAR is built, i would expect that the 3.wizard file would be the one that ends up in the WAR, but sadly that is not the case. Seems to be because of the "duplicatesStrategy = 'exclude'" in build.gradle that prevents multiple copies of the same filename from being included in the war that is created.

The workaround for now is to just put whatever file you need different in the project/overlay folder since we treat the overlay folder special.