You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by an...@apache.org on 2004/04/03 03:16:36 UTC

cvs commit: cocoon-2.1/src/blocks/qdox/java/org/apache/cocoon/components/source/impl QDoxSourceFactory.java

antonio     2004/04/02 17:16:36

  Modified:    src/blocks/qdox/java/org/apache/cocoon/components/source/impl
                        QDoxSourceFactory.java
  Log:
  Fixing error.
  
  Revision  Changes    Path
  1.6       +2 -3      cocoon-2.1/src/blocks/qdox/java/org/apache/cocoon/components/source/impl/QDoxSourceFactory.java
  
  Index: QDoxSourceFactory.java
  ===================================================================
  RCS file: /home/cvs//cocoon-2.1/src/blocks/qdox/java/org/apache/cocoon/components/source/impl/QDoxSourceFactory.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- QDoxSourceFactory.java	3 Apr 2004 00:46:33 -0000	1.5
  +++ QDoxSourceFactory.java	3 Apr 2004 01:16:36 -0000	1.6
  @@ -32,7 +32,6 @@
   import org.apache.avalon.framework.service.ServiceManager;
   import org.apache.avalon.framework.service.Serviceable;
   import org.apache.avalon.framework.thread.ThreadSafe;
  -import org.apache.commons.lang.StringUtils;
   import org.apache.excalibur.source.Source;
   import org.apache.excalibur.source.SourceException;
   import org.apache.excalibur.source.SourceFactory;
  @@ -138,7 +137,7 @@
        * @see org.apache.excalibur.source.SourceFactory#getSource(java.lang.String, java.util.Map)
        */
       public Source getSource(String location, Map parameters) throws MalformedURLException, IOException, SourceException {
  -        String className = StringUtils.substringAfter(location, ":");
  +        String className = location.substring(location.indexOf(':') + 1);
           Source javaSource = null;
           if (className.length() > 0) {
               try {