Author: rwatler
Date: Thu Dec 22 18:41:39 2005
New Revision: 358686

URL: http://svn.apache.org/viewcvs?rev=358686&view=rev
Log:
correct decorator undeployment path checking

Modified:
    
portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java

Modified: 
portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java
URL: 
http://svn.apache.org/viewcvs/portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java?rev=358686&r1=358685&r2=358686&view=diff
==============================================================================
--- 
portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java
 (original)
+++ 
portals/jetspeed-2/branches/JETSPEED-BRANCH-2.0.1/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java
 Thu Dec 22 18:41:39 2005
@@ -195,9 +195,9 @@
     public void invokeUndeploy(File deployPathFile) throws DeploymentException
     {
 
-        if (deployPathFile == null || !deployPathFile.exists() || 
!deployPathFile.isDirectory()
-            || deployPathFile.getParentFile() == null || 
deployPathFile.getParentFile().getParentFile() == null
-            || 
!deployToDir.equals(deployPathFile.getParentFile().getParentFile().getParent()))
+        if (deployPathFile == null || !deployPathFile.exists() ||
+            !deployPathFile.isDirectory() || deployPathFile.getParentFile() == 
null ||
+            !deployToDir.equals(deployPathFile.getParentFile().getParent()))
         {
             throw new DeploymentException("Cannot undeploy decorator at " + 
deployPathFile + ": invalid decorator path");
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to