ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Reddy <prash...@pramati.com>
Subject Re: how to capture output from a target as xml
Date Mon, 12 May 2008 06:10:14 GMT

> Is it possible to capture the output from a single target 

Check out the <record> task.
> into a file as
> xml format ?

<record> will only what ever the target writes into System.out.  However
getting XML formatted output, really depends on what the target is. For
example junitreport can write out XML/plain text based on what you
choose. 

I am not sure there is a generic way to achieve this (xml formatted
output) for all of the ant tasks.

Also the answer depends on how you define the XML format. 

Is the XML as simple as  : 
<output> 
whatever the target's output is.. 
</output> 

Hope this helps

-Prashant 
> 
> ------
> With best regards
> Md. Jahidul Hasan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org


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


Mime
View raw message