mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-134657 gradle: test resources should appear earlier than production resources in test classpath
This commit is contained in:
+3
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user