You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by de...@apache.org on 2009/07/31 04:26:42 UTC
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
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;