Commit 11f6652c authored by Dmitriy.Panov's avatar Dmitriy.Panov Committed by intellij-monorepo-bot
Browse files

build scripts: *ApplicationInfo.xml major/minor attributes should match a...

build scripts: *ApplicationInfo.xml major/minor attributes should match a snapshot build number: fixup

(cherry picked from commit cf8cc27a302e5766a96aac0f36e3341a7874cc08)

IJ-MR-105947

GitOrigin-RevId: db728a3e1cb9e93b911befd3472fe128f142509a
parent 7dcee547
Showing with 2 additions and 2 deletions
+2 -2
......@@ -143,8 +143,8 @@ class ApplicationInfoPropertiesImpl: ApplicationInfoProperties {
"buildContext property is not initialized, please use different constructor"
}
val appInfoXmlPath = findApplicationInfoInSources(context.project, context.productProperties)
val snapshotBuildNumber = readSnapshotBuildNumber(context.paths.communityHomeDirRoot)
check("$majorVersion$minorVersion".removePrefix("20") == snapshotBuildNumber.takeWhile { it != '.' }) {
val snapshotBuildNumber = readSnapshotBuildNumber(context.paths.communityHomeDirRoot).takeWhile { it != '.' }
check("$majorVersion$minorVersion".removePrefix("20").take(snapshotBuildNumber.count()) == snapshotBuildNumber) {
"'major=$majorVersion' and 'minor=$minorVersion' attributes of '$appInfoXmlPath' don't match snapshot build number '$snapshotBuildNumber'"
}
val artifactsServer = context.proprietaryBuildTools.artifactsServer
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment