IDEA-134657 gradle: test resources should appear earlier than production resources in test classpath

This commit is contained in:
Vladislav.Soroka
2014-12-23 12:31:01 +03:00
parent 6e36976526
commit 17e57a3fc1
@@ -95,13 +95,12 @@ public class GradleOrderEnumeratorHandler extends OrderEnumerationHandler {
ExternalProject externalProject = externalProjectDataService.findExternalProject(externalRootProject, rootModel.getModule());
if (externalProject == null) return false;
if (includeProduction) {
addOutputModuleRoots(externalProject.getSourceSets().get("main"), ExternalSystemSourceType.RESOURCE, result);
}
if (includeTests) {
addOutputModuleRoots(externalProject.getSourceSets().get("test"), ExternalSystemSourceType.TEST_RESOURCE, result);
}
if (includeProduction) {
addOutputModuleRoots(externalProject.getSourceSets().get("main"), ExternalSystemSourceType.RESOURCE, result);
}
return true;
}