mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[build scripts] strips console appender from log.xml (IDEA-161386)
This commit is contained in:
@@ -200,12 +200,17 @@ idea.fatal.error.notification=disabled
|
||||
void layoutShared() {
|
||||
buildContext.messages.block("Copy files shared among all distributions") {
|
||||
new File(buildContext.paths.distAll, "build.txt").text = buildContext.fullBuildNumber
|
||||
|
||||
buildContext.ant.copy(todir: "$buildContext.paths.distAll/bin") {
|
||||
fileset(dir: "$buildContext.paths.communityHome/bin") {
|
||||
include(name: "*.*")
|
||||
exclude(name: "idea.properties")
|
||||
exclude(name: "log.xml")
|
||||
}
|
||||
}
|
||||
|
||||
copyLogXml()
|
||||
|
||||
buildContext.ant.copy(todir: "$buildContext.paths.distAll/license") {
|
||||
fileset(dir: "$buildContext.paths.communityHome/license")
|
||||
buildContext.productProperties.additionalDirectoriesWithLicenses.each {
|
||||
@@ -217,6 +222,13 @@ idea.fatal.error.notification=disabled
|
||||
}
|
||||
}
|
||||
|
||||
private void copyLogXml() {
|
||||
def src = new File("$buildContext.paths.communityHome/bin/log.xml")
|
||||
def dst = new File("$buildContext.paths.distAll/bin/log.xml")
|
||||
dst.parentFile.mkdirs()
|
||||
src.filterLine { String it -> !it.contains('appender-ref ref="CONSOLE-WARN"') }.writeTo(dst.newWriter()).close()
|
||||
}
|
||||
|
||||
@Override
|
||||
void buildDistributions() {
|
||||
layoutShared()
|
||||
@@ -495,4 +507,4 @@ idea.fatal.error.notification=disabled
|
||||
|
||||
abstract V run(BuildContext context)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user