ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r834768 - /ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/deploy/DeploymentPoller.java
Date Wed, 11 Nov 2009 04:54:57 GMT
Author: midon
Date: Wed Nov 11 04:54:57 2009
New Revision: 834768

URL: http://svn.apache.org/viewvc?rev=834768&view=rev
Log:
Why do simple when one can do complicated?

Modified:
    ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/deploy/DeploymentPoller.java

Modified: ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/deploy/DeploymentPoller.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/deploy/DeploymentPoller.java?rev=834768&r1=834767&r2=834768&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/deploy/DeploymentPoller.java
(original)
+++ ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/deploy/DeploymentPoller.java
Wed Nov 11 04:54:57 2009
@@ -82,14 +82,7 @@
     /** Filter accepting directories containing a ode dd file. */
     private static final FileFilter _fileFilter = new FileFilter() {
         public boolean accept(File path) {
-            if (path.isDirectory()) {
-                return path.listFiles(new FilenameFilter() {
-                    public boolean accept(File dir, String name) {
-                        return name.toLowerCase().equals("deploy.xml");
-                    }
-                }).length == 1;
-            } else
-                return false;
+            return new File(path, "deploy.xml").exists();
         }
     };
 



Mime
View raw message