You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by rw...@apache.org on 2005/12/23 03:41:53 UTC

svn commit: r358687 - /portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java

Author: rwatler
Date: Thu Dec 22 18:41:52 2005
New Revision: 358687

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

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java?rev=358687&r1=358686&r2=358687&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java (original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/deployment/impl/DeployDecoratorEventListener.java Thu Dec 22 18:41:52 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");
         }
@@ -305,7 +305,7 @@
         {
             layoutType = "generic";
         }
-         return deployToDir + File.separator + layoutType ;
+        return deployToDir + File.separator + layoutType ;
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org