how to capture output from a target as xml

View: New views
4 Messages — Rating Filter:   Alert me  

how to capture output from a target as xml

by Md. Jahidul Hasan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: user-help@...


Re: how to capture output from a target as xml

by Md. Jahidul Hasan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
> For additional commands, e-mail: user-help@...
>


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

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


Re: how to capture output from a target as xml

by Prashant Reddy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> 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@...
> For additional commands, e-mail: user-help@...


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


Re: how to capture output from a target as xml

by David Weintraub :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What about the <echoxml> task?

On Mon, May 12, 2008 at 2:28 AM, Md. Jahidul Hasan
<jahidul.hasan@...> 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@...
>  > For additional commands, e-mail: user-help@...
>  >
>
>
>  --
>
> With best regards
>  Md. Jahidul Hasan
>  BJIT Inc.
>
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@...
>  For additional commands, e-mail: user-help@...
>
>



--
--
David Weintraub
qazwart@...

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