Author: manaRH
Date: 2010-11-22 10:41:50 -0500 (Mon, 22 Nov 2010)
New Revision: 13925
Modified:
branches/community/Seam_2_2/build/build.xml
branches/community/Seam_2_2/build/common.build.xml
Log:
added deploying dvdstore to maven repo from jboss as 6 customized script
Modified: branches/community/Seam_2_2/build/build.xml
===================================================================
--- branches/community/Seam_2_2/build/build.xml 2010-11-22 14:54:10 UTC (rev 13924)
+++ branches/community/Seam_2_2/build/build.xml 2010-11-22 15:41:50 UTC (rev 13925)
@@ -59,7 +59,9 @@
<deployWithSources pom="${wicket.pom}"
jar="${lib.dir}/jboss-seam-wicket.jar"
repositoryId="offline.repository.jboss.org"
srcjar="${lib.dir}/src/jboss-seam-wicket-sources.jar"/>
<deployExample name="booking"
repositoryId="offline.repository.jboss.org"/>
<deployExampleNoDs name="numberguess"
repositoryId="offline.repository.jboss.org"/>
- <deployExample name="dvdstore"
path="${seam.dir}/examples/dvdstore"
repositoryId="offline.repository.jboss.org"/>
+<!-- <deployExample name="dvdstore"
path="${seam.dir}/examples/dvdstore"
repositoryId="offline.repository.jboss.org"/> -->
+ <!-- macro for JBoss AS 6 example build -->
+ <deployExampleJboss6 name="dvdstore"
path="${seam.dir}/examples/dvdstore"
repositoryId="offline.repository.jboss.org"/>
</target>
<target name="stageReleaseSeam" description="Deploy Seam and JBoss EL
to your local copy of repository.jboss.org" depends="initpoms">
@@ -81,7 +83,9 @@
<deployWithSources pom="${wicket.pom}"
jar="${lib.dir}/jboss-seam-wicket.jar"
repositoryId="jboss-releases-repository"
srcjar="${lib.dir}/src/jboss-seam-wicket-sources.jar"/>
<deployExample name="booking"
repositoryId="jboss-releases-repository"/>
<deployExampleNoDs name="numberguess"
repositoryId="jboss-releases-repository"/>
- <deployExample name="dvdstore"
path="${seam.dir}/examples/dvdstore"
repositoryId="jboss-releases-repository"/>
+ <!-- <deployExample name="dvdstore"
path="${seam.dir}/examples/dvdstore"
repositoryId="jboss-releases-repository"/> -->
+ <!-- macro for JBoss AS 6 example build -->
+ <deployExampleJboss6 name="dvdstore"
path="${seam.dir}/examples/dvdstore"
repositoryId="jboss-releases-repository"/>
</target>
<target name="deployLocalPom">
Modified: branches/community/Seam_2_2/build/common.build.xml
===================================================================
--- branches/community/Seam_2_2/build/common.build.xml 2010-11-22 14:54:10 UTC (rev
13924)
+++ branches/community/Seam_2_2/build/common.build.xml 2010-11-22 15:41:50 UTC (rev
13925)
@@ -204,6 +204,47 @@
</sequential>
</macrodef>
+ <macrodef name="deployExampleJboss6">
+ <attribute name="name" />
+ <attribute name="path" default="${seam.dir}/examples/@{name}"
/>
+ <attribute name="repositoryId" />
+ <attribute name="type" default="ear" />
+ <sequential>
+ <ant dir="@{path}" target="archive"
antfile="build-jboss6.xml" inheritall="false">
+ <propertyset>
+ <propertyref name="initpomsdone" />
+ <propertyref name="copyseamdone" />
+ <propertyref name="copyseamdependenciesdone" />
+ <propertyref name="copyjbossembeddeddone" />
+ <propertyref name="core.pom" />
+ <propertyref name="root.pom" />
+ <propertyref name="parent.pom" />
+ <propertyref name="ui.pom" />
+ <propertyref name="remoting.pom" />
+ <propertyref name="resteasy.pom" />
+ <propertyref name="pdf.pom" />
+ <propertyref name="flex.pom" />
+ <propertyref name="rss.pom" />
+ <propertyref name="gen.pom" />
+ <propertyref name="excel.pom" />
+ <propertyref name="ioc.pom" />
+ <propertyref name="mail.pom" />
+ <propertyref name="debug.pom" />
+ <propertyref name="wicket.pom" />
+ <propertyref name="testng.jvmargs" />
+ <propertyref name="maven.settings.xml" />
+ </propertyset>
+ </ant>
+ <pomfile name="example.pom" value="(a){path}/pom.xml" />
+ <artifact:deploy file="@{path}/dist-jbossas6/jboss-seam-(a){name}.ear"
+ uniqueVersion="false"
settingsFile="${maven.settings.xml}">
+ <pom file="${example.pom}"
settingsFile="${maven.settings.xml}" />
+ <attach file="@{path}/resources/jboss-seam-(a){name}-ds.xml"
+ classifier="ds" type="xml" />
+ <remoteRepository refid="@{repositoryId}" />
+ </artifact:deploy>
+ </sequential>
+ </macrodef>
<macrodef name="deployExample">
<attribute name="name" />
<attribute name="path" default="${seam.dir}/examples/@{name}"
/>