[logback-dev] svn commit: r1055 - in logback/trunk: logback-classic/src/test/java/ch/qos/logback/classic/util logback-core/src/test/java/ch/qos/logback/core/util
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Fri Dec 1 21:04:22 CET 2006
Author: ceki
Date: Fri Dec 1 21:04:22 2006
New Revision: 1055
Modified:
logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/util/Constants.java
logback/trunk/logback-core/src/test/java/ch/qos/logback/core/util/Constants.java
Log:
reverting changes to keep John happy
Modified: logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/util/Constants.java
==============================================================================
--- logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/util/Constants.java (original)
+++ logback/trunk/logback-classic/src/test/java/ch/qos/logback/classic/util/Constants.java Fri Dec 1 21:04:22 2006
@@ -1,26 +1,19 @@
package ch.qos.logback.classic.util;
-import java.io.File;
-import java.util.Properties;
public class Constants {
- public static final String TEST_DIR_PREFIX;
+ public static final String TEST_DIR_PREFIX = "src/test/";
- static {
-
- Properties p = System.getProperties();
- for(Object o: p.keySet()) {
- System.out.println(o+"="+p.get(o));
- }
- File f = new File("");
- String path = "";
- String absolute = f.getAbsolutePath();
- if (!absolute.endsWith("logback-classic")) {
- path = "logback-classic/";
- }
- TEST_DIR_PREFIX = path + "src/test/";
- }
+// static {
+// File f = new File("");
+// String path = "";
+// String absolute = f.getAbsolutePath();
+// if (!absolute.endsWith("logback-classic")) {
+// path = "logback-classic/";
+// }
+// TEST_DIR_PREFIX = path + "src/test/";
+// }
Modified: logback/trunk/logback-core/src/test/java/ch/qos/logback/core/util/Constants.java
==============================================================================
--- logback/trunk/logback-core/src/test/java/ch/qos/logback/core/util/Constants.java (original)
+++ logback/trunk/logback-core/src/test/java/ch/qos/logback/core/util/Constants.java Fri Dec 1 21:04:22 2006
@@ -1,19 +1,18 @@
package ch.qos.logback.core.util;
-import java.io.File;
public class Constants {
- static {
- File f = new File("");
- String path = "";
- String absolute = f.getAbsolutePath();
- if (!absolute.endsWith("logback-core")) {
- path = "logback-core/";
- }
- TEST_DIR_PREFIX = path + "src/test/";
- }
+// static {
+// File f = new File("");
+// String path = "";
+// String absolute = f.getAbsolutePath();
+// if (!absolute.endsWith("logback-core")) {
+// path = "logback-core/";
+// }
+// TEST_DIR_PREFIX = path + "src/test/";
+// }
- public static final String TEST_DIR_PREFIX;
+ public static final String TEST_DIR_PREFIX = "src/test/";
}
More information about the logback-dev
mailing list