mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
build scripts: checking .class files bytecode versions for all distributions, not only for .portable.zip
GitOrigin-RevId: c2bd2f6b68b43b2af08dc728ade25e8001348f6f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ac7f5318d7
commit
119e51bfac
@@ -165,8 +165,8 @@ abstract class ProductProperties() {
|
||||
getBaseArtifactName(applicationInfo, buildNumber) + ".portable.zip"
|
||||
|
||||
/**
|
||||
* A config map for [org.jetbrains.intellij.build.impl.ClassVersionChecker],
|
||||
* when .class file version verification inside [buildCrossPlatformDistribution] is needed.
|
||||
* A config map for [org.jetbrains.intellij.build.impl.ClassFileChecker],
|
||||
* when .class file version verification is needed.
|
||||
*/
|
||||
var versionCheckerConfig: PersistentMap<String, String> = persistentMapOf()
|
||||
|
||||
|
||||
@@ -271,6 +271,7 @@ private suspend fun layoutShared(context: BuildContext) {
|
||||
context.productProperties.copyAdditionalFiles(context, context.paths.getDistAll())
|
||||
}
|
||||
}
|
||||
checkClassFiles(context.paths.distAllDir, context)
|
||||
}
|
||||
|
||||
private fun findBrandingResource(relativePath: String, context: BuildContext): Path {
|
||||
@@ -947,7 +948,7 @@ fun buildUpdaterJar(context: BuildContext, artifactName: String = "updater.jar")
|
||||
context.notifyArtifactBuilt(updaterJar)
|
||||
}
|
||||
|
||||
private suspend fun buildCrossPlatformZip(distResults: List<DistributionForOsTaskResult>, context: BuildContext): Path {
|
||||
private fun buildCrossPlatformZip(distResults: List<DistributionForOsTaskResult>, context: BuildContext): Path {
|
||||
val executableName = context.productProperties.baseFileName
|
||||
|
||||
val productJson = generateMultiPlatformProductJson(
|
||||
@@ -1003,10 +1004,7 @@ private suspend fun buildCrossPlatformZip(distResults: List<DistributionForOsTas
|
||||
compress = context.options.compressZipFiles,
|
||||
)
|
||||
|
||||
coroutineScope {
|
||||
launch { checkInArchive(archiveFile = targetFile, pathInArchive = "", context = context) }
|
||||
launch { checkClassFiles(targetFile = targetFile, context = context) }
|
||||
}
|
||||
checkInArchive(archiveFile = targetFile, pathInArchive = "", context = context)
|
||||
context.notifyArtifactBuilt(targetFile)
|
||||
return targetFile
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user