[jboss-cvs] JBossAS SVN: r92601 - projects/docs/enterprise/5.0/Getting_Started_Guide/en-US.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Aug 20 00:30:14 EDT 2009


Author: irooskov at redhat.com
Date: 2009-08-20 00:30:14 -0400 (Thu, 20 Aug 2009)
New Revision: 92601

Modified:
   projects/docs/enterprise/5.0/Getting_Started_Guide/en-US/Using_Seam.xml
Log:
updated section with example building put back in


Modified: projects/docs/enterprise/5.0/Getting_Started_Guide/en-US/Using_Seam.xml
===================================================================
--- projects/docs/enterprise/5.0/Getting_Started_Guide/en-US/Using_Seam.xml	2009-08-20 04:13:59 UTC (rev 92600)
+++ projects/docs/enterprise/5.0/Getting_Started_Guide/en-US/Using_Seam.xml	2009-08-20 04:30:14 UTC (rev 92601)
@@ -361,7 +361,73 @@
 			The functionality that allows the edit page to be called with a parameter in this way is implemented through <literal>pages.xml</literal>. Let's have a look at the  <literal>pages.xml</literal> file and how it is used by Seam applications.
 		</para>
 	</section>
-	
+	<section id="Using_Seam_Building_Apps">
+		<title>Building The Application</title>
+		<para>
+			At the command line, go to <literal>JBOSS_DIST/doc/examples/gettingstarted/seamejb3</literal> directory. There you will see a <literal>build.xml</literal> file. This is our Ant build script for compiling and packaging the archives. To build the application, just type the command <literal>ant</literal> and your output should look like this:
+<programlisting>
+[&lt;user&gt;@&lt;computer&gt; jsfejb3]$ ant
+
+Buildfile: build.xml
+
+compile:
+[mkdir] Created dir: 
+/home/&lt;user&gt;/jboss-eap-5.0/doc/examples/gettingstarted/seamejb3/build/classes
+[javac] Compiling 3 source files to 
+/home/&lt;user&gt;/jboss-eap-5.0/doc/examples/gettingstarted/seamejb3/build/classes
+[javac] Note: /home/&lt;user&gt;/jboss-eap-5.0/doc/examples/gettingstarted/seamejb3/src/TodoDao.java 
+uses unchecked or unsafe operations.
+[javac] Note: Recompile with -Xlint:unchecked for details.
+
+war:
+[mkdir] Created dir: /home/&lt;user&gt;/jboss-eap-5.0/doc/examples/gettingstarted/seamejb3/build/jars
+[war] Building war: /home/&lt;user&gt;/jboss-eap-5.0/doc/examples/gettingstarted/seamejb3/build/jars/app. war
+
+ejb3jar:
+[jar] Building jar: /home/&lt;user&gt;/jboss-eap-5.0/doc/examples/gettingstarted/seamejb3/build/jars/app. jar
+
+ear:
+[ear] Building ear: 
+/home/&lt;user&gt;/jboss-eap-5.0/doc/examples/gettingstarted/seamejb3/build/jars/seam ejb3.ear
+
+main:
+
+BUILD SUCCESSFUL
+Total time: 7 seconds
+</programlisting>
+		</para>
+		<para>
+			If you get the <literal>BUILD SUCCESSFUL</literal> message, you will find a newly created <literal>build</literal> directory with two sub-directories in it: <itemizedlist>
+				<listitem>
+					<para>
+						<emphasis role="bold">classes</emphasis>: containing the compiled class files.
+					</para>
+				</listitem>
+				<listitem>
+					<para>
+						<emphasis role="bold">jars</emphasis>: containing three archives - <literal>app.jar</literal>, <literal>app.war</literal> and <literal>seamejb3.ear</literal>. <itemizedlist>
+							<listitem>
+								<para>
+									app.jar
+								</para>
+							</listitem>
+							<listitem>
+								<para>
+									app.war
+								</para>
+							</listitem>
+							<listitem>
+								<para>
+									seamejb3.ear
+								</para>
+							</listitem>
+						</itemizedlist>
+						For more details on these files and their contents refer to <xref linkend="Sample_JSF_EJB3_Application-Configuration_and_Packaging"/>.
+					</para>
+				</listitem>
+			</itemizedlist>
+		</para>
+	</section>
 	<section id="Using_Seam_XML_Files">
 		<title>
 			Xml Files




More information about the jboss-cvs-commits mailing list