[seam-commits] Seam SVN: r13619 - in branches/community/Seam_2_2/examples: hibernate and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Aug 20 06:03:10 EDT 2010


Author: manaRH
Date: 2010-08-20 06:03:10 -0400 (Fri, 20 Aug 2010)
New Revision: 13619

Added:
   branches/community/Seam_2_2/examples/hibernate/build-jboss42.xml
Modified:
   branches/community/Seam_2_2/examples/build.xml
   branches/community/Seam_2_2/examples/hibernate/build-jboss.xml
   branches/community/Seam_2_2/examples/hibernate/build.xml
   branches/community/Seam_2_2/examples/hibernate/readme.txt
Log:
JBSEAM-4571 - added new build script for JBoss AS 4.2

Modified: branches/community/Seam_2_2/examples/build.xml
===================================================================
--- branches/community/Seam_2_2/examples/build.xml	2010-08-19 22:06:03 UTC (rev 13618)
+++ branches/community/Seam_2_2/examples/build.xml	2010-08-20 10:03:10 UTC (rev 13619)
@@ -291,6 +291,16 @@
 		<include name="cglib-nodep.jar" if="spring.lib" />
 	</fileset>
 
+	<fileset id="hibernate-annotations.jar" dir="${lib.dir}">
+		<include name="hibernate-core.jar" if="han.lib" />
+		<include name="hibernate-annotations.jar" if="han.lib" />
+		<include name="hibernate-commons-annotations.jar" if="han.lib" />
+		<include name="hibernate-entitymanager.jar" if="han.lib" />
+		<include name="hibernate-validator.jar" if="han.lib" />
+		<include name="slf4j-api.jar" if="han.lib" />
+		<include name="slf4j-log4j12.jar" if="han.lib" />
+	</fileset>
+	
 	<!-- Optional UI jars -->
 
 	<!-- Dependencies for using Seam with facelets -->
@@ -1046,6 +1056,7 @@
 			<fileset refid="drools.jar" />
 			<fileset refid="cache.jar" />
 			<fileset refid="jbpm.jar" />
+			<fileset refid="hibernate-annotations.jar" />
 			<fileset refid="spring.jar" />
 			<fileset refid="gwt.jar" />
 			<fileset refid="jboss-el.jar" />

Modified: branches/community/Seam_2_2/examples/hibernate/build-jboss.xml
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/build-jboss.xml	2010-08-19 22:06:03 UTC (rev 13618)
+++ branches/community/Seam_2_2/examples/hibernate/build-jboss.xml	2010-08-20 10:03:10 UTC (rev 13619)
@@ -3,7 +3,7 @@
 <project name="Hibernate Booking" default="jbosswar.deploy" basedir=".">
 
     <!-- Naming -->
-    <property name="Name"                   value="The Hibernate Example for JBoss 4.2.0.GA"/>
+    <property name="Name"                   value="The Hibernate Example for JBoss AS 5 and later"/>
     <property name="example.name"           value="jboss-seam-hibernate"/>
 
     <!-- resources -->

Added: branches/community/Seam_2_2/examples/hibernate/build-jboss42.xml
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/build-jboss42.xml	                        (rev 0)
+++ branches/community/Seam_2_2/examples/hibernate/build-jboss42.xml	2010-08-20 10:03:10 UTC (rev 13619)
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+
+<project name="Hibernate Booking" default="jbosswar.deploy" basedir=".">
+
+    <!-- Naming -->
+    <property name="Name"                   value="The Hibernate Example for JBoss 4.2.x"/>
+    <property name="example.name"           value="jboss-seam-hibernate"/>
+
+    <!-- resources -->
+    <property name="resources.dir" value="resources-jboss" />
+	<property name="dist.dir" value="dist-jboss42" />
+	<property name="exploded-archives.dir" value="exploded-archives-jboss42" />
+       
+    <!-- Libraries to include -->
+    <property name="seam.ui.lib"    value="true"/>
+    <property name="seam.debug.lib" value="true"/>
+    <property name="facelets.lib"   value="true"/>
+    <property name="richfaces.lib"   value="true"/>
+	<property name="han.lib" 		value="true"/>
+
+    <import file="../build.xml"/>
+
+</project>
+


