You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gr...@apache.org on 2012/06/22 12:14:03 UTC

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

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";