Allopen, Noarg: Implement old classpath elements filtering correctly (KT-15448)

This commit is contained in:
Yan Zhulanow
2016-12-29 22:06:32 +03:00
committed by Yan Zhulanow
parent f1b7d30363
commit 85450955b6
@@ -40,7 +40,7 @@ internal fun modifyCompilerArgumentsForPlugin(
val newPluginOptions = oldPluginOptions + annotationOptions
val oldPluginClasspaths = (commonArguments.pluginClasspaths ?: emptyArray()).filterTo(mutableListOf()) {
!it.substringAfterLast('/', missingDelimiterValue = "").matches("(kotlin-)?$pluginName-.*\\.jar".toRegex())
!it.substringAfterLast('/', missingDelimiterValue = "").matches("(kotlin-)?(maven-)?$pluginName-.*\\.jar".toRegex())
}
val newPluginClasspaths = oldPluginClasspaths + (setup?.classpath ?: emptyList())