tip for those of you who dont want to read the logs in XML format.
Jani Mikkonen <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
Prerequirements:
Apache server
Working cruisecontrol that is mounted into a certain location in your
apache virtual host:
If you are using dashboard, your apache server need to have the build
logfiles accessible in the local filesystem.
1) Install modxslt2 apache2 module
2) create your xsl file and place it somewhere apache process can access it
JSP:
3) Add following into your virtual host file:
<Location "/cruisecontrol/logs">
XSLTDefaultStylesheet application/xml /etc/apache2/simple.xsl
XSLTDefaultStylesheet text/xml /etc/apache2/simple.xsl
AddOutputFilterByType mod-xslt text/xml
AddOutputFilterByType mod-xslt application/xml
</Location>
Location /cruisecontrol/ needs to match where you have mounted your
cruisecontrol jsp reporting app via mod_jk and then change
XSLTDefaultStyleSheet second parameters to point to the absolute
filename of the xsl you made in step 2.
4) restart apache
DASHBOARD:
3) Add following into your virtual host configs:
Alias /buildlogs /opt/ccroot/work/logs
<Location "/buildlogs" >
XSLTDefaultStylesheet application/xml /etc/apache2/simple.xsl
XSLTDefaultStylesheet text/xml /etc/apache2/simple.xsl
AddOutputFilterByType mod-xslt text/xml
AddOutputFilterByType mod-xslt application/xml
</Location>
Second parameter in Alias row in the above snippet needs to point into
absolute root path where the cruisecontrol stores the buildlogs.
4) Modify webapps/dashboard/WEB-INF/vm/build_detail/build_detail_partial_log.vm
file:
Remove the <span> row completely and add following:
<span class="logfile"><a
href="/buildlogs/$projectName/$logfile">HTML</a></span> / <span
class="logfile"><a
href="$req.getContextPath()/tab/build/download/log/$projectName/$logfile">XML</a></span>
Now you have 2 build log formats available in "build log" tab in
dashboard , "HTML / XML"
5) restart apache
PS.
You can do both branches if you are running both apps ..
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com