Hi, 

>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of 
>William I. Zumwalt
>Sent: Thursday, September 02, 2004 5:34 PM
>To: [EMAIL PROTECTED]
>Subject: [Xdoclet-user] ejbdoclet tags to generate interfaces
>
>I'm trying to figure out what's wrong w/ my build.xml so that 
>it generates my home and remote interfaces.
>Anything I add or delete from this section of my build.xml 
>changes the output of my build so I know it's beign read, but 
>just not the EJB's I guess. I've posted my comments within the 
>script below ...
>
>Any advice much appreciated.
>
>--- my build.xml
>
> <target name="ejbdoclet" depends="select-platform">
>                                                      
>                         
>        <taskdef
>            name="ejbdoclet"
>           
>classname="xdoclet.modules.ejb.EjbDocletTask"
>            classpathref="classpath.ejbDoclet" />
>
><!-- proj.src points to ./src -->
>        <echo>Source:   ${proj.src}</echo>
>
><!-- src.ejb points to
>./src/com/comp/management/ejb/entities/interfaces
>this directory already exists and is where I expect my 
>generated files to be placed 
>-->
>        <echo>Dest:     ${src.ejb}/interfaces</echo>
>
><!-- my ejb-jar.xml and jboss.xml files (albeit empty) are placed here 
>-->
>        <echo>MetaDest: ${proj.meta-inf}</echo>
>                                                      
>                         
>        <tstamp>
>            <format property="TODAY"
>pattern="d-MM-yy"/>
>        </tstamp>
>                                                      
>                         

Can you try adding a 
        <mkdir dir="${src.ejb}/interfacces"/> 
(or such) here?

>        <ejbdoclet
>            destdir="${src.ejb}/interfaces"

This will put the generated files in
./src/com/comp/management/ejb/entities/interfaces/interfaces

>            excludedtags="@version,@author"
>            addedtags="@xdoclet-generated at ${TODAY}"
>            ejbspec="2.0">
>        
><!-- Isn't this recursive under this path? How hard can this 
>be to find my ejb's? AFAIK, this is the only place that 
>directly impacts whether if find my ejb's or not. proj.src = 
>./src and I expect it to go down about 5-7 dir levels under 
>./src and match all files w/ "*Bean.java". I've even tried 
>absolute path names here.
>-->
>
>            <fileset dir="${proj.src}">
>                <include name="**/*Bean.java"/>
>            </fileset>

This should be ok.

>        
>            <packageSubstitution packages="ejb"
>substituteWith="interfaces"/>
>        
>            <remoteinterface pattern="{0}Remote"/>
>            <localinterface pattern="{0}"/>
>            <homeinterface/>
>            <localhomeinterface/>
>             
>            <dataobject/>
>            <valueobject/>
><!-- Does it matter if I dont' currently have one or the other 
>of CMP or BMP EJB's, or even PKey's? I'm just testing w/ a 
>single BMP EJB right now.
>-->            

No problem here.

>            <entitypk/>
>            <entitybmp/>
>            <entitycmp/>
>             
>            <session/>
>             
>            <deploymentdescriptor
>                destdir="${proj.meta-inf}"/>
>                
>            <jboss
>                version="3.2"
>                destdir="${proj.meta-inf}"
>                datasource="java:/PostgresDS"
>                typemapping="PostgreSQL"/>
>                
>        </ejbdoclet>
> </target>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection 
>around http://mail.yahoo.com 
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
>_______________________________________________
>xdoclet-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to