Re: @ejb.ejb-ref and XDoclet searching classes

Chema <[email protected]> Fri, 15 Dec 2006 14:53:39 +0100
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
Thanks, but I guess dont, althought that looked like good :-(

I tried in MYPROJECT1's xdoclet-build.xml :

<path id="xdoclet.classpath">
<pathelement location="../MYPROJECT2/ejb/src"/>
<path refid="project.classpath"/>
<fileset dir="${xdoclet.basedir}">
<include name="*.jar"/>
<exclude name="xdoclet-module-jboss-net-*.jar"/>
</fileset>
<fileset dir="${xdoclet.basedir}">
<include name="xdoclet-module-jboss-net-${jboss.net.version}*.jar"/>
</fileset>
</path>


But doesn't work.
Indeed, deploymentdescriptor tag is inside

<taskdef classpathref="xdoclet.classpath" classname="
xdoclet.modules.ejb.EjbDocletTask" name="ejbdoclet"/>

Look ' classpathref="xdoclet.classpath" ' . It should be works !!

When you say "typically xdoclet  lokos in his classpath" , are you sure ?
where does XDoclet look for source code to guess class names ?

Thanks







2006/12/15, Konstantin Priblouda <[email protected]>:
>
>
> --- Chema <[email protected]> wrote:
>
> > Hello:
> >
> > I'm working with Eclipse + JBossIDE ( XDoclet 1.2.3
> > )
> >
> > I've got a single Java project ( EJB components )
> > and I would like to split
> > it in two.
> > Components at one will have references to another
> > one.
> >
> > Now , with only one project, I using @ejb.ejb-ref
> > tag , and works fine
> > because all classes are in same project.
> >
> > But with two differents projects, @ejb.ejb-ref
> > doesnt work because it just
> > search classes in the same project.
> > With @ejb.ejb-external-ref tag  works fine, but I'd
> > like  I haven't to
> > change all Java classes (.java) and have to define ,
> > explicitly, qualified name of Java classes.
> > Is there any way to tell to XDoclet the classpath
> > where searching classes ,
> > so,
> > automatically get qualified name of classes for
> > referenced components ?
> > Is @ejb.ejb-external-ref tag the only one solution ?
>
>
> typically xdoclet  lokos in his classpath if
> it can find necessary classes. so adding external
> classes to ant target classpath should
> be sufficient.
>
> regards,
>
> ----[ Konstantin Pribluda http://www.pribluda.de ]----------------
> Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
> check it out: http://xdoclet.codehaus.org
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user