[Test] Add service to provide additional classpath to box tests

This commit is contained in:
Steffi Stumpos
2021-07-08 11:43:09 -06:00
committed by teamcityserver
parent a55eacd8db
commit 707e1c7f8d
4 changed files with 29 additions and 3 deletions
@@ -0,0 +1,18 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.test.services
import java.io.File
abstract class RuntimeClasspathProvider {
abstract fun runtimeClassPaths(): List<File>
}
class RuntimeClasspathProviderHolder(val providers: List<RuntimeClasspathProvider>) : TestService
private val TestServices.runtimeClasspathProviderHolder: RuntimeClasspathProviderHolder by TestServices.testServiceAccessor()
val TestServices.runtimeClasspathProviders: List<RuntimeClasspathProvider>
get() = runtimeClasspathProviderHolder.providers