From ed049fb85b866b0f7c8db4df391eae219fd23f85 Mon Sep 17 00:00:00 2001 From: Sergey Ignatov Date: Sat, 17 Feb 2018 00:08:29 +0300 Subject: [PATCH] cleanup after review IDEA-CR-29462 --- .../jetbrains/intellij/build/impl/TestingTasksImpl.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/build-scripts/groovy/org/jetbrains/intellij/build/impl/TestingTasksImpl.groovy b/platform/build-scripts/groovy/org/jetbrains/intellij/build/impl/TestingTasksImpl.groovy index 4880345961ad..77bfe47363bd 100644 --- a/platform/build-scripts/groovy/org/jetbrains/intellij/build/impl/TestingTasksImpl.groovy +++ b/platform/build-scripts/groovy/org/jetbrains/intellij/build/impl/TestingTasksImpl.groovy @@ -134,9 +134,9 @@ class TestingTasksImpl extends TestingTasks { if (options.testDiscoveryEnabled) { def testDiscovery = "intellij-test-discovery" JpsLibrary library = context.projectModel.project.libraryCollection.findLibrary(testDiscovery) - if (library == null) throw new RuntimeException("Can't find the $testDiscovery library, but test discovery capturing enabled.") + if (library == null) context.messages.error("Can't find the $testDiscovery library, but test discovery capturing enabled.") def agentJar = library.getFiles(JpsOrderRootType.COMPILED).find { it.name.startsWith("intellij-test-discovery") && it.name.endsWith(".jar") } - if (agentJar == null) throw new RuntimeException("Can't find the agent in $testDiscovery library, but test discovery capturing enabled.") + if (agentJar == null) context.messages.error("Can't find the agent in $testDiscovery library, but test discovery capturing enabled.") additionalJvmOptions.add("-javaagent:${agentJar.absolutePath}" as String) additionalSystemProperties.putAll( @@ -393,7 +393,7 @@ class TestingTasksImpl extends TestingTasks { private def setupTestingDependencies() { if (!dependenciesInstalled) { dependenciesInstalled = true -// context.gradle.run('Setting up testing dependencies', 'setupKotlinPlugin') + context.gradle.run('Setting up testing dependencies', 'setupKotlinPlugin') } }