You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2006/10/03 10:57:29 UTC

svn commit: r452354 - /cocoon/trunk/core/cocoon-core/src/main/java/org/apache/cocoon/components/treeprocessor/sitemap/FlowNodeBuilder.java

Author: cziegeler
Date: Tue Oct  3 01:57:28 2006
New Revision: 452354

URL: http://svn.apache.org/viewvc?view=rev&rev=452354
Log:
Include always all files

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=452354&r1=452353&r2=452354
==============================================================================
--- 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 Tue Oct  3 01:57:28 2006
@@ -54,19 +54,16 @@
 
         // since 2.2 we add by default all flow scripts located in the ./flow directory
         // The default location can be overwritten by specifying the location attribute.
-        // we only include the scripts if the language is javascript
-        if ( "javascript".equals(language) ) {
-            final BeanFactory beanFactory = this.treeBuilder.getContainer().getBeanFactory();
-            if ( beanFactory instanceof ApplicationContext ) {
-                final ResourceLoader resourceLoader = (ApplicationContext)beanFactory;
-                final String scriptLocation = config.getAttribute("location", DEFAULT_FLOW_SCRIPT_LOCATION);
-                if ( resourceLoader.getResource(scriptLocation).exists() ) {
-                    final PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(resourceLoader);
-                    final Resource[] resources = resolver.getResources(scriptLocation + "/*.js");
-                    if ( resources != null ) {
-                        for(int i=0; i < resources.length; i++) {
-                            node.getInterpreter().register(ResourceUtils.getUri(resources[i]));
-                        }
+        final BeanFactory beanFactory = this.treeBuilder.getContainer().getBeanFactory();
+        if ( beanFactory instanceof ApplicationContext ) {
+            final ResourceLoader resourceLoader = (ApplicationContext)beanFactory;
+            final String scriptLocation = config.getAttribute("location", DEFAULT_FLOW_SCRIPT_LOCATION);
+            if ( resourceLoader.getResource(scriptLocation).exists() ) {
+                final PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(resourceLoader);
+                final Resource[] resources = resolver.getResources(scriptLocation + "/*");
+                if ( resources != null ) {
+                    for(int i=0; i < resources.length; i++) {
+                        node.getInterpreter().register(ResourceUtils.getUri(resources[i]));
                     }
                 }
             }