From e38b2e1c536b2d1f19cb6ae803b257d01368c196 Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Wed, 17 Nov 2021 19:03:20 +0700 Subject: [PATCH] Only dump ASM classes during tests if according property is passed to Gradle --- kmath-ast/build.gradle.kts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kmath-ast/build.gradle.kts b/kmath-ast/build.gradle.kts index 586652349..331d8c614 100644 --- a/kmath-ast/build.gradle.kts +++ b/kmath-ast/build.gradle.kts @@ -55,9 +55,10 @@ tasks.dokkaHtml { dependsOn(tasks.build) } -tasks.jvmTest { - jvmArgs = (jvmArgs ?: emptyList()) + listOf("-Dspace.kscience.kmath.ast.dump.generated.classes=1") -} +if (System.getProperty("space.kscience.kmath.ast.dump.generated.classes") == "1") + tasks.jvmTest { + jvmArgs = (jvmArgs ?: emptyList()) + listOf("-Dspace.kscience.kmath.ast.dump.generated.classes=1") + } readme { maturity = ru.mipt.npm.gradle.Maturity.EXPERIMENTAL