Servlister Sample Output

In

D:\jshift\j2ee\web>dir /S
 Volume in drive D is New Volume
 Volume Serial Number is A4A3-D05B

 Directory of D:\jshift\j2ee\web

02/05/2003  04:22a      <DIR>          .
02/05/2003  04:22a      <DIR>          ..
01/31/2003  01:36a                  63 index.html
01/31/2003  01:36a                 852 index.jsp
02/05/2003  04:22a      <DIR>          sdfsdf
01/31/2003  01:36a                  64 vssver.scc
               3 File(s)            979 bytes

 Directory of D:\jshift\j2ee\web\sdfsdf

02/05/2003  04:22a      <DIR>          .
02/05/2003  04:22a      <DIR>          ..
02/05/2003  04:22a                   0 sdffds.jsp
               1 File(s)              0 bytes

     Total Files Listed:
               4 File(s)            979 bytes
               5 Dir(s)  20,182,892,544 bytes free
<target name="webdoclet">
	<taskdef
	 name="servlister"
	 classname="com.jshift.servlister.Servlister"
	 classpath="../lib"
	/>
	<servlister outputFile="${webMergeDir}/servlets.xml" webDir="${webDir}">
		<fileset dir="${webDir}"><include name="**/*.jsp"/></fileset>
	</servlister>

	<taskdef
	 name="webdoclet"
	 classname="xdoclet.modules.web.WebDocletTask"
	 classpathref="xdocletlib"
	/>
	<webdoclet destdir="." excludedtags="@version,@author">
		<deploymentdescriptor
		 schema="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
		 displayname="CCU App"
		 description="Component Conversion Utility"
		 mergedir="${webMergeDir}"
		>
			<welcomefile file="index.html"/>
			<welcomefile file="index.jsp"/>
		</deploymentdescriptor>

		<fileset dir="${javaDir}">
			<include name="**/*.java"/>
		</fileset>
	</webdoclet>
</target>

Out

<servlet>
	<display-name>index</display-name>
	<servlet-name>index</servlet-name>
	<jsp-file>/index.jsp</jsp-file>
</servlet>
<servlet>
	<display-name>sdfsdf-sdffds</display-name>
	<servlet-name>sdfsdf.sdffds</servlet-name>
	<jsp-file>/sdfsdf/sdffds.jsp</jsp-file>
</servlet>

As seen in Sun Reference Implementation Deploytool: Deploytool