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

Commit

Permalink
Change explode profile.
Browse files Browse the repository at this point in the history
Some problems with the touching of the dodeploy file and made sure the profile can be activated via a property.
  • Loading branch information
Carlos A. Munoz authored and seanf committed Jan 21, 2015
1 parent e22728b commit d8c8f8e
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions zanata-war/pom.xml
Expand Up @@ -36,6 +36,9 @@

<groovy.version>2.1.5</groovy.version>
<zanata.web.assets.version>6</zanata.web.assets.version>

<as7.skip.deploy.marker>${jboss.home}/standalone/deployments/zanata.war.skipdeploy</as7.skip.deploy.marker>
<as7.dodeploy.marker>${jboss.home}/standalone/deployments/zanata.war.dodeploy</as7.dodeploy.marker>
</properties>

<build>
Expand Down Expand Up @@ -209,9 +212,9 @@
<execution>
<phase>prepare-package</phase>
<configuration>
<tasks>
<target>
<mkdir dir="${project.build.directory}/zanata" />
</tasks>
</target>
</configuration>
<goals>
<goal>run</goal>
Expand Down Expand Up @@ -642,8 +645,7 @@
<id>explode</id>
<activation>
<property>
<name>env</name>
<value>dev</value>
<name>explode</name>
</property>
</activation>
<properties>
Expand All @@ -658,15 +660,16 @@
<execution>
<phase>package</phase>
<configuration>
<tasks>
<target if="explode">
<delete file="${as7.dodeploy.marker}" />
<touch file="${as7.skip.deploy.marker}" />
<delete dir="${jboss.home}/standalone/deployments/zanata.war" />
<copy todir="${jboss.home}/standalone/deployments/zanata.war">
<fileset dir="${project.build.directory}/zanata" />
</copy>
<delete file="${as7.skip.deploy.marker}" />
<touch file="${as7.dodeploy.marker}" />
</tasks>
</target>
</configuration>
<goals>
<goal>run</goal>
Expand All @@ -683,8 +686,7 @@
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>
<name>replacestatic</name>
</property>
</activation>
<properties>
Expand All @@ -698,14 +700,14 @@
<execution>
<phase>package</phase>
<configuration>
<tasks>
<target>
<touch file="${as7.skip.deploy.marker}" />
<delete dir="${jboss.home}/standalone/deployments/zanata.war" />
<copy todir="${jboss.home}/standalone/deployments/zanata.war">
<fileset dir="${project.build.directory}/zanata" />
</copy>
<delete file="${as7.skip.deploy.marker}" />
</tasks>
</target>
</configuration>
<goals>
<goal>run</goal>
Expand Down

0 comments on commit d8c8f8e

Please sign in to comment.