ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: SQLExec.class feedback attribute proposal
Date Mon, 05 Jul 2004 15:34:12 GMT
Jose Alberto Fernandez wrote:
...
> To tell you the truth, I think the whole business of printing
> results of queries using SQLTask was a mistake, and should have
> been defined on a separate task that can do real XML output of
> results that one can manipulate and format in watever fashion. 
> The current arrangement is a product of the early days of ANT.

The last version of the xml extractor patch uses an external task for 
extracting. Is this something that could be of interest?

[PATCH] Xml output for the SQL task
http://issues.apache.org/bugzilla/show_bug.cgi?id=28681

Usage example:

   <taskdef name="extractorxml"
       classname="org.apache.tools.ant.taskdefs.SQLExtractorXML"/>

   <extractorxml id="myextractorxml"/>

     <sql driver="..."
          url="..."
          userid="..."
          password="..."
          print="yes"
          output="${work.dir}/outputfile.xml"
          extractorRef="myextractorxml"
     >
       ${data.sql}
     </sql>


-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message