Konstantin,
I used the same init target to my old XD1 calls and my new XD2. I
isolate the init target, but it isnt generating hbm.xml files just
showing that warnings.
My new build.xml
<target name="init2">
<property name="xdoclet2.dir"
value="C:\\Tools\\xdoclet2-1.0.1" />
<path id="xdoclet.task.classpath">
<fileset dir="${xdoclet2.dir}/lib">
<include name="*.jar" />
</fileset>
<fileset dir="${xdoclet2.dir}/plugins">
<include name="*.jar" />
</fileset>
</path>
<taskdef name="xdoclet"
classname="org.xdoclet.ant.XDocletTask"
classpathref="xdoclet.task.classpath" />
</target>
<target name="generate_hibernate2" depends="init2">
<xdoclet>
<!-- defines the file handled by xdoclet2 -->
<fileset dir="../../source">
<include name="**/*.java" />
</fileset>
<!-- defines the processing of a plugin -->
<component
classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
destdir="../../source" />
</xdoclet>
</target>
>
>
> --- [EMAIL PROTECTED] wrote:
>
> > My build.xml is a little big so i put just the other
> > running target:
> >
> > <target name="init">
> > <taskdef name="hibernatedoclet"
> >
> classname="xdoclet.modules.hibernate.HibernateDocletTask"
> > classpathref="xdoclet.lib.path" />
> > <taskdef name="schemaexport"
> >
> classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
> > classpathref="hibernate.lib.path" classpath="../bin"
> > />
> > <taskdef name="schemaupdate"
> >
> classname="org.hibernate.tool.hbm2ddl.SchemaUpdateTask"
> > classpathref="hibernate.lib.path" classpath="../bin"
> > />
> > <property name="xdoclet2.dir"
> > value="C:\\Tools\\xdoclet2-1.0.1" />
> > <path id="xdoclet.task.classpath">
> > <fileset dir="${xdoclet2.dir}/lib">
> > <include name="*.jar" />
> > </fileset>
> > <fileset dir="${xdoclet2.dir}/plugins">
> > <include name="*.jar" />
> > </fileset>
> > </path>
> >
> > <taskdef name="xdoclet"
> > classname="org.xdoclet.ant.XDocletTask"
> > classpathref="xdoclet.task.classpath" />
> > </target>
> >
> >
> > It look like it is running ok but the files isn't
> > generated.
> > Regards,
> > Fl�vio.
> >
>
> It seems that you are calling XD1...
>
> My invocation looks like this:
> --------------
> <path id="xdoclet.task.classpath">
> <path refid="maven.dependency.classpath"/>
> </path>
>
> <taskdef
> name="xdoclet"
>
> classname="org.xdoclet.ant.XDocletTask"
>
> classpathref="xdoclet.task.classpath"/>
> <xdoclet>
> <fileset
> dir="${pom.build.sourceDirectory}">
> <include name="**/*.java"/>
> </fileset>
> <component
> classname="org.generama.VelocityTemplateEngine"/>
> <component
> classname="org.generama.JellyTemplateEngine"/>
>
> <component
>
> classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
>
> destdir="${basedir}/target/xdoclet/hibernatedoclet" />
> </xdoclet>
> --------------
> ( this is snippet from maven.xml, but basically it is
> ant code )
>
> regarsd,
>
> ----[ Konstantin Pribluda ( ko5tik ) ]----------------
> ... Auf der Suche nach einen Projekt in Rhein-Main
> ab 18.4.2005
> ----[ http://www.pribluda.de ]------------------------
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
--