geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From de...@apache.org
Subject svn commit: r799493 - /geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/DeploymentUtils.java
Date Fri, 31 Jul 2009 02:26:42 GMT
Author: delos
Date: Fri Jul 31 02:26:42 2009
New Revision: 799493

URL: http://svn.apache.org/viewvc?rev=799493&view=rev
Log:
GERONIMODEVTOOLS-580 Servlet/JSP update forces a complete redeploy of a WAR.
Avoid exception in getAffectedJSPFiles() of DeploymentUtils, in case not only jsp files changed


Modified:
    geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/DeploymentUtils.java

Modified: geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/DeploymentUtils.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/DeploymentUtils.java?rev=799493&r1=799492&r2=799493&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/DeploymentUtils.java
(original)
+++ geronimo/devtools/eclipse-plugin/branches/2.1.5/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/DeploymentUtils.java
Fri Jul 31 02:26:42 2009
@@ -246,10 +246,12 @@
             else return null;   //not only jsp changed
         }
         else if (resource instanceof IModuleFolder) {
-            IModuleResourceDelta[] deltaArray = delta.getAffectedChildren();
-            for (IModuleResourceDelta childDelta: deltaArray) {
-                fileList.addAll(getAffectedJSPFiles(childDelta));
-            }
+             IModuleResourceDelta[] deltaArray = delta.getAffectedChildren();
+			 for (IModuleResourceDelta childDelta : deltaArray) {
+				List<IModuleResourceDelta> deltaChildren = getAffectedJSPFiles(childDelta);
+				if (deltaChildren != null) fileList.addAll(deltaChildren);
+				else return null;
+			}
         }
 
         return fileList;



Mime
View raw message