cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: svn commit: r470830 - /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java
Date Fri, 03 Nov 2006 14:16:26 GMT
cziegeler@apache.org wrote:
> Author: cziegeler
> Date: Fri Nov  3 06:09:42 2006
> New Revision: 470830
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=470830
> Log:
> Exclude everything starting with "." from automatically adding to the flow interpreter
> 
> Modified:
>     cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java
> 
> Modified: cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java
> URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java?view=diff&rev=470830&r1=470829&r2=470830
> ==============================================================================
> --- cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java
(original)
> +++ cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java
Fri Nov  3 06:09:42 2006
> @@ -63,7 +63,11 @@
>                  final Resource[] resources = resolver.getResources(scriptLocation +
"/*");
>                  if ( resources != null ) {
>                      for(int i=0; i < resources.length; i++) {
> -                        node.getInterpreter().register(ResourceUtils.getUri(resources[i]));
> +                        // exclude everything starting with "." (like .cvs, .svn)
> +                        // TODO - We need a better exclusion filtering here!
> +                        if ( !resources[i].getFilename().startsWith(".") ) {
> +                            node.getInterpreter().register(ResourceUtils.getUri(resources[i]));
> +                        }
>                      }
>                  }
>              }
> 
> 
maybe each flow interpreter could have it's own file extension (eg. .js) 
  and only those files would be imported?

-- 
Leszek Gawron                                    CTO at MobileBox Ltd.


Mime
View raw message