Index: src/main/java/org/codehaus/mojo/openjpa/OpenJpaSqlMojo.java
===================================================================
--- src/main/java/org/codehaus/mojo/openjpa/OpenJpaSqlMojo.java	(revision 12391)
+++ src/main/java/org/codehaus/mojo/openjpa/OpenJpaSqlMojo.java	(working copy)
@@ -60,7 +60,7 @@
     
     /**
      * Use this option to write the planned schema modifications to a SQL
-     * script rather than modify the database. Combine this with a schemaAction 
+     * script. Combine this with a schemaAction 
      * of "build" to generate a script that recreates the schema for the 
      * current mappings, even if the schema already exists.
      * @parameter default-value="${project.build.directory}/database.sql" 
@@ -71,6 +71,15 @@
     
 
     /**
+     * Use this option to write the planned schema modifications to 
+     * the database. If this is set, the sqlFile setting (if any) will
+     * be ignored.
+     * @parameter default-value="false" 
+     */
+    protected boolean modifyDatabase;
+    
+
+    /**
      * @return Options filled with all necessary plugin parameters
      */
     protected Options getOptions() 
@@ -80,9 +89,10 @@
         
         // put the standard options into the list also
         opts.put( OPTION_SQL_ACTION   , sqlAction   );
-
-        opts.put( OPTION_SQL_FILE, sqlFile.getPath() );
         
+        if (!modifyDatabase)
+            opts.put( OPTION_SQL_FILE, sqlFile.getPath() );
+        
         return opts;
     }
 }
