On Sat, 2003-11-08 at 14:32, Chevallier Christophe wrote:
> > From: Andrew Stevens <[EMAIL PROTECTED]>
> >
> > On Fri, 2003-11-07 at 23:33, Chevallier Christophe wrote:
> > > Hi,
> > > First of all I'm very happy to be able to use xdoclet, I thing this
> > > project it's very interesting for the java community, thanks to the
> > > authors.
> > > But I have a big problem, lets me explain to us :
> > > I have installed xdoclet xdoclet-bin-1.2b3.tgz on my Mandrake 9.1
> > > distribution.
> > > I have untar all files and I want to try the samples. but each time
> > > I'm doing "ant" i have the same message :
> > >
> > > Buildfile: build.xml
> > >
> > > init:
> > >
> > > prepare:
> > >
> > > ejbdoclet:
> > > [echo] +---------------------------------------------------+
> > > [echo] | |
> > > [echo] | R U N N I N G E J B D O C L E T |
> > > [echo] | |
> > > [echo] +---------------------------------------------------+
> > >
> > > BUILD FAILED
> > > file:/home/download/xdoclet/ok/samples/build.xml:113: The <ejbdoclet>
> > > task doesn't support the nested "packagesubstitution" element.
> > >
> > > I have try to create another build file for my specific project
> > > because I want to use xdoclet to generate the hibernate
> > > configuration's files.
> > >
> > > When I want ant I have exactly the same king of message :hibernate:
> > > [echo] +---------------------------------------------------+
> > > [echo] | |
> > > [echo] | R U N N I N G HIBERNATE |
> > > [echo] | |
> > > [echo] +---------------------------------------------------+
> > >
> > > BUILD FAILED
> > > file:/home/ccr/Tourism/build.xml:279: The <hibernatedoclet> task
> > > doesn't support the nested "hibernate" element.
> > > At the beginning I thought I have the wrong version of ant, but wasn't
> > > because I have the 1.5.3.
> > > I'm using the jre 1.4.183 from sun.
> > >
> > > Does some one have an idea ? I have try to found in the archive but
> > > this action unsuccessful.
> > > Thank you for your response.
> > > Christophe.
> >
> > Can you show us the relevant bits from your build.xml (taskdefs, the
> > *doclet tasks, and any path definitions that they're referencing)?
> >
> > Any time a task "doesn't support the nested" subtask or other elements,
> > chances are it's a classpath problem. Have you had an older version of
> > xdoclet installed, which it might be picking up instead? Are you using
> > a CLASSPATH environment variable? Have you added any extra jars into
> > Ant's lib directory besides the ones that came with it?
> >
> >
> > Andrew.
>
> Thanks for your answer,here you can found the specifics part of my build.xml.
>
> for the declaration
>
> <property name="lib.dir" value="lib"/>
> <property name="src.dir" value="src"/>
> <property name="classes.dir" value="classes"/>
> <property name="meta-inf.dir" value="${src.dir}/META-INF"/>
> <property name="doc.dir" value="doc"/>
> <property name="hibernate.lib.dir" value="${basedir}/lib/hibernate"/>
> <property name="jboss.dir" value="${basedir}/lib/jboss"/>
> <property name="xdoclet.lib.dir" value="${basedir}/lib/xdoclet"/>
> <property name="xdoclet.force" value="false"/>
> <property name="gen-src.dir" value="gen-src"/>
> <property name="generated.home" value="${gen-src.dir}"/>
> <!-- <property name="ressources.dir" value="ressources"/> -->
> <property name="build.dir" value="build"/>
> <property name="jar.dir" value="jar"/>
> <property name="jar.file" value="hibernate.jar"/>
>
> for the lib path
>
> <path id="project.lib">
> <fileset dir="${lib.dir}">
> <include name="*.jar"/>
> </fileset>
> <fileset dir="${xdoclet.lib.dir}">
> <include name="**/*.jar"/>
> </fileset>
> <fileset dir="${jboss.dir}/client">
> <include name="**/*.jar"/>
> </fileset>
> <fileset dir="${hibernate.lib.dir}">
> <include name="**/*.jar"/>
> </fileset>
> </path>
>
> for taskef
>
> <taskdef
> name="ejbdoclet"
> classname="xdoclet.modules.ejb.EjbDocletTask"
> classpathref="project.lib"/>
>
> <taskdef
> name="hibernatedoclet"
> classname="xdoclet.modules.hibernate.HibernateDocletTask"
> classpathref="project.lib"/>
>
> and my hibernate target
>
> <target name="hibernate" depends="prepare">
>
> <echo>+---------------------------------------------------+</echo>
> <echo>| |</echo>
> <echo>| R U N N I N G HIBERNATE |</echo>
> <echo>| |</echo>
> <echo>+---------------------------------------------------+</echo>
> <hibernatedoclet
> destdir="${generated.home}"
> excludedtags="@version,@author,@todo"
> force="${generated.forced}"
> mergedir="${generated.home}"
> verbose="true">
> <hibernate version="2.0"/>
> <fileset dir="${src.dir}">
> <include name="**/*.java"/>
> </fileset>
> </hibernatedoclet>
> </target>
>
> I have try to check all paths, apparently they are ok.
> I have move the projet folder on my windows' partition and on windows it words. I
> have check if it's a case sensitive but I haven't found any thing.
> I'm sure I have done some thing stupid, but I can found it.
> Thanks
> Christophe
Okay. Well, if it works okay when you run it under windows then the
chances are it's not a problem with XDoclet or your script (unless
perhaps it's something to do with case-sensitive paths). Also, I see
you're including the hibernate & jboss jars (which should include the
j2ee classes) in the tasks' classpath, so that should be okay. I assume
you're running the same JDK and Ant versions on Windows as you are on
Mandrake?
Can you try running the build script with "ant -verbose"? That should
make Ant output extra information about where it's loading classes from
(or whether it's not loading them at all). Hopefully that should give
us a clue as to where it's failing (e.g. if it's loading them from a jar
in a location you're not expecting).
For what it's worth, I'm running Mandrake 9.1 myself and regularly run
xdoclet without getting these problems.
Andrew.
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user