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

Commit

Permalink
Merge pull request #59 from zanata/explode-profile
Browse files Browse the repository at this point in the history
change the way we redeploy to AS7
  • Loading branch information
carlosmunoz committed Jul 22, 2013
2 parents 9993d5c + 345ac95 commit d4c6611
Showing 1 changed file with 71 additions and 51 deletions.
122 changes: 71 additions & 51 deletions zanata-war/pom.xml
Expand Up @@ -723,59 +723,79 @@

<profiles>
<profile>
<!-- This profile will copy the exploded war to AS7 and trigger a re-deployment. -->
<id>explode</id>
<activation>
<property>
<name>env</name>
<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</location>
<properties>
<context>zanata</context>
</properties>
</deployable>
</deployables>
</configuration>
</plugin>
</plugins>
</build>
<activation>
<property>
<name>env</name>
<value>dev</value>
</property>
</activation>
<properties>
<as7.dodeploy.marker>${jboss.home}/standalone/deployments/zanata.war.dodeploy</as7.dodeploy.marker>
</properties>
<build>
<plugins>
<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="${as7.dodeploy.marker}"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>replace-static</id>
<!-- This profile will replace exploded war in AS7 WITHOUT triggering a re-deployment.
If you change xhtml or similar which does not require a redeployment, you can use this profile. -->
<activation>
<property>
<name>env</name>
<value>dev</value>
</property>
</activation>
<properties>
<as7.skip.deploy.marker>${jboss.home}/standalone/deployments/zanata.war.skipdeploy</as7.skip.deploy.marker>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<configuration>
<tasks>
<touch file="${as7.skip.deploy.marker}"/>
<copy todir="${jboss.home}/standalone/deployments/zanata.war">
<fileset dir="${project.build.directory}/zanata"/>
</copy>
<delete file="${as7.skip.deploy.marker}"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>nogwt</id>
Expand Down

0 comments on commit d4c6611

Please sign in to comment.