protected fun use()

in src/integrationTest/kotlin/org/jetbrains/intellij/platform/gradle/IntelliJPlatformIntegrationTestBase.kt [35:47]


    protected fun use(resourceName: String) {
        val resourcePath = Path("src", "integrationTest", "resources", resourceName)

        if (resourcePath.notExists()) {
            throw IllegalArgumentException("Integration tests resource '$resourceName' not found in: $resourcePath")
        }

        resourcePath.copyToRecursively(
            target = dir,
            followLinks = true,
            overwrite = true,
        )
    }