Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ContextProvider.java3
-rw-r--r--jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/WebAppProvider.java19
2 files changed, 17 insertions, 5 deletions
diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ContextProvider.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ContextProvider.java
index 1fc1bc390b..323f836bf9 100644
--- a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ContextProvider.java
+++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ContextProvider.java
@@ -28,6 +28,9 @@ public class ContextProvider extends ScanningAppProvider
if (!dir.exists())
return false;
String lowername = name.toLowerCase();
+ if (lowername.startsWith("."))
+ return false;
+
return (lowername.endsWith(".xml") && !new File(dir,name).isDirectory());
}
});
diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/WebAppProvider.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/WebAppProvider.java
index f2137a6699..c924b455a9 100644
--- a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/WebAppProvider.java
+++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/WebAppProvider.java
@@ -50,12 +50,21 @@ public class WebAppProvider extends ScanningAppProvider
return false;
}
- // is it a directory for an existing war file?
- if (file.isDirectory() &&
- (new File(dir,name+".war").exists() ||
- new File(dir,name+".WAR").exists()))
- {
+ //ignore hidden files
+ if (lowername.startsWith("."))
return false;
+
+ if (file.isDirectory())
+ {
+ // is it a directory for an existing war file?
+ if (new File(dir,name+".war").exists() ||
+ new File(dir,name+".WAR").exists())
+
+ return false;
+
+ //is it a sccs dir?
+ if ("cvs".equals(lowername) || "cvsroot".equals(lowername))
+ return false;
}
// is there a contexts config file

Back to the top