Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
change to use ant-run for AS7 redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Jul 21, 2013
1 parent 735e06d commit d2c8231
Showing 1 changed file with 19 additions and 41 deletions.
60 changes: 19 additions & 41 deletions zanata-war/pom.xml
Expand Up @@ -730,49 +730,27 @@
<value>dev</value>
</property>
</activation>
<properties>
<!-- common config for Cargo -->
<port>8080</port>
<installDir>${java.io.tmpdir}/cargo/installs</installDir>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.3.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>redeploy</goal>
</goals>
</execution>
</executions>
<configuration>
<wait>false</wait>
<container>
<containerId>${containerId}</containerId>
</container>
<configuration>
<type>existing</type>
<home>${jboss.home}/standalone</home>
<properties>
<cargo.jboss.configuration>default</cargo.jboss.configuration>
</properties>
</configuration>
<deployables>
<deployable>
<pingURL>http://localhost:${port}/${war.name}/</pingURL>
<pingTimeout>60000</pingTimeout>
<location>${project.build.directory}/zanata-${project.version}.war</location>
<properties>
<context>zanata</context>
</properties>
</deployable>
</deployables>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<configuration>
<tasks>
<copy todir="${jboss.home}/standalone/deployments/zanata.war">
<fileset dir="${project.build.directory}/zanata"/>
</copy>
<touch file="${jboss.home}/standalone/deployments/zanata.war.dodeploy"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit d2c8231

Please sign in to comment.