Property changes on: branches/community/Seam_2_2/examples/hibernate/build-jboss42.xml
___________________________________________________________________
Name: svn:executable
   + *

Modified: branches/community/Seam_2_2/examples/hibernate/build.xml
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/build.xml	2010-08-19 22:06:03 UTC (rev 13618)
+++ branches/community/Seam_2_2/examples/hibernate/build.xml	2010-08-20 10:03:10 UTC (rev 13619)
@@ -2,9 +2,13 @@
 
 <project name="Hibernate Booking" default="jboss" basedir=".">
 
-   <target name="jboss" description="Build the Hibernate Booking example artifacts, and deploy to JBoss 4.2.0.GA">
+   <target name="jboss" description="Build the Hibernate Booking example artifacts, and deploy to JBoss 5 and later">
      	<ant antfile="build-jboss.xml"/>
    </target>
+	
+   <target name="jboss42" description="Build the Hibernate Booking example artifacts, and deploy to JBoss 4.2.x.GA">
+     	<ant antfile="build-jboss42.xml"/>
+   </target>
    
    <target name="jboss-embedded" description="Build the JPA artifacts, and deploy to JBoss Embedded in Tomcat">
       <ant antfile="build-jboss-embedded.xml"/>
@@ -14,9 +18,13 @@
       <ant antfile="build-jboss-embedded.xml" target="tomcat.undeploy"/>
    </target>
 	
-   <target name="jboss.undeploy" description="Build the Hibernate Booking example artifacts, and deploy to JBoss 4.2.0.GA">
+   <target name="jboss.undeploy" description="Undeploy Hibernate Booking example from JBoss Application Server">
         <ant antfile="build-jboss.xml" target="jbosswar.undeploy"/>
    </target>
+	
+   <target name="jboss42.undeploy" description="Undeploy Hibernate Booking example from JBoss Application Server">
+        <ant antfile="build-jboss.xml" target="jbosswar.undeploy"/>
+   </target>
 
    <target name="jboss405" description="Build the Hibernate Booking example artifacts, suitable for deployment to JBoss 4.0.5.GA">
      	<ant antfile="build-jboss405.xml"/>
@@ -52,6 +60,7 @@
 
    <target name="clean" description="Clean up the example">
      	<ant antfile="build-jboss.xml" target="clean" />
+   		<ant antfile="build-jboss42.xml" target="clean" />
     	<ant antfile="build-jboss405.xml" target="clean" />
     	<ant antfile="build-glassfish.xml" target="clean" />
     	<ant antfile="build-weblogic92.xml" target="clean" />
@@ -61,7 +70,7 @@
         <ant antfile="build-jboss-embedded.xml" target="clean" />
    </target>
 
-   <target name="all" depends="jboss, jboss405, glassfish, weblogic92, websphere61, tomcat55, tomcat6" description="Build Hibernate Booking example, for deployment to all supported application servers"/>
+   <target name="all" depends="jboss, jboss42, jboss405, glassfish, weblogic92, websphere61, tomcat55, tomcat6" description="Build Hibernate Booking example, for deployment to all supported application servers"/>
    
    <target name="test">
       <ant antfile="build-jboss.xml" target="test" />

Modified: branches/community/Seam_2_2/examples/hibernate/readme.txt
===================================================================
--- branches/community/Seam_2_2/examples/hibernate/readme.txt	2010-08-19 22:06:03 UTC (rev 13618)
+++ branches/community/Seam_2_2/examples/hibernate/readme.txt	2010-08-20 10:03:10 UTC (rev 13619)
@@ -7,7 +7,7 @@
 
 JBoss AS 4.2.x:
   * Install JBoss AS with the default profile
-  * ant jboss
+  * ant jboss42
   * Start JBoss AS 
   * Access the app at http://localhost:8080/jboss-seam-hibernate/
   * ant jboss.undeploy



More information about the seam-commits mailing list