mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
tests scripts: compile required modules only
This will speed up compilation and allow to avoid compilation errors if some git repositories aren't checked out.
This commit is contained in:
+7
-1
@@ -43,7 +43,13 @@ class TestingTasksImpl extends TestingTasks {
|
||||
|
||||
@Override
|
||||
void runTests(List<String> additionalJvmOptions, String defaultMainModule, String excludedSourceDirectory) {
|
||||
CompilationTasks.create(context).compileAllModulesAndTests()
|
||||
def compilationTasks = CompilationTasks.create(context)
|
||||
if (options.mainModule != null) {
|
||||
compilationTasks.compileModules(["tests_bootstrap"], [options.mainModule])
|
||||
}
|
||||
else {
|
||||
compilationTasks.compileAllModulesAndTests()
|
||||
}
|
||||
|
||||
def mainModule = options.mainModule ?: defaultMainModule
|
||||
List<String> testsClasspath = context.projectBuilder.moduleRuntimeClasspath(context.findRequiredModule(mainModule), true)
|
||||
|
||||
Reference in New Issue
Block a user