Permalink
Browse files

The andDeploy() method on the builder seems to block until the applic…

…ation server is ended. Since now the add also deploys, remove the andDeploy() from the build.
  • Loading branch information...
1 parent a0ee300 commit d965a7b80fad547a6d7d17972c82988a820addc2 @jamezp jamezp committed Apr 16, 2011
Showing with 7 additions and 6 deletions.
  1. +1 −0 .gitignore
  2. +6 −6 src/main/java/org/jboss/as/plugin/Deploy.java
View
@@ -10,6 +10,7 @@ target/
*.iml
*.iws
*.ipr
+.idea/
#Ignore Mac files
.DS_Store
@@ -22,11 +22,11 @@
package org.jboss.as.plugin;
-import java.io.IOException;
-
import org.jboss.as.controller.client.helpers.standalone.DeploymentPlan;
import org.jboss.as.controller.client.helpers.standalone.DeploymentPlanBuilder;
+import java.io.IOException;
+
/**
* Deploys the archived result of the project to the application server.
* <p>
@@ -52,9 +52,9 @@
* </build>
* }
* </p>
- *
+ *
* @goal deploy
- *
+ *
* @author James R. Perkins Jr. (jrp)
*/
public final class Deploy extends AbstractDeployment {
@@ -63,9 +63,9 @@
public DeploymentPlan createPlan(final DeploymentPlanBuilder builder) throws IOException {
DeploymentPlan plan = null;
if (name() == null) {
- plan = builder.add(file()).andDeploy().build();
+ plan = builder.add(file()).build();
} else {
- plan = builder.add(name(), file()).andDeploy().build();
+ plan = builder.add(name(), file()).build();
}
return plan;
}

0 comments on commit d965a7b

Please sign in to comment.