<?xml version="1.0" encoding="UTF-8"?>
<project 
  xmlns:ant="jelly:ant"
  xmlns:j="jelly:core">

	<goal name="schemaexport">
    <ant:path id="schemaexport.classpath">
      <ant:path refid="maven.dependency.classpath" />
      <ant:pathelement location="${basedir}/privacy-hbm/target/classes" />
      <ant:pathelement location="/Users/cwen/.maven/repository/org.hibernate/jars/hibernate-3.1.3.jar" />
      <ant:pathelement location="/Users/cwen/.maven/repository/commons-logging/jars/commons-logging-1.0.4.jar" />
      <ant:pathelement location="/Users/cwen/.maven/repository/commons-collections/jars/commons-collections-3.1.jar" />
      <ant:pathelement location="/Users/cwen/.maven/repository/cglib/jars/cglib-nodep-2.1_3.jar" />
      <ant:pathelement location="/Users/cwen/.maven/repository/dom4j/jars/dom4j-1.6.1.jar"/>
      <ant:pathelement location="/Users/cwen/.maven/repository/log4j/jars/log4j-1.2.9.jar"/>
    </ant:path>

    <ant:taskdef name="schemaexport"
        classname="org.hibernate.tool.hbm2ddl.SchemaExportTask"
        classpathref="schemaexport.classpath" />
    <ant:schemaexport properties="${basedir}/schema-export-ddl.properties"
        delimiter=";" text="yes" output="schema-export.sql">
      <ant:fileset
          dir="${basedir}/src/java/org/sakaiproject/hbm/privacy">
      	<ant:include name="**/*.hbm.xml"/>
      </ant:fileset>
    </ant:schemaexport>

  </goal>

	
</project>
