[jboss-cvs] JBossAS SVN: r83547 - in projects/ejb3/trunk/docs/tutorial: dist and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jan 28 04:42:31 EST 2009


Author: jaikiran
Date: 2009-01-28 04:42:31 -0500 (Wed, 28 Jan 2009)
New Revision: 83547

Added:
   projects/ejb3/trunk/docs/tutorial/dist/
   projects/ejb3/trunk/docs/tutorial/dist/Readme.txt
   projects/ejb3/trunk/docs/tutorial/dist/build-dist.xml
Modified:
   projects/ejb3/trunk/docs/tutorial/guide/en/modules/stateful.xml
   projects/ejb3/trunk/docs/tutorial/guide/en/modules/stateless.xml
   projects/ejb3/trunk/docs/tutorial/pom.xml
Log:
Introduce a build script to generate the final distributable of the tutorials

Added: projects/ejb3/trunk/docs/tutorial/dist/Readme.txt
===================================================================
--- projects/ejb3/trunk/docs/tutorial/dist/Readme.txt	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/dist/Readme.txt	2009-01-28 09:42:31 UTC (rev 83547)
@@ -0,0 +1,22 @@
+------------------------------------------
+Instructions to setup the EJB3 tutorials
+------------------------------------------
+
+* Extract the downloaded .zip/.tar.gz to some location on your system. For ex: /home/xyz/JBossEJB3
+* After you have extracted, you will find two folders namely "guide" and "source"
+* The "guide" contains html version of the tutorial documentation and will help you in building and running the tutorials.
+* The "source" contains multiple tutorials which illustrate various features of EJB3.
+* Open the guide/html/index.html in a web browser and follow the instructions for building and using the tutorials.
+
+------------------------
+EJB3 Forum
+------------------------
+
+If you have any problems running the tutorials, feel free to open a forum thread in our EJB3 user forum at http://www.jboss.com/index.html?module=bb&op=viewforum&f=221
+
+------------------------
+Issue tracking
+------------------------
+
+Bugs/Enhancements can be reported in our JIRA https://jira.jboss.org/jira/browse/EJBTHREE
+

Added: projects/ejb3/trunk/docs/tutorial/dist/build-dist.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/dist/build-dist.xml	                        (rev 0)
+++ projects/ejb3/trunk/docs/tutorial/dist/build-dist.xml	2009-01-28 09:42:31 UTC (rev 83547)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project default="create-dist" name="JBoss/EJB3 Tutorials Release" basedir=".">
+
+	<property name="tutorials.dir" value="../"/>
+	<property name="guide.dir" value="${tutorials.dir}/guide"/>
+	<property name="dist.dir" value="${basedir}"/>
+	<property name="dist.zip" value="ejb3-tutorials.zip"/>
+	<property name="dist.tar" value="ejb3-tutorials.tar.gz"/>
+	
+	<target name="create-dist" depends="clean">
+		<antcall target="create-zip-dist"/>
+		<antcall target="create-tar-dist"/>
+	</target>
+	
+	<target name="create-zip-dist">
+		<zip zipfile="${dist.dir}/${dist.zip}">
+	         <zipfileset dir="${tutorials.dir}" prefix="source">
+	         	<exclude name="**/target/**/*"/>
+	         </zipfileset>
+			
+			<zipfileset dir="${guide.dir}/target/docbook" prefix="guide">
+				<include name="html/**/*"/>
+				<include name="html_single/**/*"/>
+			</zipfileset>
+		      	
+		</zip>
+	</target>
+	
+	<target name="create-tar-dist">
+		<tar destfile="${dist.dir}/${dist.tar}" compression="gzip">
+			<tarfileset dir="${tutorials.dir}" prefix="source">
+				<exclude name="**/target/**/*"/>
+			</tarfileset>
+			
+			<tarfileset dir="${guide.dir}/target/docbook" prefix="guide">
+				<include name="html/**/*"/>
+				<include name="html_single/**/*"/>
+			</tarfileset>
+		</tar>
+	
+	</target>
+	
+	
+	
+	<target name="clean">
+		<delete file="${dist.dir}/${dist.tar}"/>
+		<delete file="${dist.dir}/${dist.zip}"/>
+	</target>
+
+</project>


Property changes on: projects/ejb3/trunk/docs/tutorial/dist/build-dist.xml
___________________________________________________________________
Name: svn:executable
   + *

