You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ge...@apache.org on 2011/04/25 11:49:54 UTC

svn commit: r1096445 - /geronimo/server/branches/2.2/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/DirectoryHotDeployer.java

Author: genspring
Date: Mon Apr 25 09:49:53 2011
New Revision: 1096445

URL: http://svn.apache.org/viewvc?rev=1096445&view=rev
Log:
String.isEmpty() is an Java 6 api,  we only  build geronimo with Java 5.

Modified:
    geronimo/server/branches/2.2/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/DirectoryHotDeployer.java

Modified: geronimo/server/branches/2.2/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/DirectoryHotDeployer.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/DirectoryHotDeployer.java?rev=1096445&r1=1096444&r2=1096445&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/DirectoryHotDeployer.java (original)
+++ geronimo/server/branches/2.2/plugins/hotdeploy/geronimo-hot-deploy/src/main/java/org/apache/geronimo/deployment/hot/DirectoryHotDeployer.java Mon Apr 25 09:49:53 2011
@@ -161,7 +161,7 @@ public class DirectoryHotDeployer implem
         }
         
         File monitorFile = null;
-        if (monitorFileName != null && !monitorFileName.isEmpty()) {
+        if (monitorFileName != null && monitorFileName.length() != 0) {
             monitorFile = serverInfo.resolveServer(dir + File.separator + monitorFileName);
             if (!monitorFile.createNewFile()) {
                 if (!monitorFile.canWrite()) {