[jboss-cvs] apache/commons-logging/src/test/org/apache/commons/logging/jdk14 ...
Scott Stark
scott.stark at jboss.com
Sun Feb 11 15:25:33 EST 2007
User: starksm
Date: 07/02/11 15:25:33
Modified: commons-logging/src/test/org/apache/commons/logging/jdk14
Tag: JBoss_Apache_Common_Logging_Branch_1_1
CustomConfigTestCase.java
Log:
Log the config url
Revision Changes Path
No revision
No revision
1.2.4.1 +5 -3 apache/commons-logging/src/test/org/apache/commons/logging/jdk14/CustomConfigTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: CustomConfigTestCase.java
===================================================================
RCS file: /cvsroot/jboss/apache/commons-logging/src/test/org/apache/commons/logging/jdk14/CustomConfigTestCase.java,v
retrieving revision 1.2
retrieving revision 1.2.4.1
diff -u -b -r1.2 -r1.2.4.1
--- CustomConfigTestCase.java 9 Feb 2007 06:57:16 -0000 1.2
+++ CustomConfigTestCase.java 11 Feb 2007 20:25:33 -0000 1.2.4.1
@@ -18,6 +18,7 @@
import java.io.InputStream;
+import java.net.URL;
import java.util.Iterator;
import java.util.logging.Handler;
import java.util.logging.Level;
@@ -35,7 +36,7 @@
* logger configured per the configuration properties.</p>
*
* @author Craig R. McClanahan
- * @version $Revision: 1.2 $ $Date: 2007/02/09 06:57:16 $
+ * @version $Revision: 1.2.4.1 $ $Date: 2007/02/11 20:25:33 $
*/
public class CustomConfigTestCase extends DefaultConfigTestCase {
@@ -317,8 +318,9 @@
// Set up LogManager instance
protected void setUpManager(String config) throws Exception {
manager = LogManager.getLogManager();
- InputStream is =
- this.getClass().getClassLoader().getResourceAsStream(config);
+ URL configURL = this.getClass().getClassLoader().getResource(config);
+ System.out.println("setUpManager, configURL="+configURL);
+ InputStream is = configURL.openStream();
manager.readConfiguration(is);
is.close();
}
More information about the jboss-cvs-commits
mailing list