Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed Oct 10, 2024
1 parent f46afa5 commit dc1e034
Show file tree
Hide file tree
Showing 3 changed files with 238 additions and 280 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ abstract class ExtractorTransformer @Inject constructor(

/**
* Pre-create Ivy XML files so that later this directory can be used as an Ivy repository without having to discover
* modules & plugins each time the build is run.
* modules and plugins each time the build is run.
*/
private fun createIvyXmls(platformPath: Path) {
val isIde = platformPath.listDirectoryEntries().map { it.name }.containsAll(
Expand All @@ -150,12 +150,12 @@ abstract class ExtractorTransformer @Inject constructor(
val pluginManager = IdePluginManager.createManager(createTempDirectory())
val bundledPlugins = platformPath.getBundledPlugins(pluginManager)

for (plugin in bundledPlugins.values) {
bundledPlugins.values.forEach { plugin ->
val pluginId = plugin.pluginId
val pluginVersion = plugin.pluginVersion
val pluginPath = plugin.originalFile
if (null == pluginId || null == pluginVersion || null == pluginPath) {
continue
return@forEach
}

val group = Constants.Configurations.Dependencies.BUNDLED_PLUGIN_GROUP
Expand Down
Loading

0 comments on commit dc1e034

Please sign in to comment.