Galera,
ao executar o ANT recebo a seguinte mensagem de erro:
BUILD FAILED: file:G:/Eclipse/eclipse/workspace/HibernateLab/HibernateLab/generate.xml:16: taskdef class xdoclet.modules.hibernate.HibernateDocletTask cannot be found
Ele não encontra a task xdoclet.modules.hibernate.HibernateDocletTask, mas pq ocorre isto?
Instalei o ant certinho, está no meu classpath e tudo mais…
Obs.: Estou usando Eclipse e sou novato…onde posso estar errando?
+1 Obs.: Ao executar o comando c:ant.exe recebo a mensagem de que ele não encontrou TOOLS.JAR… tem algo a ver?
Parece que o ‘java’ que está sendo executado é uma JRE e o ANT está procurando um JDK (que tem o tools.jar). Tente setar a variável de ambiente JAVA_HOME para o diretório da sua J2SDK.
Fiz todas as alterações necessárias mas o erro aina persiste.
Veja o trecho o qual ele se refere em generate.xml:
<taskdef name=“hibernatedoclet” classname=“xdoclet.modules.hibernate.HibernateDocletTask”>
Agora o erro que é exibido:
“generate.xml”: file:G:/HiberTrash/generate.xml:19:
taskdef class xdoclet.modules.hibernate.HibernateDocletTask cannot be found at line 19
Já estou a 3 semanas tentando utilizar o Hibernate e não consigo…
Help me, please!!
Estou ficando frustrado :shock: !!!
Galera, consegui gerar o arquivo de mapeamento automaticamente! (UFA!!). Para isto apenas mudei a versão do ANT para 1.6.
Agora gostaria de finalizar o processo e gerar as tabelas, mas tem um errinho que está acabamento com meus neuronios (o tico e o téco).
Vejam o erro:
StdOut
Buildfile: generate.xml
createtables:
[schemaexport] (cfg.Environment 403 ) Hibernate 2.0.3
[schemaexport] (cfg.Environment 432 ) hibernate.properties not found
[schemaexport] (cfg.Environment 452 ) using CGLIB reflection optimizer
[schemaexport] (cfg.Environment 462 ) JVM proxy support: true
[schemaexport] (cfg.Configuration 153 ) Mapping file: G:HiberTrashclassesProduto.hbm.xml
[schemaexport] (cfg.Configuration 233 ) Could not compile the mapping document
[schemaexport] java.lang.ClassNotFoundException: Produto
[schemaexport] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[schemaexport] at java.security.AccessController.doPrivileged(Native Method)
[schemaexport] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[schemaexport] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[schemaexport] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[schemaexport] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[schemaexport] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[schemaexport] at java.lang.Class.forName0(Native Method)
[schemaexport] at java.lang.Class.forName(Class.java:141)
[schemaexport] at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:73)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095)
[schemaexport] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
[schemaexport] at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:155)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:184)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:128)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.Main.start(Main.java:151)
[schemaexport] at org.apache.tools.ant.Main.main(Main.java:241)
[schemaexport] rethrown as
[schemaexport] net.sf.hibernate.MappingException: persistent class not found: Produto
[schemaexport] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:76)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095)
[schemaexport] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
[schemaexport] at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:155)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:184)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:128)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.Main.start(Main.java:151)
[schemaexport] at org.apache.tools.ant.Main.main(Main.java:241)
[schemaexport] Caused by: java.lang.ClassNotFoundException: Produto
[schemaexport] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[schemaexport] at java.security.AccessController.doPrivileged(Native Method)
[schemaexport] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[schemaexport] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[schemaexport] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[schemaexport] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[schemaexport] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[schemaexport] at java.lang.Class.forName0(Native Method)
[schemaexport] at java.lang.Class.forName(Class.java:141)
[schemaexport] at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:73)
[schemaexport] … 16 more
[schemaexport] (cfg.Configuration 158 ) Could not configure datastore from file: G:HiberTrashclassesProduto.hbm.xml
[schemaexport] java.lang.ClassNotFoundException: Produto
[schemaexport] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[schemaexport] at java.security.AccessController.doPrivileged(Native Method)
[schemaexport] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[schemaexport] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[schemaexport] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[schemaexport] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[schemaexport] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[schemaexport] at java.lang.Class.forName0(Native Method)
[schemaexport] at java.lang.Class.forName(Class.java:141)
[schemaexport] at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:73)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095)
[schemaexport] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
[schemaexport] at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:155)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:184)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:128)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.Main.start(Main.java:151)
[schemaexport] at org.apache.tools.ant.Main.main(Main.java:241)
[schemaexport] rethrown as
[schemaexport] net.sf.hibernate.MappingException: persistent class not found: Produto
[schemaexport] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:76)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095)
[schemaexport] at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
[schemaexport] at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:155)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:184)
[schemaexport] at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:128)
[schemaexport] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[schemaexport] at org.apache.tools.ant.Task.perform(Task.java:364)
[schemaexport] at org.apache.tools.ant.Target.execute(Target.java:341)
[schemaexport] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[schemaexport] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[schemaexport] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[schemaexport] at org.apache.tools.ant.Main.runBuild(Main.java:673)
[schemaexport] at org.apache.tools.ant.Main.startAnt(Main.java:188)
[schemaexport] at org.apache.tools.ant.Main.start(Main.java:151)
[schemaexport] at org.apache.tools.ant.Main.main(Main.java:241)
[schemaexport] Caused by: java.lang.ClassNotFoundException: Produto
[schemaexport] at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[schemaexport] at java.security.AccessController.doPrivileged(Native Method)
[schemaexport] at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[schemaexport] at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[schemaexport] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[schemaexport] at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[schemaexport] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[schemaexport] at java.lang.Class.forName0(Native Method)
[schemaexport] at java.lang.Class.forName(Class.java:141)
[schemaexport] at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
[schemaexport] at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:73)
[schemaexport] … 16 more
StdErr
BUILD FAILED
“generate.xml”: G:HiberTrashgenerate.xml:35: Schema text failed: persistent class not found: Produto at line 35
Total time: 8 seconds
Error executing Ant: G:/jbuilderx/jdk1.4/bin/java -Dbuild.compiler=com.borland.jbuilder.ant.compiler.Bmj -classpath G:jbuilderxlibjavac.jar;G:jbuilderxlibjbuilder.jar;G:jbuilderxjdk1.4demojfcJava2DJava2Demo.jar;G:jbuilderxjdk1.4demopluginjfcJava2DJava2Demo.jar;G:jbuilderxjdk1.4jrejavawsjavaws.jar;G:jbuilderxjdk1.4jrelibcharsets.jar;G:jbuilderxjdk1.4jrelibextdnsns.jar;G:jbuilderxjdk1.4jrelibextldapsec.jar;G:jbuilderxjdk1.4jrelibextlocaledata.jar;G:jbuilderxjdk1.4jrelibextsunjce_provider.jar;G:jbuilderxjdk1.4jrelibimindicim.jar;G:jbuilderxjdk1.4jrelibim haiim.jar;G:jbuilderxjdk1.4jrelibjce.jar;G:jbuilderxjdk1.4jrelibjsse.jar;G:jbuilderxjdk1.4jrelibplugin.jar;G:jbuilderxjdk1.4jrelib
t.jar;G:jbuilderxjdk1.4jrelibsunrsasign.jar;G:jbuilderxjdk1.4libdt.jar;G:jbuilderxjdk1.4libhtmlconverter.jar;G:jbuilderxjdk1.4lib ools.jar;D:Lab-Javaxdocletlibcommons-collections-2.1commons-collections.jar;D:Lab-Javaxdocletlibhibernate-2.0.3hibernate2.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libc3p0.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libcglib-asm.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libcommons-beanutils.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libcommons-collections.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libcommons-dbcp.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libcommons-lang.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libcommons-logging.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libcommons-pool.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libconnector.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libdom4j.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libjaas.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libjcs.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libjdbc2_0-stdext.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libjta.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libjunit.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libodmg.jar;D:Lab-Javaxdocletlibhibernate-2.0.3libproxool.jar;D:Lab-Javaxdocletlibhsqldb-1.7.2libhsqldb.jar;D:Lab-Javaxdocletlibjakarta-log4j-1.2.8distliblog4j-1.2.8.jar;D:Lab-Javaxdocletlibjunit3.8.1junit.jar;D:Lab-Javaxdocletlibmiddlegen-2.0-b1middlegen-2.0-b1.jar;D:Lab-Javaxdocletlibmiddlegen-2.0-b1middlegen-entitybean-plugin-2.0-b1.jar;D:Lab-Javaxdocletlibvelocity-1.3.1velocity-1.3.1.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libcommons-collections-2.0.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libcommons-logging.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libxdoclet-1.2b4.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libxdoclet-ejb-module-1.2b4.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libxdoclet-hibernate-module-1.2b4.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libxdoclet-java-module-1.2b4.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libxdoclet-jboss-module-1.2b4.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libxdoclet-jmx-module-1.2b4.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libxdoclet-web-module-1.2b4.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libxdoclet-xdoclet-module-1.2b4.jar;D:Lab-Javaxdocletlibxdoclet-bin-1.2b3libxjavadoc-1.0.jar;G:apache-ant-1.6.2beta1etcant-bootstrap.jar;G:apache-ant-1.6.2beta1libant-antlr.jar;G:apache-ant-1.6.2beta1libant-apache-bcel.jar;G:apache-ant-1.6.2beta1libant-apache-bsf.jar;G:apache-ant-1.6.2beta1libant-apache-log4j.jar;G:apache-ant-1.6.2beta1libant-apache-oro.jar;G:apache-ant-1.6.2beta1libant-apache-regexp.jar;G:apache-ant-1.6.2beta1libant-apache-resolver.jar;G:apache-ant-1.6.2beta1libant-commons-logging.jar;G:apache-ant-1.6.2beta1libant-commons-net.jar;G:apache-ant-1.6.2beta1libant-icontract.jar;G:apache-ant-1.6.2beta1libant-jai.jar;G:apache-ant-1.6.2beta1libant-javamail.jar;G:apache-ant-1.6.2beta1libant-jdepend.jar;G:apache-ant-1.6.2beta1libant-jmf.jar;G:apache-ant-1.6.2beta1libant-jsch.jar;G:apache-ant-1.6.2beta1libant-junit.jar;G:apache-ant-1.6.2beta1libant-launcher.jar;G:apache-ant-1.6.2beta1libant-netrexx.jar;G:apache-ant-1.6.2beta1libant-nodeps.jar;G:apache-ant-1.6.2beta1libant-starteam.jar;G:apache-ant-1.6.2beta1libant-stylebook.jar;G:apache-ant-1.6.2beta1libant-swing.jar;G:apache-ant-1.6.2beta1libant-trax.jar;G:apache-ant-1.6.2beta1libant-vaj.jar;G:apache-ant-1.6.2beta1libant-weblogic.jar;G:apache-ant-1.6.2beta1libant-xalan1.jar;G:apache-ant-1.6.2beta1libant-xslp.jar;G:apache-ant-1.6.2beta1libant.jar;G:apache-ant-1.6.2beta1libxercesImpl.jar;G:apache-ant-1.6.2beta1libxml-apis.jar;G:apache-ant-1.6.2beta1libxdocletlibcommons-collections-2.1commons-collections.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3hibernate2.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libc3p0.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libcglib-asm.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libcommons-beanutils.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libcommons-collections.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libcommons-dbcp.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libcommons-lang.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libcommons-logging.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libcommons-pool.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libconnector.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libdom4j.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libjaas.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libjcs.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libjdbc2_0-stdext.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libjta.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libjunit.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libodmg.jar;G:apache-ant-1.6.2beta1libxdocletlibhibernate-2.0.3libproxool.jar;G:apache-ant-1.6.2beta1libxdocletlibhsqldb-1.7.2libhsqldb.jar;G:apache-ant-1.6.2beta1libxdocletlibjakarta-log4j-1.2.8distliblog4j-1.2.8.jar;G:apache-ant-1.6.2beta1libxdocletlibjunit3.8.1junit.jar;G:apache-ant-1.6.2beta1libxdocletlibmiddlegen-2.0-b1middlegen-2.0-b1.jar;G:apache-ant-1.6.2beta1libxdocletlibmiddlegen-2.0-b1middlegen-entitybean-plugin-2.0-b1.jar;G:apache-ant-1.6.2beta1libxdocletlibvelocity-1.3.1velocity-1.3.1.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libcommons-collections-2.0.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libcommons-logging.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libxdoclet-1.2b4.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libxdoclet-ejb-module-1.2b4.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libxdoclet-hibernate-module-1.2b4.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libxdoclet-java-module-1.2b4.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libxdoclet-jboss-module-1.2b4.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libxdoclet-jmx-module-1.2b4.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libxdoclet-web-module-1.2b4.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libxdoclet-xdoclet-module-1.2b4.jar;G:apache-ant-1.6.2beta1libxdocletlibxdoclet-bin-1.2b3libxjavadoc-1.0.jar org.apache.tools.ant.Main -buildfile generate.xml -inputhandler com.borland.jbuilder.build.AntBuildTask$AntInputHandler createtables
Como vocês podem ver logo no início ele me diz que não encontrou o arquivo de properties (hibernate.properties not found).
O Mais interessante é que eu já coloquei uma copia deste arquivo em todas as pastas, inclusive na raiz e ele simplesmente não encontra.
Veja como fiz em meu XML:
<target name=“createtables” description=“creates database tables”>
<schemaexport quiet=“no” text=“no” drop=“no” delimiter=";"
properties=“src/hibernate.properties”>
<fileset dir=“classes” includes="**/*.hbm.xml" />
</schemaexport>
</target>
<taskdef name=“schemaexport” classname=“net.sf.hibernate.tool.hbm2ddl.SchemaExportTask”
classpath=“classes”>
<classpath refid=“xdoclet.classpath” />
</taskdef>
</project>
Alguém pode dar uma “luz” ?
Valeu!!