Modified: projects/ejb3/trunk/docs/tutorial/guide/en/modules/stateful.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/guide/en/modules/stateful.xml	2009-01-28 09:16:19 UTC (rev 83546)
+++ projects/ejb3/trunk/docs/tutorial/guide/en/modules/stateful.xml	2009-01-28 09:42:31 UTC (rev 83547)
@@ -18,9 +18,9 @@
 	</para>
 
 	<para>
-		<sect4>
+		<sect5>
 @Remove
-		</sect4>
+		</sect5>
 	Take another look at <literal>org.jboss.tutorial.stateful.bean.ShoppingCartBean</literal>. 
 	Look for the method annotated as @Remove. Instead of explicitly calling EJBObject.remove() in your applications and thus polluting it 
 	further with J2EE specific code, any method tagged with @Remove will cause the stateful bean instance to be removed from the container 
@@ -28,17 +28,17 @@
 	</para>
 
 	<para>
-		<sect4>
+		<sect5>
 JNDI Bindings
-		</sect4>
+		</sect5>
 	The ShoppingCartBean will have its remote interface bound in JNDI, by default, under the ejbName/local and/or ejbName/remote for 
 	the local and remote interfaces, respectively.
 	</para>
 
 	<para>
-		<sect4>
+		<sect5>
 Client
-		</sect4>
+		</sect5>
 	Open up <literal>org.jboss.tutorial.stateful.client.Client</literal>.
   	You'll see that it looks up the stateful bean under "ejbName/remote". Also notice that there is no Home interface and you can begin 
   	executing on the stateful bean right away. When you access the bean in JNDI, an instance of the stateful bean will be created on the server. 
@@ -47,9 +47,9 @@
 	</para>
 
 	<para>
-		<sect4>
+		<sect5>
 Building and Running
-		</sect4>
+		</sect5>
 		
 		<note>
 			<para>

Modified: projects/ejb3/trunk/docs/tutorial/guide/en/modules/stateless.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/guide/en/modules/stateless.xml	2009-01-28 09:16:19 UTC (rev 83546)
+++ projects/ejb3/trunk/docs/tutorial/guide/en/modules/stateless.xml	2009-01-28 09:42:31 UTC (rev 83547)
@@ -28,17 +28,17 @@
 	</para>
 
 	<para>
-		<sect4>
+		<sect5>
 JNDI Bindings
-		</sect4>
+		</sect5>
 The Calculator bean will have two JNDI bindings for the remote and Local interface.  
 By default, JBoss will use ejbName/local and ejbName/remote for the local and remote interfaces, respectively.
 	</para>
 
 	<para>
-		<sect4>
+		<sect5>
 Client
-		</sect4>
+		</sect5>
 Open up <literal>org.jboss.tutorial.stateless.client.Client</literal>.
 You'll see that it looks up the stateless bean under "ejbName/remote". Also notice that there is no Home interface and 
 you can begin executing on the stateless bean right away.
@@ -46,9 +46,9 @@
 	</para>
 
 	<para>
-		<sect4>
+		<sect5>
 Building and Running
-		</sect4>
+		</sect5>
 		
 		<note>
 			<para>

Modified: projects/ejb3/trunk/docs/tutorial/pom.xml
===================================================================
--- projects/ejb3/trunk/docs/tutorial/pom.xml	2009-01-28 09:16:19 UTC (rev 83546)
+++ projects/ejb3/trunk/docs/tutorial/pom.xml	2009-01-28 09:42:31 UTC (rev 83547)
@@ -44,6 +44,8 @@
   <description>
     Tutorial for JBoss EJB3
   </description>
+  
+  
 
 	<build>
 		<plugins>
@@ -72,6 +74,7 @@
 		          </execution>
         		</executions>
       		</plugin>
+      		      		
       	</plugins>
 	</build>
 	
@@ -90,7 +93,8 @@
 
 			<!-- The tutorials go here -->
  
-			<module>asynch</module>
+			
+		   	<module>asynch</module> 	
 		  	<module>blob</module>
 		  	<module>cachedentity</module>
 		 	<module>callbacks</module>
@@ -103,6 +107,7 @@
 		 	<module>enterprise_app_ejb_injection</module>
 			<module>entity</module>
 			<module>extended_pc</module>
+			<module>guide</module>
 			<module>injection</module>
 			<module>interceptor</module>  
 			<module>jboss_deployment_descriptor</module>
@@ -134,6 +139,8 @@
 			<module>shutdown</module>
   
   </modules>
+
+
 	
   
     




More information about the jboss-cvs-commits mailing list