Search in sources :

Example 1 with RuntimeLibraryFiles

use of org.jetbrains.kotlin.idea.configuration.RuntimeLibraryFiles in project kotlin by JetBrains.

the class JSLibraryStdDescription method createNewLibraryForTests.

@TestOnly
public NewLibraryConfiguration createNewLibraryForTests() {
    KotlinJsModuleConfigurator configurator = (KotlinJsModuleConfigurator) getConfiguratorByName(NAME);
    assert configurator != null : "Cannot find configurator with name " + NAME;
    RuntimeLibraryFiles files = configurator.getExistingJarFiles();
    return createConfiguration(Collections.singletonList(files.getRuntimeJar()), files.getRuntimeSourcesJar());
}
Also used : RuntimeLibraryFiles(org.jetbrains.kotlin.idea.configuration.RuntimeLibraryFiles) KotlinJsModuleConfigurator(org.jetbrains.kotlin.idea.configuration.KotlinJsModuleConfigurator) TestOnly(org.jetbrains.annotations.TestOnly)

Aggregations

TestOnly (org.jetbrains.annotations.TestOnly)1 KotlinJsModuleConfigurator (org.jetbrains.kotlin.idea.configuration.KotlinJsModuleConfigurator)1 RuntimeLibraryFiles (org.jetbrains.kotlin.idea.configuration.RuntimeLibraryFiles)1