[seam-commits] Seam SVN: r7200 - trunk/build.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Jan 23 08:23:25 EST 2008


Author: pete.muir at jboss.org
Date: 2008-01-23 08:23:25 -0500 (Wed, 23 Jan 2008)
New Revision: 7200

Modified:
   trunk/build/build.xml
   trunk/build/common.build.xml
Log:
Add installExample target

Modified: trunk/build/build.xml
===================================================================
--- trunk/build/build.xml	2008-01-23 13:09:31 UTC (rev 7199)
+++ trunk/build/build.xml	2008-01-23 13:23:25 UTC (rev 7200)
@@ -151,6 +151,10 @@
 		<deployExample name="${name}" repositoryId="snapshots.jboss.org"/>
 	</target>
 	
+	<target name="installExample">
+		<installExample name="${name}"/>
+	</target>
+	
 	<macrodef name="offline">
 		<attribute name="pom" />
 		<attribute name="repository" />

Modified: trunk/build/common.build.xml
===================================================================
--- trunk/build/common.build.xml	2008-01-23 13:09:31 UTC (rev 7199)
+++ trunk/build/common.build.xml	2008-01-23 13:23:25 UTC (rev 7200)
@@ -129,7 +129,6 @@
 		<artifact:dependencies filesetId="seam.fileset" versionsId="seam.versions">
 			<dependency groupId="org.jboss.seam" artifactId="jboss-seam" version="${complete.version}" />
 			<dependency groupId="org.jboss.seam" artifactId="jboss-seam-debug" version="${complete.version}" />
-            <dependency groupId="org.jboss.seam" artifactId="jboss-seam-jbas5" version="${complete.version}" />
 			<dependency groupId="org.jboss.seam" artifactId="jboss-seam-ioc" version="${complete.version}" />
 			<dependency groupId="org.jboss.seam" artifactId="jboss-seam-mail" version="${complete.version}" />
 			<dependency groupId="org.jboss.seam" artifactId="jboss-seam-pdf" version="${complete.version}" />
@@ -212,6 +211,38 @@
        	</sequential>
 	</macrodef>
 	
+	<macrodef name="installExample">
+		<attribute name="name" />
+       	<attribute name="path" default="${seam.dir}/examples/@{name}" />
+       	<sequential>
+           <ant dir="@{path}" target="archive" 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="gen.pom" />
+					<propertyref name="pdf.pom" />
+					<propertyref name="ioc.pom" />
+					<propertyref name="mail.pom" />
+					<propertyref name="debug.pom" />
+                    <propertyref name="jbas5.pom" />
+					<propertyref name="testng.jvmargs"/>
+				</propertyset>
+           	</ant>
+       		<pomfile name="example.pom" value="@{path}/pom.xml" />
+       		<artifact:install file="@{path}/dist/jboss-seam-@{name}.ear">
+       			<pom file="${example.pom}" />
+       		    <attach file="@{path}/resources/jboss-seam-@{name}-ds.xml" classifier="ds" type="xml" />
+       		</artifact:install>
+       	</sequential>
+	</macrodef>
+	
 	<macrodef name="deployExampleNoDs">
 			<attribute name="name" />
 	       	<attribute name="path" default="${seam.dir}/examples/@{name}" />




More information about the seam-commits mailing list