Struts + XDoclet (webdoclet) and integration with Eclipse

admin 5

XDoclet (webdoclet) and Ant

Running XDoclet from Ant is clearly described in XDoclet in Action by Craig Walls and Norman Richards. They invoke the “generate-web” target from the main build.xml with <ant antfile="build-webgen.xml" target="generate-web" />, hence the relevant code is found in their build-webgen.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<project name="Blog" default="generateWeb" basedir=".">
<path id="xdoclet.lib.path">
	<fileset dir="${lib.dir}" includes="*.jar"/>
	<fileset dir="${xdoclet.lib.dir}" includes="*.jar"/>
<target name="generate-web">
  <taskdef name="webdoclet"
  <!-- Generate servlet and JSP Tag "stuff" -->
  <webdoclet destdir="${gen.src.dir}" mergeDir="${merge.dir}">
    <fileset dir="${src.dir}">
      <include name="**/*" />
      <include name="**/*" />
      <include name="**/*" />
      <include name="**/*" />
      <include name="**/*" />
      <include name="**/*" />
    <fileset dir="${gen.src.dir}">
      <include name="**/*" />
      distributable="false" />
      destDir="${web.deployment.dir}" />
      destDir="${web.deployment.dir}" />
      destDir="${web.deployment.dir}" />

5 thoughts on “Struts + XDoclet (webdoclet) and integration with Eclipse

  1. Pingback: Tripods For Less
  2. Hi,
    I have some problem, how to generate tiles-def.xml using Xdoclet1.2.
    Please give me any suggestion regarding this issue ASAP.

Comments are closed.

Next Post

KC SDPL planning

In the next 6 to 12 months Knowledge Center Server Development & Programming Languages intends to deal with the themes listed below. The aim is to present at least a large part of those themes in various attractive ways such as presentations, work shops and discussions.