Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

6.5. Building The Application

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”.

 
 
  Published under the terms of the Open Publication License Design by Interspire