Justin Akehurst wrote:

On Wed, 9 Jul 2003, Aslak Helles�y wrote:



Justin Akehurst wrote:



When we run ant against our code, XDoclet is giving us this warning:

[ejbdoclet] (xjavadoc.XJavaDoc                   889 ) Ignoring class
com.versaly.ejb.session.PhoneServices in
/home/akehurst/workspace/Versaly_PocketNet/WEB-INF/classes/com/versaly/ejb/session/PhoneServices.java.
It was generated (Tue Jul 08 15:28:36 PDT 2003) after XJavaDoc's timestamp
was reset (Tue Jul 08 06:33:08 PDT 2003)




This happens when XJavaDoc finds a source file whose timestamp is fresher than the time XJavaDoc was started. I.e. generated after XJavaDoc was started. XjavaDoc ignores such sources to avoid predictable behaviour.

This happens when:
a) You're telling XDoclet to generate sources into the same place where your @tagged sources are. (Don't do that!)
b) Some of your files have an incorrect (future) timestamp because some computer clock got messed up.


Looking at the timestamps, it smells like b) to me.



It might be a).
We have our entity bean classes in com/versaly/ejb/entity/*Bean.java and
our session beans in com/versaly/ejb/session/*Services.java


It's not a package issue, but rather about what root folder you use for your sources...

We are having XDoclet create the Local and LocalHome classes in the same
directory that the @tagged files are in (com/versaly/ejb/entity and
com/versaly/ejb/session).

What is commonly done in this case?


Generate into a different *root* directory and tell javac to compile the two directories.

Like this:

/dev/myproject/src/java/ -> your @tagged entity and session beans here, in whatever package.
/dev/myproject/target/gen-src/ -> tell XDoclet to generate here.
/dev/myproject/target/classes/ -> tell Javac to compilet the above two into here.


As a side note, I assume you're using an SCM (like CVS or other). It's strongly discouraged to keep generated files (just like compiled classes) under the SCM.

Aslak

-Justin



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user








-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to