? tjdo.patch
Index: src/plugins-build/tjdo/plugin.jelly
===================================================================
RCS file: /home/cvspublic/maven/src/plugins-build/tjdo/plugin.jelly,v
retrieving revision 1.3
diff -u -r1.3 plugin.jelly
--- src/plugins-build/tjdo/plugin.jelly	19 Aug 2003 05:08:35 -0000	1.3
+++ src/plugins-build/tjdo/plugin.jelly	25 Aug 2003 15:36:55 -0000
@@ -34,8 +34,8 @@
         ========================================================================
     -->
     <goal name="tjdo:enhance"
+        description="Enhance classes for use with TJDO"
         prereqs="tjdo:init">
-        <echo>JDO-enhancing classes for Triactive JDO</echo>
 
         <!-- Construct FileSet of JDO files for enhancing -->
         <j:set var="jdo_fileset_dir_var_name" value="maven.tjdo.jdo.fileset.dir"/>
@@ -72,5 +72,32 @@
 
         <echo>Classes are now JDO-enhanced for Triactive JDO</echo>
     </goal>
+
+    <!--
+		========================================================================
+        Goal to drop the JDO tables
+		========================================================================
+	-->
+	<goal name="tjdo:drop-tables"
+        description="Drop tables created by TJDO"
+		prereqs="tjdo:init">
+
+		<!-- Construct CLASSPATH to include TJDO and dependencies -->
+		<path id="myclasspath">
+			<path refid="maven.dependency.classpath"/>
+			<pathelement path="${maven.build.dest}"/>
+			<pathelement path="${plugin.getDependencyPath('tjdo')}"/>
+		</path>
+
+		<!-- Drop JDO tables defined in JDO_TABLE -->
+		<ant:java dir="${maven.build.dest}"
+			classname="com.triactive.jdo.DropJDOTables"
+			failonerror="true"
+			fork="true">
+			<classpath refid="myclasspath"/>
+		</ant:java>
+
+		<echo>DB tables for Triactive JDO have now been dropped</echo>
+	</goal>
 
 </project>
Index: src/plugins-build/tjdo/project.xml
===================================================================
RCS file: /home/cvspublic/maven/src/plugins-build/tjdo/project.xml,v
retrieving revision 1.2
diff -u -r1.2 project.xml
--- src/plugins-build/tjdo/project.xml	19 Aug 2003 04:45:04 -0000	1.2
+++ src/plugins-build/tjdo/project.xml	25 Aug 2003 15:36:55 -0000
@@ -5,7 +5,7 @@
   <pomVersion>3</pomVersion>
   <id>maven-tjdo-plugin</id>
   <name>Maven TJDO plugin</name>
-  <currentVersion>0.1.1</currentVersion>
+  <currentVersion>0.2.0</currentVersion>
   <description/>
   <shortDescription>Maven TJDO plugin</shortDescription>
   <url>http://maven.apache.org/reference/plugins/tjdo/</url>
Index: src/plugins-build/tjdo/xdocs/changes.xml
===================================================================
RCS file: /home/cvspublic/maven/src/plugins-build/tjdo/xdocs/changes.xml,v
retrieving revision 1.2
diff -u -r1.2 changes.xml
--- src/plugins-build/tjdo/xdocs/changes.xml	19 Aug 2003 04:45:04 -0000	1.2
+++ src/plugins-build/tjdo/xdocs/changes.xml	25 Aug 2003 15:36:55 -0000
@@ -6,7 +6,12 @@
   </properties>
 
   <body>
-    <release version="0.1" date="2003-08-08">
+    <release version="0.2" date="24-Jul-2003" description="Added ability ability to drop DB tables">
+        <action dev="andy" type="add">
+          Added "drop-tables" goal.
+        </action>
+    </release>
+    <release version="0.1" date="08-Jul-2003" description="Initial release">
         <action dev="andy" type="add">
           New plugin providing support for TJDO "enhance" method.
         </action>
Index: src/plugins-build/tjdo/xdocs/goals.xml
===================================================================
RCS file: /home/cvspublic/maven/src/plugins-build/tjdo/xdocs/goals.xml,v
retrieving revision 1.2
diff -u -r1.2 goals.xml
--- src/plugins-build/tjdo/xdocs/goals.xml	19 Aug 2003 04:45:04 -0000	1.2
+++ src/plugins-build/tjdo/xdocs/goals.xml	25 Aug 2003 15:36:55 -0000
@@ -17,6 +17,12 @@
             of classes to use TJDO for persistence of java classes.
           </td>
         </tr>
+        <tr>
+          <td>tjdo:drop-tables</td>
+          <td>
+            Drop the DB tables created by TJDO.
+          </td>
+        </tr>
       </table>
     </section>
  </body>

