Hi Otis

The only thing I can see different from my build script is that I have my
include nested:

            <fileset dir="${src.ejb.dir}">
                <include name="**/*.java" />
            </fileset>


Perhaps you can trying putting in an echo to check that your server.src.dir
is correct:

<echo message="server.src.dir=${server.src.dir}"/>

and check that this does in fact produce the correct path.

Craig

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of otisg
Sent: Tuesday, 25 March 2003 9:05 a.m.
To: Aslak Helles�y
Subject: Re: RE: [Xdoclet-user] hIbernate task does not generate
anything


Hello,

Thanks for the reply, but that didn't help
either.
It seems like I got a bit further, although
I am still unable to generate any files.

I added <hibernate/> as a nested element to
<hibernatedoclet> task.

That got <hibernatedoclet> task talking a
bit more:

    [hibernatedoclet] Running <hibernate/>


However, this is as far as I got.  No other
messages from the hibernatedoclet task, and
no code generated. :(

Do I need to include some other nested elements?
I am reading
http://xdoclet.sourceforge.net/ant/xdoclet/modules/hibernate/HibernateDoclet
Task.html
and http://hibernate.bluemars.net/72.html
and it sounds like what I have should be
sufficient.

Is this a question for Hibernate developers
instead of XDoclet developers?

Thanks,
Otis


---- On Mon, 24 Mar 2003,
=?iso-8859-1?Q?Aslak_Helles=F8y?=
([EMAIL PROTECTED]) wrote:

>
>
> > -----Original Message-----
> > From:
[EMAIL PROTECTED]
> >
[mailto:[EMAIL PROTECTED]
Behalf Of Aslak
> > Helles�y
> > Sent: 24. mars 2003 20:37
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Xdoclet-user] hIbernate
task does not generate anything
> >
> >
> > Your fileset probably excludes
everything. Try includes="**/*.java".
> >
>
> Ignore my last comment. The root of the
fileset must match the root of the
> package hierarchy. So what you need is:
>
>  <fileset
>     dir="${server.src.dir}"
>     includes="com/example/*.java"/>
>
> or
>
>  <fileset
>     dir="${server.src.dir}"
>     includes="**/*.java"/>
>
> OK?
>
> Aslak
>
> > Aslak
> >
> > > -----Original Message-----
> > > From:
[EMAIL PROTECTED]
> > >
[mailto:[EMAIL PROTECTED]
Behalf Of otisg
> > > Sent: 24. mars 2003 19:38
> > > To: [EMAIL PROTECTED]
> > > Subject: [Xdoclet-user] hIbernate task
does not generate anything
> > >
> > >
> > > Hello,
> > >
> > > I am trying to use XDoclet 1.2.1 to
generate
> > > Hibernate files (.hbm.xml files) from Java
> > > classes marked up with @hibernate.* tags.
> > > Unfortunately, XDoclet fails to
generate any
> > > .hbm.xml files and  setting the verbose
> > > attribute to 'true' does not seem to have
> > > any effect.
> > >
> > > My build.xml contains the following:
> > >
> > > <!-- pick up all XDoclet jars -->
> > > <path id="xdoclet.classpath">
> > >     <fileset dir="${xdoclet.dir}"
> > > includes="*.jar"/>
> > > </path>
> > >
> > > <!-- define the bernatedoclet Ant task -->
> > > <taskdef name="hibernatedoclet"
> > >
> > >
classname="xdoclet.modules.hibernate.HibernateDocletTask"
> > >
classpathref="xdoclet.classpath"/>
> > >
> > > <!-- generate hibernate files -->
> > > <target name="gen-hibernate">
> > >     <hibernatedoclet
> > >         addedTags="@xdoclet-generated at
> > > ${TODAY}"
> > >
> > >
destDir="${build.classes.dir}/gen/hibernate"
> > >         excludedTags="@version"
> > >         force="true"
> > >         verbose="true">
> > >
> > >         <fileset
> > > dir="${server.src.dir}/com/example"
> > >             includes="*.java"/>
> > >     </hibernatedoclet>
> > > </target>
> > >
> > >
> > > Because setting verbose attribute to
'true'
> > > doesn't do a thing, I can't tell what is
> > > going on.
> > >
> > > There are no taskdef-related errors, so
> > > XDoclet Jars are being found.  The dir in
> > > <fileset> is correct and XDoclet does
> > > complain if I change the name to some
> > > non-existing directory.
> > > The dir specified in distDir attribute
also
> > > exists.
> > >
> > > What is the best way to go about figuring
> > > out what is wrong here?
> > >
> > > Thanks,
> > > Otis
> > >
> > >
> > >
________________________________________________
> > > Get your own "800" number
> > > Voicemail, fax, email, and a lot more
> > > http://www.ureach.com/reg/tag
> > >
> > >
> > >
-------------------------------------------------------
> > > This sf.net email is sponsored
by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > >
_______________________________________________
> > > xdoclet-user mailing list
> > > [EMAIL PROTECTED]
> > >
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >
> >
> >
-------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> >
_______________________________________________
> > xdoclet-user mailing list
> > [EMAIL PROTECTED]
> >
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>
>
-------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
>
_______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>


________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to