geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r673171 - /geronimo/server/branches/2.1/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/DistributeCommand.java
Date Tue, 01 Jul 2008 18:48:09 GMT
Author: gawor
Date: Tue Jul  1 11:48:08 2008
New Revision: 673171

URL: http://svn.apache.org/viewvc?rev=673171&view=rev
Log:
fail if remote in-place deployment is attempted (GERONIMO-3963)

Modified:
    geronimo/server/branches/2.1/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/DistributeCommand.java

Modified: geronimo/server/branches/2.1/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/DistributeCommand.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/DistributeCommand.java?rev=673171&r1=673170&r2=673171&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/DistributeCommand.java
(original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-deploy-jsr88/src/main/java/org/apache/geronimo/deployment/plugin/remote/DistributeCommand.java
Tue Jul  1 11:48:08 2008
@@ -42,4 +42,12 @@
     protected void massageFileNames(File[] inputs) {
         RemoteDeployUtil.uploadFilesToServer(inputs, this);
     }
+    
+    public void run() {
+        if (commandContext.isInPlace()) {
+            fail("Remote in-place deployment is not supported");
+        } else {
+            super.run();
+        }
+    }
 }



Mime
View raw message