[build scripts] retiring 'breakgen' DLLs (IJPL-16521)

GitOrigin-RevId: 157a10c4642fda81341d3fd11be9435624fa3faa
This commit is contained in:
Roman Shevchenko
2025-02-14 11:38:30 +01:00
committed by intellij-monorepo-bot
parent 7981844b65
commit 7e0193e9e3
6 changed files with 1 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -121,8 +121,6 @@ interface BuildContext : CompilationContext {
*/
fun getDistFiles(os: OsFamily?, arch: JvmArchitecture?): Collection<DistFile>
suspend fun includeBreakGenLibraries(): Boolean
fun patchInspectScript(path: Path)
/**

View File

@@ -316,8 +316,6 @@ class BuildContextImpl internal constructor(
return copy
}
override suspend fun includeBreakGenLibraries(): Boolean = getBundledPluginModules().contains(JavaPluginLayout.MAIN_MODULE_NAME)
override fun patchInspectScript(path: Path) {
//todo use placeholder in inspect.sh/inspect.bat file instead
Files.writeString(path, Files.readString(path).replace(" inspect ", " ${productProperties.inspectCommandName} "))

View File

@@ -42,11 +42,7 @@ internal class WindowsDistributionBuilder(
copyDir(sourceBinDir.resolve(arch.dirName), distBinDir)
val includeBreakGenLibraries = context.includeBreakGenLibraries()
copyDir(sourceDir = sourceBinDir, targetDir = distBinDir, dirFilter = { it == sourceBinDir }, fileFilter = { file ->
@Suppress("SpellCheckingInspection")
includeBreakGenLibraries || !file.name.startsWith("breakgen")
})
copyDir(sourceBinDir, distBinDir, dirFilter = { it == sourceBinDir })
copyFileToDir(NativeBinaryDownloader.getRestarter(context, OsFamily.WINDOWS, arch), distBinDir)