[seam-commits] Seam SVN: r15446 - branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build-scripts.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Mar 12 07:49:55 EDT 2013
Author: vdedik
Date: 2013-03-12 07:49:54 -0400 (Tue, 12 Mar 2013)
New Revision: 15446
Modified:
branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build-scripts/build-war.xml
branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build-scripts/build.xml
Log:
bz 912401
Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build-scripts/build-war.xml
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build-scripts/build-war.xml 2013-03-07 15:48:54 UTC (rev 15445)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build-scripts/build-war.xml 2013-03-12 11:49:54 UTC (rev 15446)
@@ -279,8 +279,12 @@
<copy file="${basedir}/resources/${project.name}-${profile}-ds.xml"
tofile="${deploy.dir}/${project.name}-ds.xml"/>
</target>
+
+ <target name="explode" depends="prepare-explode,create-dodeploy"/>
+
+ <available file="${deploy.dir}/${project.name}.war.deployed" property="deployed.file.exists"/>
- <target name="explode" depends="stage,datasource"
+ <target name="prepare-explode" depends="stage,datasource"
description="Deploy the exploded archive">
<fail unless="jboss.home">jboss.home not set</fail>
@@ -288,6 +292,9 @@
<copy todir="${war.deploy.dir}">
<fileset dir="${war.dir}"/>
</copy>
+ </target>
+
+ <target name="create-dodeploy" unless="deployed.file.exists">
<touch file="${deploy.dir}/${project.name}.war.dodeploy"/>
</target>
Modified: branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build-scripts/build.xml
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build-scripts/build.xml 2013-03-07 15:48:54 UTC (rev 15445)
+++ branches/enterprise/WFK-2_1/jboss-seam-gen/dist/build-scripts/build.xml 2013-03-12 11:49:54 UTC (rev 15446)
@@ -295,7 +295,11 @@
tofile="${deploy.dir}/${project.name}-ds.xml"/>
</target>
- <target name="explode" depends="stage,datasource"
+ <target name="explode" depends="prepare-explode,create-dodeploy"/>
+
+ <available file="${deploy.dir}/${project.name}.war.deployed" property="deployed.file.exists"/>
+
+ <target name="prepare-explode" depends="stage,datasource"
description="Deploy the exploded archive">
<fail unless="jboss.home">jboss.home not set</fail>
@@ -312,9 +316,12 @@
<copy todir="${war.deploy.dir}">
<fileset dir="${war.dir}"/>
</copy>
- <touch file="${deploy.dir}/${project.name}.ear.dodeploy"/>
</target>
+ <target name="create-dodeploy" unless="deployed.file.exists">
+ <touch file="${deploy.dir}/${project.name}.ear.dodeploy"/>
+ </target>
+
<target name="unexplode" description="Undeploy the exploded archive">
<delete file="${deploy.dir}/${project.name}.ear.deployed"/>
<delete failonerror="no">
More information about the seam-commits
mailing list