openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste BRIAUD -- Novlog <>
Subject MappingTool : Java class and Ant task
Date Tue, 22 Mar 2011 15:39:47 GMT

There is 2 ways to use the same MappingTool : as a Java class or as an Ant task.

It look like the same but it is not, at least on syntax point of view :

On command line according to the doc : -schemaAction build
On ant task : <mappingtool action="buildSchema"
On reality from my experience for command line : ... -action buildSchema

Currently, I manage to make it work but I'd like to add more parameters like -dropTables true.
What would be the Ant task syntax for it ?

What would be the recommended way to use it ?

View raw message