Thank you for the example Ryan.

I was able to generate the interfaces now, that have been put into
target/xdoclet/ejbdoclet.

However, when I try to run ejbdoclet with the following line at the end:

<path
     id="ejbdoclet.java.compile.src.set"
     location="${maven.xdoclet.ejbdoclet.destDir}" />
    <maven:addPath
     id="maven.compile.src.set"
     refid="ejbdoclet.java.compile.src.set" />

Maven ends up with the following error:

BUILD FAILED
File...... file:/D:/Projects/jemos-xmlop-1.0/
Element... maven:addPath
Line...... 122
Column.... 47
java.lang.NullPointerException
Total time: 3 seconds
Finished at: Mon Mar 15 21:54:18 GMT 2004

I defined the following properties in my project.properties:

#---------------------------------------------------------------------------
-----------------
#  P R O P E R T I E S   U S E D   B Y   X D O C L E T
|
#---------------------------------------------------------------------------
-----------------
maven.xdoclet.force=false
maven.xdoclet.ejbdoclet.srcDir=${basedir}/src/java
maven.xdoclet.ejbdoclet.destDir=${basedir}/target/xdoclet/ejbdoclet

# !!ADDITION NOT IN SAMPLE DIST: required for the ejb plugin to see the src
maven.ejb.src=${maven.xdoclet.ejbdoclet.srcDir}

Another couple of questions:

Now I've got my EJB implementation classes under:

/src
    /java
        /mypackage

And the Interfaces + deployment descriptors under:

/target/xdoclet/ejbdoclet/mypackage

1) How could I compile telling the compiler to consider both locations?
2) I suppose I should use the ejb plugin to create the ejb. How could I
specify to include classes from /src/java + /target/xdoclet?

Thank you,

Marco






-------------------------------------------------------
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