From: Andrew S. <ste...@us...> - 2005-12-12 00:32:24
|
On Sun, 2005-12-11 at 13:44, nikhil wrote: > I have been spending some time trying to figure out why xdoclet does > not generate anything w. regard to the EJBdoclet task. ... > <target name="ejbdoclet" depends="prepare"> > <ejbdoclet > destdir="${gen-src.dir}" > excludedtags="@version,@author" > verbose="true" > ejbspec="2.0"> > <fileset dir="${application.dir}"> > <include name="/ejb/*Bean.java"/> > </fileset> Are your classes ejb.SomethingBean, and all in the same package? If not, your fileset is wrong. For starters, you need to include "**" rather than "*" if you want it to match more than one directory level (that's standard Ant behaviour). Secondly, you need to make sure the fileset it based at the root of your package hierarchy, else the parser will think your classes are invalid (since they're not in the correct location based on their package name) and ignore them. Try <fileset dir="${application.dir}/ejb"> <include name="**/*Bean.java"/> </fileset> instead. > <homeinterface/> > <remoteinterface/> > <deploymentdescriptor > destdir="${gen-src.ejb.meta-inf.dir}"/> > </ejbdoclet> > </target> ... > <----------------- Source Hello World Bean file ----------------> > /* > * TSM - Testing Service Manager Version @version > * > * Copyright 2005 Applied Tehcnology Solutions, Inc. > * Bloomfield Twp, Michigan 48302, U.S.A. > * All rights reserved. > */ > package com.aptsi.applications.tsm.ejb; Thought so. You need your fileset to be rooted at the directory containing "com". Andrew. |