override fun configureRTClasspath()

in src/main/kotlin/com/jetbrains/plugin/jtreg/configuration/JTRegTestObject.kt [65:76]


    override fun configureRTClasspath(javaParameters: JavaParameters, module: Module) {
        val settings: JTRegService = ApplicationManager.getApplication().getService(JTRegService::class.java)

        try {
            val jtregLibDir = Path.of(settings.jtregHomeDirectory, "lib")
            val libs = Files.newDirectoryStream(jtregLibDir, "*.jar")
            libs.forEach { lib -> javaParameters.classPath.add(lib.toString()) }
        } catch (ex: Exception) {
            Watchdog.processIncorrectJtregHome()
            throw IncorrectJtregHomeException(JTRegBundle.message("jtreg.configuration.error.not_found"))
        }
    }