logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grobme...@apache.org
Subject svn commit: r1352831 - /logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/xml/CustomLevelTestCase.java
Date Fri, 22 Jun 2012 10:14:03 GMT
Author: grobmeier
Date: Fri Jun 22 10:14:02 2012
New Revision: 1352831

URL: http://svn.apache.org/viewvc?rev=1352831&view=rev
Log:
fixed path to class resource location

Modified:
    logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/xml/CustomLevelTestCase.java

Modified: logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/xml/CustomLevelTestCase.java
URL: http://svn.apache.org/viewvc/logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/xml/CustomLevelTestCase.java?rev=1352831&r1=1352830&r2=1352831&view=diff
==============================================================================
--- logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/xml/CustomLevelTestCase.java
(original)
+++ logging/log4j/branches/log4j12-bz53299/core/src/test/java/org/apache/log4j/xml/CustomLevelTestCase.java
Fri Jun 22 10:14:02 2012
@@ -23,9 +23,11 @@ import junit.framework.TestSuite;
 import org.apache.log4j.Logger;
 import org.apache.log4j.util.Compare;
 
+import java.io.File;
+
 public class CustomLevelTestCase extends TestCase {
 
-  static final String FILE_PREFIX = "target/test-classes";
+  static final String FILE_PREFIX = new File(CustomLevelTestCase.class.getResource("/").getPath()).getAbsolutePath();
   static final String INPUT_DIR = FILE_PREFIX + "/input";
   static final String WITNESS_DIR = FILE_PREFIX + "/witness";
   



Mime
View raw message