Bonjour,
J'essaye de faire une tache Ant qui me permet d'utiliser l'outil schemaExport pour créer mon schéma de BD à partir de mes classes java.
Il faut savoir que l'exportation fonctionne sans ant (compilation manuelle).
Quand j'execute ma tache, j'obtiens l'erreur :
Schema text failed: Could not parse mapping document from file
Voici ma tache :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <target name="schemaexport">
<taskdef name="schemaexport"
classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
classpathref="libraries"/>
<schemaexport
properties="${targetdir}/hibernate.cfg.xml"
quiet="no"
text="no"
drop="no"
delimiter=";"
output="./schema-export.sql">
<fileset dir="${sourcedir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
</target> |
Quelqu'un a-t-il une idée pour régler ça ????
Merci !
Partager