bloritsch    01/07/19 06:40:41

  Modified:    src/org/apache/cocoon/matching
                        RegexpTargetHostMatcherFactory.java
  Log:
  Fix Sitemap so that Jakarta Regexp is not needed unless
  we use the RegExp Matcher
  
  Revision  Changes    Path
  1.2       +4 -4      
xml-cocoon2/src/org/apache/cocoon/matching/RegexpTargetHostMatcherFactory.java
  
  Index: RegexpTargetHostMatcherFactory.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/org/apache/cocoon/matching/RegexpTargetHostMatcherFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RegexpTargetHostMatcherFactory.java       2001/05/09 20:49:39     1.1
  +++ RegexpTargetHostMatcherFactory.java       2001/07/19 13:40:41     1.2
  @@ -23,14 +23,14 @@
    * @author <a href="mailto:[EMAIL PROTECTED]";>Giacomo Pati</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Berin Loritsch</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Paul Russell</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2001/05/09 20:49:39 $
  + * @version CVS $Revision: 1.2 $ $Date: 2001/07/19 13:40:41 $
    */
   
   public class RegexpTargetHostMatcherFactory extends AbstractLoggable implements 
CodeFactory {
   
       public String generateParameterSource (NodeList conf)
       throws ConfigurationException {
  -        return "RE";
  +        return "org.apache.regexp.RE";
       }
   
       public String generateClassSource (String prefix, String pattern,
  @@ -60,9 +60,9 @@
                   sb.append("0x").append(hex).append(", ");
               }
               sb.append("\n    };")
  -              .append("\n    static RE ")
  +              .append("\n    static org.apache.regexp.RE ")
                 .append(name)
  -              .append("_expr = new RE(new REProgram(")
  +              .append("_expr = new org.apache.regexp.RE(new 
org.apache.regexp.REProgram(")
                 .append(instructions)
                 .append("));");
               return sb.toString();
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to