Project Properties






In this section you will learn how to set up project properties.
This section covers the following elements of the tutorial:
  1. Add required Jars
  2. Set up J2ee profile properties
You first need to add Jars then set up J2ee profile.

1. Add required Jars


Select the Tutorial project in the Package Explorer.
By right-clicking open the popup menu->Properties->Java Build Path and select Libraries in the upper right pane.
We need to add the servlets and EJB interfaces Jar files to the project classpath.
These libraries can be found in the lib directory of %ECLIPSE_HOME%/plugins/com.omondo.uml.enterprise.
Click on the Add External JARs... button select the lib directory of %ECLIPSE_HOME%/plugins/com.omondo.uml.enterprise.


 


Select Servlets and EJB interfaces Jar files.


 


The selected Servlets and EJB interfaces Jar files have been added to your project.





2. Set up J2ee profile properties


J2ee profiles will only be activated in your diagrams if you select them in the Project properties window.
By right-clicking on a project in the Package Explorer window, open the popup menu->Properties->UML Profiles.





Select J2EE Profile in the right pane.





Open the J2ee Profile submenu and add the Doclets to use.
It is important to understand that each doclet has its own sub tasks and each sub task has its own properties, which can be customized.
We need to select what kind of Doclet we are going to use.
For more information, have a look at http://xdoclet.sourceforge.net
We add webdoclet.





Click on webdoclet and select properties and values as shown in the following picture:





Once you select a Doclet, you can add new sub tasks to this Doclet. These sub tasks are specific to each Doclet.
Select the Doclet in the menu and right click to open the popup menu->add sub task->select a task
We select webdoclet and add a sub task named deploymentdescriptor.





Add another sub task and enter the correct value as shown in the following picture:





Add fileset sub task.





Add jbosswebxml sub task.





Enter the jbosswebxml value of the version property.





Add ejbdoclet.





Add deploymentdescriptor sub task to ejbdoclet.





Add fileset sub task to ejbdoclet.





Add homeinterface sub task to ejbdoclet.





Add jboss sub task to ejbdoclet.





Enter the value of the version property.





Add packageSubstitution sub task to ejbdoclet.





Enter the packageSubstitutionvalue of the packages, substituteWith property.





Add remoteinterface sub task to ejbdoclet.





Check that everything is configured as shown in the following window.








 
Last update Sat Nov 29 11:19:25 CEST 2003 Valid XHTML 1.0 Valid CSS All text, graphics © 2003 by Omondo