Ticket #167 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

Add new formatter support for PDOSQLExecTask

Reported by: hans Assigned to: hans
Priority: major Milestone: 2.3.0
Component: phing-tasks-ext Version: 2.3.0RC1
Keywords: Cc:

Description

The PDOSQLExecTask could benefit from having formatters, similar to the way that the PHPUnit system works.

Here's an example:

<pdo url="pgsql:host=localhost dbname=test">
  <fileset dir="sqlfiles">
          <include name="*.sql"/>
  </fileset>

  <!-- xml formatter -->
  <formatter type="xml" output="output.xml"/>
  
  <!-- custom formatter -->
  <formatter classname="path.to.CustomFormatterClass">
    <param name="someClassAttrib" value="some-value"/>
  </formatter>

  <!-- No output file + usefile=false means it goes to phing log -->
  <formatter type="plain" usefile="false" />
</pdo>

Attachments

Change History

10/23/07 02:12:05 changed by hans

  • status changed from new to closed.
  • resolution set to fixed.

Initial implementation added in r260


Add/Change #167 (Add new formatter support for PDOSQLExecTask)




Action