From a2efca9ed5945b8fc17e3c1d6722500f57a441bd Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 28 Sep 2009 15:07:52 +0400 Subject: [PATCH] fix setting LOG_DIR for tests --- .../src/com/intellij/testFramework/TestLoggerFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/TestLoggerFactory.java b/platform/testFramework/src/com/intellij/testFramework/TestLoggerFactory.java index 217f5ede39..45755f8af8 100644 --- a/platform/testFramework/src/com/intellij/testFramework/TestLoggerFactory.java +++ b/platform/testFramework/src/com/intellij/testFramework/TestLoggerFactory.java @@ -52,9 +52,10 @@ import java.io.StringReader; } System.setProperty("log4j.defaultInitOverride", "true"); String text = new String(FileUtil.loadFileText(logXmlFile)); + String logDir = PathManager.getSystemPath() + "/" + LOG_DIR; text = StringUtil.replace(text, SYSTEM_MACRO, StringUtil.replace(PathManager.getSystemPath(), "\\", "\\\\")); text = StringUtil.replace(text, APPLICATION_MACRO, StringUtil.replace(PathManager.getHomePath(), "\\", "\\\\")); - text = StringUtil.replace(text, LOGDIR_MACRO, StringUtil.replace(LOG_DIR, "\\", "\\\\")); + text = StringUtil.replace(text, LOGDIR_MACRO, StringUtil.replace(logDir, "\\", "\\\\")); File file = new File(PathManager.getSystemPath() + File.separator + LOG_DIR); file.mkdirs(); -- 2.11.4.GIT