click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1035934 - /click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
Date Wed, 17 Nov 2010 07:11:25 GMT
Author: sabob
Date: Wed Nov 17 07:11:25 2010
New Revision: 1035934

URL: http://svn.apache.org/viewvc?rev=1035934&view=rev
Log:
put all resourceDeploy logic under one method

Modified:
    click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java

Modified: click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java?rev=1035934&r1=1035933&r2=1035934&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java (original)
+++ click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java Wed Nov
17 07:11:25 2010
@@ -956,6 +956,10 @@ public class XmlConfigService implements
      */
     protected boolean isResourcesDeployable() {
         // Only deploy if writes are allowed
+        if (onGoogleAppEngine) {
+            // Google doesn't allow writes
+            return false;
+        }
         return ClickUtils.isResourcesDeployable(servletContext);
     }
 
@@ -1314,7 +1318,7 @@ public class XmlConfigService implements
      */
     private void deployFiles(Element rootElm) throws Exception {
 
-        boolean isResourcesDeployable = onGoogleAppEngine ? false : isResourcesDeployable();
+        boolean isResourcesDeployable = isResourcesDeployable();
 
         if (isResourcesDeployable) {
             if (getLogService().isTraceEnabled()) {



Mime
View raw message