mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
output only the last portion of idea.log
This commit is contained in:
+3
-10
@@ -208,15 +208,6 @@ public abstract class GroovyCompilerTest extends GroovyCompilerTestCase {
|
||||
|
||||
@Override
|
||||
void runBare() {
|
||||
def ideaLog = new File(TestLoggerFactory.testLogDir, "idea.log")
|
||||
if (ideaLog.exists()) {
|
||||
println 'deleting idea.log'
|
||||
ideaLog.delete()
|
||||
} else {
|
||||
println 'no idea.log'
|
||||
println new File(TestLoggerFactory.testLogDir).exists()
|
||||
println new File(TestLoggerFactory.testLogDir).list()
|
||||
}
|
||||
new File(PathManager.systemPath, "compile-server/server.log").delete()
|
||||
super.runBare()
|
||||
}
|
||||
@@ -230,7 +221,9 @@ public abstract class GroovyCompilerTest extends GroovyCompilerTestCase {
|
||||
def ideaLog = new File(TestLoggerFactory.testLogDir, "idea.log")
|
||||
if (ideaLog.exists()) {
|
||||
println "\n\nIdea Log:"
|
||||
println ideaLog.text
|
||||
def limit = 15000
|
||||
def logText = ideaLog.text
|
||||
println(logText.size() < limit ? logText : logText.substring(logText.size() - limit))
|
||||
}
|
||||
def makeLog = new File(PathManager.systemPath, "compile-server/server.log")
|
||||
if (makeLog.exists()) {
|
||||
|
||||
Reference in New Issue
Block a user