geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r924649 - /geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandRedeploy.java
Date Thu, 18 Mar 2010 05:50:44 GMT
Author: xuhaihong
Date: Thu Mar 18 05:50:43 2010
New Revision: 924649

URL: http://svn.apache.org/viewvc?rev=924649&view=rev
Log:
Use JarUtils to replace FileUtils

Modified:
    geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandRedeploy.java

Modified: geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandRedeploy.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandRedeploy.java?rev=924649&r1=924648&r2=924649&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandRedeploy.java
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-deploy-tool/src/main/java/org/apache/geronimo/deployment/cli/CommandRedeploy.java
Thu Mar 18 05:50:43 2010
@@ -39,7 +39,7 @@ import org.apache.geronimo.kernel.util.J
 
 /**
  * The CLI deployer logic to redeploy.
- * 
+ *
  * @version $Rev$ $Date$
  */
 public class CommandRedeploy extends AbstractCommand {
@@ -150,7 +150,7 @@ public class CommandRedeploy extends Abs
                 File plan = null;
                 test = new File(args[2]); // check whether args[2] is a module or a plan
                 checkFirstArguement(test);
-                if (FileUtils.isJarFile(test) || test.isDirectory()) {
+                if (JarUtils.isJarFile(test) || test.isDirectory()) {
                     if (module != null) {
                         throw new DeploymentSyntaxException("Module and plan cannot both
be JAR files or directories!");
                     }
@@ -165,7 +165,7 @@ public class CommandRedeploy extends Abs
                     test1 = new File(args[3]);
                     if (test1.exists() && test1.canRead()) // check if it is plan
                     {
-                        if (FileUtils.isJarFile(test1) || test1.isDirectory()) {
+                        if (JarUtils.isJarFile(test1) || test1.isDirectory()) {
                             if (module != null) {
                                 throw new DeploymentSyntaxException(
                                         "Module and plan cannot both be JAR files or directories!");



Mime
View raw message