mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Let's have branch id specified in just one place -> build.txt
This commit is contained in:
@@ -64,7 +64,7 @@ target('default': 'The default target') {
|
||||
ant.xmlproperty(file: appInfoFile(), collapseAttributes: "true")
|
||||
|
||||
layoutAll(
|
||||
buildNumber: "IC-108.SNAPSHOT",
|
||||
buildNumber: "IC-$snapshot",
|
||||
version: "IdeaX",
|
||||
system_selector: "IdeaIC${p("component.version.major")}",
|
||||
system_selector_mac: "IntelliJIdea${p("component.version.major")}CE",
|
||||
|
||||
@@ -108,6 +108,17 @@ binding.setVariable("printUnusedModules", {Set<String> usedModules ->
|
||||
|
||||
requireProperty("home", guessHome())
|
||||
|
||||
String readSnapshotBuild() {
|
||||
def file = new File("$home/community/build.txt")
|
||||
if (!file.exists()) {
|
||||
file = new File("$home/build.txt")
|
||||
}
|
||||
|
||||
return file.readLines().get(0)
|
||||
}
|
||||
|
||||
binding.setVariable("snapshot", readSnapshotBuild())
|
||||
|
||||
project.builder.buildInfoPrinter = new org.jetbrains.jps.teamcity.TeamcityBuildInfoPrinter()
|
||||
project.builder.compressJars = false
|
||||
|
||||
|
||||
@@ -807,11 +807,11 @@ public class PluginManager {
|
||||
ourBuildNumber = BuildNumber.fromString(FileUtil.loadFile(buildTxtFile).trim());
|
||||
}
|
||||
else {
|
||||
ourBuildNumber = BuildNumber.fromString("108.SNAPSHOT");
|
||||
ourBuildNumber = BuildNumber.fromString("999.SNAPSHOT");
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
ourBuildNumber = BuildNumber.fromString("108.SNAPSHOT");
|
||||
ourBuildNumber = BuildNumber.fromString("999.SNAPSHOT");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user