cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/acting AbstractComplementaryConfigurableAction.java
Date Mon, 03 Dec 2001 05:50:45 GMT
giacomo     01/12/02 21:50:45

  Modified:    src/org/apache/cocoon/acting Tag: cocoon_20_branch
                        AbstractComplementaryConfigurableAction.java
  Log:
  Additional patch from Tim Myers <phantom@stserv.hcf.jhu.edu>
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.2.11  +5 -2      xml-cocoon2/src/org/apache/cocoon/acting/AbstractComplementaryConfigurableAction.java
  
  Index: AbstractComplementaryConfigurableAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/acting/AbstractComplementaryConfigurableAction.java,v
  retrieving revision 1.3.2.10
  retrieving revision 1.3.2.11
  diff -u -r1.3.2.10 -r1.3.2.11
  --- AbstractComplementaryConfigurableAction.java	2001/12/02 19:26:56	1.3.2.10
  +++ AbstractComplementaryConfigurableAction.java	2001/12/03 05:50:45	1.3.2.11
  @@ -28,7 +28,7 @@
    * effective.  The name of the root configuration element is irrelevant.
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.3.2.10 $ $Date: 2001/12/02 19:26:56 $
  + * @version CVS $Revision: 1.3.2.11 $ $Date: 2001/12/03 05:50:45 $
    */
   public abstract class AbstractComplementaryConfigurableAction extends ConfigurableComposerAction
{
       private static Map configurations = new HashMap();
  @@ -70,7 +70,10 @@
   
                   try {
                       sourceHandler = (SourceHandler) this.manager.lookup(SourceHandler.ROLE);
  -                    resource = sourceHandler.getSource((Environment)resolver, descriptor);
  +                    if (descriptor.startsWith("file:")) { 
  +                        resource = sourceHandler.getSource((Environment)resolver,((Environment)resolver).getContext(),
descriptor.substring(5));
  +                    } else 
  +                        resource = sourceHandler.getSource(null, descriptor);
   
                       if (conf == null || conf.lastModified < resource.getLastModified())
{
                           getLogger().debug("(Re)Loading " + descriptor);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message