Command-Line Invoker
--------------------

                 Key: DDLUTILS-133
                 URL: http://issues.apache.org/jira/browse/DDLUTILS-133
             Project: DdlUtils
          Issue Type: New Feature
          Components: Ant Tasks
            Reporter: Alexander Hars
         Assigned To: Thomas Dudziak
            Priority: Minor


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. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to