Good morning,

I am trying to use the mapping tool to generate SQL instructions for database generation (only to check, I already have a working DB), I am using Ant to call the mapping tool.

--------------------------------------------------------------------
<taskdef name="mappingtool"
  classname="org.apache.openjpa.jdbc.ant.MappingToolTask">
  <classpath>
    <path>
      <fileset dir="/usr/local/openjpa/">
        <include name="*.jar" />
      </fileset>
    </path>
  </classpath>
</taskdef>

<target name="SQL">
  <mappingtool action="buildSchema" schemaaction="createDB"
    sqlfile="/tmp/db.sql" >
    <config propertiesFile="${progetto.src}/META-INF/persistence.xml" />
    <fileset dir="${progetto.bin}">
      <include name="**/obj/**.class" />
    </fileset>
  </mappingtool>
</target>
--------------------------------------------------------------------

I did some search on google and nabble, the propertiesFile seems to be correct (is the one used in production), the fileset is the same in the enhance task (that works). But after task execution /tmp/db.sql in empty.

In am using openJPA 1.2.1 and Eclipse 3.4.

Any suggestion (or link to documentation that I must read after openJPA manual) ?

thank you
Edoardo


Reply via email to