Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
5. Configure the example to find your application server s lib directory
Installing XDoclet
Download XDoclet 1.2 or higher.
Go to the files section of the XDoclet project on
sourceforge.
Look for the file that looks like
xdoclet bin 1.2xxx.zip
. Click on it.
Unzip the zip file in to a subdirectory called
xdoclet
off of your root directory. You can
unzip in another place if you like.
I ve included an example
build.xml
file that imports a properties file. The properties file
sets all of the properties for you with few external references. If you did not install
XDoclet in the root, which is very likely if you are using Unix, you will need to set the
xdocletlib
property in the
build.properties
file (More on this in the next slide).
Install and configure the example
You can download the
example as a zip file
. Unzip this file in your root directory. It will
create a folder called
tutorials
.
If you are using the example, and you installed XDoclet in another location then all you
have to do is modify the
xdocletlib
variable in the
build.properties
file
(
tutorials\J2EEXdoclet\webdoclet\build.properites
).
Here is the listing of the
build.properties
file:
################ Change These for your environment ###################
# This is where you installed xdoclet
xdocletlib=/xdoclet/lib
# Change these for your app servers.
# This is the deployment directory.
webapps=/tomcat4/webapps
# This lib is where the ant script expects to find the j2ee jar files.
lib=/tomcat4/common/lib
# You should not have to change these
src=./src
WEBINF=./web/WEB INF
dest=${WEBINF}/classes
docroot=./web
Enhance J2EE component reuse with XDoclets
Page 15 of 49






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

j2ee web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved