Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-133

Command-Line Invoker

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • 1.3
    • Ant Tasks
    • None

    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.

      Attachments

        Activity

          People

            tomdz Thomas Dudziak
            alexanderhars Alexander Hars
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: