Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
compilation.
If all of this talk about Ant is just not making sense, that is, you are an Ant neophyte,
then I have the perfect thing for you. Please read this sample chapter from
Mastering
Tomcat on Developing Web Components with Ant
(by yours truly) at the following link:
"http://www.rickhightower.com/AntPrimer.pdf"
. It is an excellent primer on using Ant.
Defining the webdoclet task
In order to run the
webdoclet
task, you must define the XDoclet
webdoclet
task with
as taskdef in your ant build file as follows:
classname="xdoclet.modules.web.WebDocletTask"
classpathref="xdocpath"
/>
You have to do this because XDoclet is not a built in Ant task. Notice the class name of
the Ant task handler is
xdoclet.modules.web.WebDocletTask
. Also notice that
you reference a predefined classpath called
xdocpath
. The
xdocpath
was defined
earlier and it uses the
xdocletlib
property that was setup earlier as follows:
The taskdef must have the XDoclet jar files in its classpath as well as the J2EE lib
directories. Once you have defined the
webdoclet
taskdef, you can use the
webdoclet
task.
You can find these tasks and tags in the ant build file called build.xml.
Using the webdoclet task
Enhance J2EE component reuse with XDoclets
Page 17 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