Update of /var/cvs/src/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv25515
Modified Files:
ResourceLoader.java
Log Message:
added some logging
See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util
Index: ResourceLoader.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/ResourceLoader.java,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -b -r1.82 -r1.83
--- ResourceLoader.java 14 Nov 2008 10:07:11 -0000 1.82
+++ ResourceLoader.java 24 Nov 2008 11:07:38 -0000 1.83
@@ -98,7 +98,7 @@
* <p>For property-files, the java-unicode-escaping is undone on loading, and
applied on saving, so there is no need to think of that.</p>
* @author Michiel Meeuwissen
* @since MMBase-1.8
- * @version $Id: ResourceLoader.java,v 1.82 2008/11/14 10:07:11 michiel Exp $
+ * @version $Id: ResourceLoader.java,v 1.83 2008/11/24 11:07:38 michiel Exp $
*/
public class ResourceLoader extends ClassLoader {
@@ -1762,9 +1762,11 @@
*/
public static int getWeight(final URL u) {
int w = 0;
+ log.debug("Getting weight for " + u + " with " + classWeights);
if (classWeights != null) {
for (Map.Entry<Pattern, Integer> e : classWeights.entrySet()) {
if (e.getKey().matcher(u.toExternalForm()).matches()) {
+ log.debug(" " + e.getKey() + " matched " +
u.toExternalForm() + ")");
w = e.getValue();
break;
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs