At the command line, go to JBOSS_DIST/doc/examples/gettingstarted/seamejb3 directory. There you will see a build.xml file. This is our Ant build script for compiling and packaging the archives. To build the application, just type the command ant and your output should look like this:
[vrenish@vinux jsfejb3]$ ant
Buildfile: build.xml
compile:
[mkdir] Created dir:
/home/vrenish/jboss-eap-4.3/doc/examples/gettingstarted/seamejb3/build/classes
[javac] Compiling 3 source files to
/home/vrenish/jboss-eap-4.3/doc/examples/gettingstarted/seamejb3/build/classes
[javac] Note: /home/vrenish/jboss-eap-4.3/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/vrenish/jboss-eap-4.3/doc/examples/gettingstarted/seamejb3/build/jars
[war] Building war: /home/vrenish/jboss-eap-4.3/doc/examples/gettingstarted/seamejb3/build/jars/app. war
ejb3jar:
[jar] Building jar: /home/vrenish/jboss-eap-4.3/doc/examples/gettingstarted/seamejb3/build/jars/app. jar
ear:
[ear] Building ear:
/home/vrenish/jboss-eap-4.3/doc/examples/gettingstarted/seamejb3/build/jars/seam ejb3.ear
main:
BUILD SUCCESSFUL
Total time: 7 seconds
If you get the BUILD SUCCESSFUL message, you will find a newly created build directory with 2 sub-directories in it:
classes: containing the compiled class files.
jars: containing three archives - app.jar, app.war and seamejb3.ear.
app.jar
app.war
seamejb3.ear
For more details on these files and their contents refer to Section 5.4, “Configuration and Packaging”.