[Carbon-commits] [Carbon] svn commit r114498 - trunk/carbon/components/reporting/org.wso2.carbon.reporting.core/src/main/java/org/wso2/carbon/reporting/core/internal

ajithn at wso2.com ajithn at wso2.com
Wed Oct 19 13:53:14 EDT 2011


Author: ajithn
Date: Wed Oct 19 10:53:14 2011
New Revision: 114498
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=114498

Log:
Checked modified .jrxml files before loading default files-trunk

Modified:
   trunk/carbon/components/reporting/org.wso2.carbon.reporting.core/src/main/java/org/wso2/carbon/reporting/core/internal/JRxmlFileBundleListener.java

Modified: trunk/carbon/components/reporting/org.wso2.carbon.reporting.core/src/main/java/org/wso2/carbon/reporting/core/internal/JRxmlFileBundleListener.java
URL: http://wso2.org/svn/browse/wso2/trunk/carbon/components/reporting/org.wso2.carbon.reporting.core/src/main/java/org/wso2/carbon/reporting/core/internal/JRxmlFileBundleListener.java?rev=114498&r1=114497&r2=114498&view=diff
==============================================================================
--- trunk/carbon/components/reporting/org.wso2.carbon.reporting.core/src/main/java/org/wso2/carbon/reporting/core/internal/JRxmlFileBundleListener.java	(original)
+++ trunk/carbon/components/reporting/org.wso2.carbon.reporting.core/src/main/java/org/wso2/carbon/reporting/core/internal/JRxmlFileBundleListener.java	Wed Oct 19 10:53:14 2011
@@ -85,7 +85,9 @@
                 }
                 reportFilesResource.setContentStream(xmlStream);
                 String location = "/reports/" + bundle.getSymbolicName() + "/" + path.split("/")[1];
-                registry.put(location, reportFilesResource);
+                if (!registry.resourceExists(location)) {
+                    registry.put(location, reportFilesResource);
+                }
             }
             }finally {
               xmlStream.close();


More information about the Carbon-commits mailing list