You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2006/02/06 15:52:23 UTC

svn commit: r375293 - /geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerRuntimeTargetHandler.java

Author: sppatel
Date: Mon Feb  6 06:52:23 2006
New Revision: 375293

URL: http://svn.apache.org/viewcvs?rev=375293&view=rev
Log:
fix isAccessDiscourgaed

Modified:
    geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerRuntimeTargetHandler.java

Modified: geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerRuntimeTargetHandler.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerRuntimeTargetHandler.java?rev=375293&r1=375292&r2=375293&view=diff
==============================================================================
--- geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerRuntimeTargetHandler.java (original)
+++ geronimo/devtools/trunk/modules/eclipse-plugin/plugins/org.apache.geronimo.devtools.eclipse.core/src/org/apache/geronimo/core/internal/GeronimoServerRuntimeTargetHandler.java Mon Feb  6 06:52:23 2006
@@ -129,7 +129,9 @@
 		Iterator i = discouragedAccessPaths.iterator();
 		while (i.hasNext()) {
 			IPath xPath = (IPath) i.next();
-			if (runtimeLoc.append(xPath).isPrefixOf(path)) {
+			if(path.toFile().isDirectory() && runtimeLoc.append(xPath).isPrefixOf(path)) {
+				return true;
+			} else if(runtimeLoc.append(xPath).equals(path)) {
 				return true;
 			}
 		}