On Wed, 9 Jul 2003, Aslak Helles�y wrote:It's not a package issue, but rather about what root folder you use for your sources...
Justin Akehurst wrote:
When we run ant against our code, XDoclet is giving us this warning: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.
[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:
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
Generate into a different *root* directory and tell javac to compile the two directories.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?
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
