[jboss-cvs] JBossAS SVN: r68284 - trunk/testsuite/imports/sections.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Dec 14 08:59:04 EST 2007


Author: petemuir
Date: 2007-12-14 08:59:04 -0500 (Fri, 14 Dec 2007)
New Revision: 68284

Modified:
   trunk/testsuite/imports/sections/seam.xml
Log:
Completed seam.xml to download examples from maven 2 repo

Modified: trunk/testsuite/imports/sections/seam.xml
===================================================================
--- trunk/testsuite/imports/sections/seam.xml	2007-12-14 13:44:25 UTC (rev 68283)
+++ trunk/testsuite/imports/sections/seam.xml	2007-12-14 13:59:04 UTC (rev 68284)
@@ -1,17 +1,30 @@
-<project name="tests-seam-jars">
+<project name="tests-seam-jars" xmlns:artifact="urn:maven-artifact-ant">
 
    <property name="repository" value="http://snapshots.jboss.org/maven2/org/jboss/seam/examples/"/>
 
-   <property name="booking_version" value="-2.0.1-SNAPSHOT"/>
+   <property name="seam_version" value="2.0.1.CR1"/>
 
-   <target name="_jars-seam">
-      <mkdir dir="${build.lib}"/>
+   <target name="_jars-seam">
+   	
+   	  <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="apache.maven.ant.tasks.classpath" />
+   	
+      <mkdir dir="${build.lib}"/>
+      <artifact:dependencies filesetId="examples.fileset" versionsId="examples.versions">
+          <dependency groupId="org.jboss.seam.examples" artifactId="jboss-seam-booking" version="${seam_version}" type="ear"/>
+      	  <dependency groupId="org.jboss.seam.examples" artifactId="jboss-seam-booking" version="${seam_version}" type="xml" classifier="ds"/>
+      	  <dependency groupId="org.jboss.seam.examples" artifactId="jboss-seam-dvd" version="${seam_version}" type="ear"/>
+      	  <dependency groupId="org.jboss.seam.examples" artifactId="jboss-seam-dvd" version="${seam_version}" type="xml" classifier="ds"/>
+      	  <dependency groupId="org.jboss.seam.examples" artifactId="jboss-seam-numberguess" version="${seam_version}" type="ear"/>
+      	  <remoterepository id="repository.jboss.org" url="http://repository.jboss.org/maven2"/>
+      </artifact:dependencies>
+   	
+   	  <copy todir="${build.lib}">
+   		  <fileset refid="examples.fileset" />
+   		  <mapper classpathref="apache.maven.ant.tasks.classpath" classname="org.apache.maven.artifact.ant.VersionMapper" from="${examples.versions}" to="flatten" />
+   	  </copy>
 
-      <!-- TODO copy from repository to ${build.lib} -->
-      <!-- include the example + -ds.xml file -->
-      <!-- remove version string tag -->
-      <!-- make copying optional or/and check for artifact modifications -->
+   </target>
+   
+   
 
-   </target>
-
 </project>




More information about the jboss-cvs-commits mailing list