sdeboy 2004/12/16 08:17:22
Modified: src/java/org/apache/log4j/rule RuleFactory.java
Log:
Now that LikeRule is excluded if the ORO dependency is missing, use LikeRule's class instead
of an ORO class as the check
Revision Changes Path
1.7 +2 -2 logging-log4j/src/java/org/apache/log4j/rule/RuleFactory.java
Index: RuleFactory.java
===================================================================
RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/rule/RuleFactory.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- RuleFactory.java 16 Dec 2004 05:52:43 -0000 1.6
+++ RuleFactory.java 16 Dec 2004 16:17:22 -0000 1.7
@@ -54,10 +54,10 @@
rules.add(EQUALS_RULE);
rules.add(PARTIAL_TEXT_MATCH_RULE);
try {
- Class.forName("org.apache.oro.text.regex.Perl5Compiler");
+ Class.forName("org.apache.log4j.rule.LikeRule");
rules.add(LIKE_RULE);
} catch (Exception e) {
- LogManager.getLogger(RuleFactory.class).info("ORO classes not found - Like rule not
supported");
+ LogManager.getLogger(RuleFactory.class).info("Like (regular expression) rule not supported");
}
rules.add(EXISTS_RULE);
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
|