[ rubbish-db ]

ソース

<project name="sql" default="create.vo" basedir=".">
  <property name="jdbc.url" value="jdbc:hsqldb:hsql://localhost" />
  <property name="jdbc.user" value="sa" />
  <property name="jdbc.password" value="" />
  <property name="jdbc.driver.classpath" value="${basedir}/../../../hsqldb/lib/hsqldb.jar" />
  <property name="rubbish-db.jar" value="${basedir}/../../../rubbish-db.jar" />
  <property name="sample.src" value="C:/eclipse/workspace/rubbish-db/sample/src" />
  <property name="schema" value="PUBLIC" />

  <taskdef name="vogen" classname="rubbish.db.gen.ant.VOGenTask" classpath="${rubbish-db.jar}" />

  <target name="create.vo">
    <vogen url="${jdbc.url}" userid="${jdbc.user}" password="${jdbc.password}"
      classpath="${jdbc.driver.classpath}" destdir="${sample.src}"
      package="sample.hsqldb.bean" schema="${schema}" />
    <vogen type="interface" url="${jdbc.url}" userid="${jdbc.user}" password="${jdbc.password}"
      classpath="${jdbc.driver.classpath}" destdir="${sample.src}"
      package="sample.hsqldb.i_f.bean" schema="${schema}" />
  </target>
</project>