Was thinking it would be useful for SchemaExport and Update to behave in a
similar way to JUnit in that if something goes wrong when they are working
they will set an error property. This would mean that when they are being
used by an Ant build file we will be able to fail the build file if the
export has some problems.

I'd envisage the build file looking something like this

<target name="schemaexport">
        <taskdef name="schemaexport"
            classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"
            classpathref="schema.generate.classpath"/>

        <schemaexport
            properties="hibernate.properties"
...

-->         dropError="drop.failed"              // perhaps not neccessary
-->         createError="create.failed"
            >
            <fileset refid="hibernate.mapping.files" />
        </schemaexport>
        <fail message="Export failed, check log and reports"
              if="create.failed"/>
     </target>

some stuff snipped (...) new property highlighted ( --> ). I think this can
be done reasonably easily, and would be of benefit. Any comments or thoughts
on this?

All best

Andrew



Andrew Premdas
Student Systems Developer
Manchester University



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to