Description
We should be able to use DdlUtils even in non-Java, non-Ant environments. For example, I would like to use DdlUtils for running unit tests in PHP. My Php tests are not executed using Ant.
It would not be very complicated to extend the tasks classes with a few CommandLine tasks. They can be modeled on the Ant tasks.
Parameters could be, for example (just an initial set):
cmd=(createDb | dropDb | SchemaToDb | DataToDb | DbToDtd | DataToFile | SchemaToFile | SchemaSqlToFile)
driver=<database driver class>
url=<database url>
user=<databaser user name>
password=<database password>
file=<file to be written to or read from>
..
This way, DdlUtils could be used very easily with many more programming languages and target environments. The programmer would only have to have the JRE, the DdlUtils jars (including dependencies) and the database driver installed to use DdlUtils.
I am willing to do this, but need your feedback if this makes sense.