[logback-dev] svn commit: r1052 - logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling

noreply.seb at qos.ch noreply.seb at qos.ch
Fri Dec 1 17:17:37 CET 2006


Author: seb
Date: Fri Dec  1 17:17:37 2006
New Revision: 1052

Modified:
   logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/RenamingTest.java

Log:
Modified test dir prefix to allow eclipse and idea to reach the files with different base directories

Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/RenamingTest.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/RenamingTest.java	(original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/rolling/RenamingTest.java	Fri Dec  1 17:17:37 2006
@@ -43,7 +43,7 @@
     super.setUp();
     layout = new EchoLayout();
 
-    File target = new File("src/test/output/test.log");
+    File target = new File(Constants.TEST_DIR_PREFIX + "output/test.log");
     target.mkdirs();
     target.delete();
   }
@@ -65,7 +65,7 @@
     String[] filenames = new String[2];
 
     TimeBasedRollingPolicy tbrp = new TimeBasedRollingPolicy();
-    tbrp.setFileNamePattern(Constants.TEST_DIR_PREFIX + "/output/test-%d{" + datePattern + "}");
+    tbrp.setFileNamePattern(Constants.TEST_DIR_PREFIX + "output/test-%d{" + datePattern + "}");
     //tbrp.setActiveFileName("src/test/output/test.log");
     tbrp.setContext(context);
     tbrp.setParent(rfa);
@@ -82,7 +82,7 @@
     rfa.doAppend("Hello 1");
 
     filenames[0] = Constants.TEST_DIR_PREFIX + "output/test-" + sdf.format(cal.getTime());
-    filenames[1] = Constants.TEST_DIR_PREFIX + "/output/test.log";
+    filenames[1] = Constants.TEST_DIR_PREFIX + "output/test.log";
 
     for (int i = 0; i < filenames.length; i++) {
       //System.out.println("before i=" + i);



More information about the logback-dev mailing list