On Tue, 2004-03-16 at 14:04, Clifton C. Craig wrote:
> Actually they are. See below:

Then your fileset is wrong (which is what I was hinting at, but
obviously too subtlely).

>             <fileset dir="${src.dir}" includes="*Bean.java"/>
will only pick up the classes named *Bean.java that are in src.dir
itself.  If you want it to include the subdirectories you need to use
"**/*Bean.java".  See
http://ant.apache.org/manual/CoreTypes/fileset.html for more details.


Andrew.

>             <deploymentdescriptor destdir="${src.dir}/META-INF"/>
>             <jonas version="3.0" destdir="${src.dir}/META-INF"/>
>         </ejbdoclet>
>     </target>
>    
>     <target name="compile" depends="generate">
>         <javac srcdir="${src.dir}" destdir="${build.dir}"
>         classpathref="compile.path"/>
>     </target>
>    
>     <target name="build" depends="compile">
>         <taskdef name="ejbjar"
>            classname="org.objectweb.jonas.ant.EjbJar"
>            classpath="${appserver.root}/lib/common/ow_jonas_ant.jar" />
>         <ejbjar srcdir="${build.dir}"
>                 dependency="none"
>                 naming="basejarname"
>                 basejarname="AddressEMBean"
>                 descriptordir="${src.dir}/META-INF">
>             <classpath refid="compile.path"/>
>             <jonas destdir="${build.dir}"
>                jonasroot="${appserver.root}"/>
>             <include name="*ejb-jar.xml"/>
>             <exclude name="*jonas*.xml"/>
>         </ejbjar>
>     </target>
> </project>
> 
> Note the build target is not called. I haven't gotten that far with my 
> recent example. I did get that far with my prior example that did not 
> seem to have a problem generating the necessary files. Thank you for all 
> the replies but I'm still having trouble.
> 
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems -  A Division of GBG
> 2101 Embassy Drive
> Lancaster, PA  17603
> 
> Phone:  717-295-7977 ext. 621
> Fax:  717-295-7683
> [EMAIL PROTECTED]
> [EMAIL PROTECTED] 
> 
> 
> 
> Andrew Stevens wrote:
> 
> >On Mon, 2004-03-15 at 16:08, Clifton C. Craig wrote:
> >  
> >
> >>I am a beginner trying to get off the ground with XDoclet. I have, so 
> >>far, managed to get a basic stateless bean deployed onto Jonas with 
> >>little trouble. I am now trying to take what I learned and apply it to 
> >>our project here which involves several hundred EJBs and I am 
> >>experiencing problems. Namely the generated deployment descriptors are 
> >>    
> >>
> >...
> >  
> >
> >>        <ejbdoclet
> >>        destdir="${src.dir}"
> >>        excludedtags="@version,@author"
> >>        force="true"
> >>        verbose="true"
> >>        ejbspec="2.0">
> >>            <fileset dir="${src.dir}" includes="*Bean.java"/>
> >>    
> >>
> >                                                ^^^^
> >Your beans aren't in a package?
> >
> >
> >Andrew.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to