Hi, >From what I can tell, this looks to be a blatant bug. I can't find this argument ever being implemented in past releases, but I only went back as far as 1.0.x. Please open a JIRA for this problem.
As far as workarounds... It depends on what your need is. If you really need to drop the tables, then you could either do it manually or use another tool, such as the MappingTool. Or, maybe one of the other options on SchemaTool is sufficient like the actions of "deleteTableContents", or "dropDB". Sorry for the inconvenience. Kevin On Tue, Mar 10, 2009 at 5:37 AM, lfnoleto <[email protected]> wrote: > > Hi, > > I think this is a bug. The task SchemaToolTask does not implements > "dropTables" argument. According to the documentation [1] this task can > take "dropTables" arguments > but when I run as shown below I get this error: The <schematool> type > doesn't support the "droptables" attribute. > > <schematool dropTables="true" action="retain"> > <fileset dir="${build.sql.dir}"> > <include name="schema.xml" /> > </fileset> > <config > propertiesFile="${prototype.src.model.base}/META-INF/persistence.xml" /> > </schematool> > > In fact, I looked in source code and this task has no set method for > "dropTables"argument. > > > Does anyone know why? or any way to work around it? > > I use : > revision.number=422266:683325 > openjpa.version=1.2.0 > > [1] > > http://openjpa.apache.org/builds/1.2.0/apache-openjpa-1.2.0/docs/manual/ref_guide_schema_schematool.html > > Thanks, > > > -- > View this message in context: > http://n2.nabble.com/OpenJPA-1.2.0%3A-SchemaToolTask-does-not-have-%22dropTables%22-argument-tp2454421p2454421.html > Sent from the OpenJPA Users mailing list archive at Nabble.com. >
