Re: Required console output as is and not as xml

Prasanna Kulkarni <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Experts,

I want to show the log (output of the build as it happens that comes on the
console)
as-is in the browser.
Cruise control saves the log in an xml file.
That's not needed actually.
Saving the console output in an xml makes it loose all the indentation and
log is hardly readable.
What should I do so that the console output of a certain build gets saved as
a plain text file and not as xml and is displayed on to the browser?

The following is done in the process of getting what we want :

The log is saved the same directory (as the xml log) as a text file by
copying the antBuilderOutput.log immediately after the build gets over by
adding a <copy> task in the cc-build.xml.

Commented out following from the buildresults.jsp :
<cruisecontrol:xsl xslFile="/xsl/header.xsl"/>
<cruisecontrol:xsl xslFile="/xsl/buildresults.xsl"/>

Plz guide.
Thanks.

On Mon, Feb 16, 2009 at 4:10 PM, Prasanna Kulkarni
<[email protected]>wrote:

> Jeffrey,
>
> Write an xsl file that transforms the xml to plain text.
>
> I am afraid that'll not help us as the formatting of the output is already
> lost.
> Is there any option to be set in config.xml with which we can get the
> console output as-is in a plain-text file instead of a xml file?
>
> Thanks.
>
>
> On Sat, Feb 14, 2009 at 6:23 AM, Jeffrey Fredrick <
> [email protected]> wrote:
>
>> > This file is a xml file.
>> > We want this file to be plain text file.
>> > What could be the solution?
>>
>> Write an xsl file that transforms the xml to plain text.
>>
>> After you've done that you can either transform it during the
>> publishing step and publish the text file as a build artifact or you
>> could use the xsl with the web interface to generate a text file on
>> demand.
>>
>> Jtf
>>
>> --
>>  Free hour of CI consulting: http://the.ci-guys.com
>>
>>
>> On Fri, Feb 13, 2009 at 3:29 AM, Pattu (Prasanna Kulkarni)
>> <[email protected]> wrote:
>> > Hello,
>> >
>> > We have setup builds using cruise control 2.7.3.
>> > All the projects show up on the browser.
>> >
>> > When I click on a project it shows the log for that project in the
>> browser.
>> > This log is, the output thrown on to the console while the build is
>> > happening.
>> > All this output goes into a file that is saved in the directory set in
>> > following attribute in config.xml :
>> > <log dir="logs/runtests"/>
>> >
>> > This file is a xml file.
>> > We want this file to be plain text file.
>> > What could be the solution?
>> >
>> > Thanks.
>> >
>> > --
>> > -[P]-
>> > kaprasanna.blogspot.com
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Cruisecontrol-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>>
>
>
>
> --
> -[P]-
> kaprasanna.blogspot.com
>



-- 
-[P]-
kaprasanna.blogspot.com

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.