Hibernate version: 2.1.6
first a short question and then the explanation.
Is it right that the ant task "schemaexport" looks for his property named config in the directory where ant is called?
Explanation:
when using the schemaexport task in ant there is an error i doen't understand completly.
When i call the target in a build-file, let's say a.xml and i call ant in the root
directory of the project anything works. btw the junit-subdir is directly under the root directory
Code:
<target name="drop-schema">
<schemaexport
config="junit/hibernate.cfg.xml"
quiet="yes"
drop="yes"
>
</schemaexport>
</target>
when i call the same target from another location or another build-file (b.xml) schemaexport fails with "File Not Found". I played with several Configurations, telling ant where basedir is, telling ant not to inherit ...
The only solution was, to copy junit/hibernat.cfg.xml to that point, where i called ant. Then it worked.
Any suggestions?
Best Regards
Gunnar