mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup [build scripts]: dead code; typos; formatting
GitOrigin-RevId: 4b47b8be439c73853afed9e05df53e0b862d5173
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ef8ebea221
commit
21173fe47a
+7
-11
@@ -2,7 +2,7 @@
|
||||
package org.jetbrains.intellij.build.impl.plugins
|
||||
|
||||
import com.intellij.openapi.util.text.StringUtil
|
||||
import org.jetbrains.annotations.ApiStatus.Internal
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import org.jetbrains.intellij.build.BuildContext
|
||||
import org.jetbrains.intellij.build.impl.PluginLayout
|
||||
import java.nio.file.Files
|
||||
@@ -12,13 +12,13 @@ import java.util.function.Predicate
|
||||
import kotlin.io.path.useLines
|
||||
|
||||
/**
|
||||
* Predicate to test if the given plugin should be published to plugins.jetbrains.com
|
||||
* Predicate to test if the given plugin should be published to the Marketplace.
|
||||
* See `build/plugins-autoupload.txt` for the specification.
|
||||
*
|
||||
* @see `build/plugins-autoupload.txt` for the specification
|
||||
* @see [org.jetbrains.intellij.build.productLayout.ProductModulesLayout.buildAllCompatiblePlugins]
|
||||
* @see [org.jetbrains.intellij.build.productLayout.ProductModulesLayout.pluginModulesToPublish]
|
||||
*/
|
||||
@Internal
|
||||
@ApiStatus.Internal
|
||||
class PluginAutoPublishList(private val context: BuildContext) : Predicate<PluginLayout> {
|
||||
private val expectedFile: Path = context.paths.communityHomeDir.resolve("../build/plugins-autoupload.txt")
|
||||
|
||||
@@ -59,11 +59,7 @@ class PluginAutoPublishList(private val context: BuildContext) : Predicate<Plugi
|
||||
!excludedFromProduct && (includeInAllProducts || includeInProduct)
|
||||
}
|
||||
|
||||
override fun test(pluginLayout: PluginLayout): Boolean {
|
||||
return predicate.test(pluginLayout)
|
||||
}
|
||||
override fun test(pluginLayout: PluginLayout): Boolean = predicate.test(pluginLayout)
|
||||
|
||||
override fun toString(): String {
|
||||
return "$expectedFile"
|
||||
}
|
||||
}
|
||||
override fun toString(): String = "$expectedFile"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user