You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Md. Jahidul Hasan" <ja...@bjitgroup.com> on 2008/05/12 07:34:09 UTC

how to capture output from a target as xml

Hi

Is it possible to capture the output from a single target into a file as
xml format ?

------
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


Re: how to capture output from a target as xml

Posted by David Weintraub <qa...@gmail.com>.
What about the <echoxml> task?

On Mon, May 12, 2008 at 2:28 AM, Md. Jahidul Hasan
<ja...@bjitgroup.com> wrote:
> I have found that <record> task can record the message into a file as text
>  format, but how can I grab those as xml ?
>
>
>
>
>  > Hi
>  >
>  > Is it possible to capture the output from a single target into a file as
>  > xml format ?
>  >
>  > ------
>  > 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
>  >
>
>
>  --
>
> With best regards
>  Md. Jahidul Hasan
>  BJIT Inc.
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>  For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
--
David Weintraub
qazwart@gmail.com

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


Re: how to capture output from a target as xml

Posted by "Md. Jahidul Hasan" <ja...@bjitgroup.com>.
I have found that <record> task can record the message into a file as text
format, but how can I grab those as xml ?


> Hi
>
> Is it possible to capture the output from a single target into a file as
> xml format ?
>
> ------
> 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
>


-- 
With best regards
Md. Jahidul Hasan
BJIT Inc.

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


Re: how to capture output from a target as xml

Posted by Prashant Reddy <pr...@pramati.com>.
> 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