PageRenderTime 32ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

/cruisecontrol/webapps/documentation/reporting/jsp/custom.html

http://rubystudy.googlecode.com/
HTML | 179 lines | 158 code | 21 blank | 0 comment | 0 complexity | 7b97e533e11216b2abd4eff038d9d018 MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-3.0, Apache-2.0, CPL-1.0, LGPL-2.1, MPL-2.0-no-copyleft-exception
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html>
  3. <head>
  4. <title>CruiseControl Build Results JSP Installation Guide</title>
  5. <style type="text/css" media="all">
  6. @import "../../cruisecontrol.css";
  7. </style>
  8. <link href="../../print.css" type="text/css" rel="stylesheet" media="print"/>
  9. </head>
  10. <body>
  11. <div class="header">
  12. <div class="hostedby">
  13. Hosted By:<br/>
  14. <a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=23523&amp;type=1" width="88" height="31" alt="SourceForge"/></a>
  15. </div>
  16. <div class="logo"><img alt="CruiseControl" src="../../banner.png"/></div>
  17. </div>
  18. <div class="container">&nbsp;
  19. <div id="menu">
  20. <ul id="menulist">
  21. <li class="top"><a href="../../index.html">home</a></li>
  22. <li><a href="../../download.html">download</a></li>
  23. <li><a class="expandmenu" href="../../gettingstarted.html">getting started</a></li>
  24. <li><h2>documentation</h2></li>
  25. <li><a class="expandedmenu" href="../../overview.html">overview</a>
  26. <ul>
  27. <li><a class="expandmenu" href="../../main/index.html">build loop</a></li>
  28. <li><a class="expandedmenu" href="index.html">results jsp</a>
  29. <ul>
  30. <li><a href="install.html">install</a></li>
  31. <li><p id="menuselected">customization</p></li>
  32. </ul>
  33. </li>
  34. <li><a class="expandmenu" href="../../dashboard.html">dashboard</a></li>
  35. <li><a class="expandmenu" href="../../distributed/index.html">distributed</a></li>
  36. </ul>
  37. </li>
  38. <li><a href="../../main/configxml.html">config.xml</a></li>
  39. <li><a href="../../faq.html">faq</a></li>
  40. <li><a class="external" href="http://confluence.public.thoughtworks.org/display/CC/Home">wiki</a></li>
  41. <li><h2>contributing</h2></li>
  42. <li><a class="expandmenu" href="../../developers.html">developers</a></li>
  43. <li><a href="../../contact.html">mailing lists</a></li>
  44. <li><a href="../../svn.html">source repository</a></li>
  45. <li><a href="../../license.html">license</a></li>
  46. <li><p id="menubottom">Release: 2.8.2</p></li>
  47. </ul>
  48. </div>
  49. <div class="content">
  50. <h1><span class="printonly">CruiseControl</span> Build Results JSP Customization</h1>
  51. <h2>Build parameters</h2>
  52. <p>Three configuration settings are specified when building the reporting applications. See the
  53. <a href="install.html#Building">Building</a> section of the Installation Guide</p>
  54. <h2>System properties</h2>
  55. <p>The binary release uses System properties to pass the value of commandline arguments from the main
  56. CruiseControl process to the Reporting application.</p>
  57. <dl>
  58. <dt>ccname</dt>
  59. <dd>Name for this CruiseControl instance</dd>
  60. <dd class="default-value">The binaryrelease sets this to the <code>-ccname</code> value given as a
  61. commandline argument</dd>
  62. <dt>cruisecontrol.jmxport</dt>
  63. <dd>port where the CruiseControl JMX agent's HTTP adaptor is listening.</dd>
  64. <dd class="default-value">Default value is 8000. The binaryrelease sets this to the <code>-jmxport</code> value given as a
  65. commandline argument (by default 8000)</dd>
  66. <dt>cruisecontrol.jmxhost</dt>
  67. <dd>host where the CruiseControl JMX agent's HTTP adaptor is listening</dd>
  68. <dd class="default-value">If not specified CruiseControl will trying to guess the host name running the reporting application</dd>
  69. <dt>cruisecontrol.rmiport</dt>
  70. <dd>port where CruiseControl JMX agent's RMI adaptor is listening. If specified enables the experimental
  71. configuration editor.</dd>
  72. <dd class="default-value">The binaryrelease sets this to the <code>-rmiport</code> value given as a
  73. commandline argument</dd>
  74. </dl>
  75. <h2>Deployment descriptor (web.xml)</h2>
  76. <p>The JSP reporting application uses context parameters and servlet init parameters configuration and
  77. customization. These parameters can be edited in the web.xml file directly. Some Web Containers like
  78. <a class="external" href="http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Context%20Parameters">
  79. Tomcat</a> allow the default values to be override without changing the <code>web.xml</code> or the
  80. <code>war</code> file.
  81. </p>
  82. <h3>Context parameters</h3>
  83. <dl>
  84. <dt>cacheRoot</dt>
  85. <dd>Full path to a directory where caches of XSL transformations are written. The web context must have
  86. permission to write to this directory. If not specified, caches will be written in a subdir called
  87. _cache of the <code>logDir</code></dd>
  88. <dd class="default-value">The binaryrelease does not specify this parameter</dd>
  89. <dt>logDir</dt>
  90. <dd>This should be the full path to your CruiseControl log directory. If you are in single project mode,
  91. this will contain only the logs for your project. If you are in multi-project mode, it is expected that
  92. you will have multiple sub-directories inside this log directory, one for each project.</dd>
  93. <dd class="default-value">The default default value is the build parameter <code>user.log.dir</code>. The
  94. binary release sets this to <code>logs</code></dd>
  95. <dt>singleProject</dt>
  96. <dd>Indicates if the CruiseControl instance is to report on only one project. If it is, then you should set
  97. this to true.</dd>
  98. <dd class="default-value">The default value is <code>false</code></dd>
  99. <dt>currentBuildStatusFile</dt>
  100. <dd>This should be the name to your current build status file as generated by the currentbuildstatuslistener,
  101. which is located to the projects log directory.</dd>
  102. <dd class="default-value">The default default value is the build parameter <code>user.build.status.file</code>.
  103. The binary release sets this to <code>status.txt</code></dd>
  104. <dt>fileServlet.welcomeFiles</dt>
  105. <dd>The list of space separated index files that should be automatically displayed
  106. when browsing a directory displayed by the file servlet. The order matters.
  107. Let empty or comment out to disable indexes.</dd>
  108. <dd class="default-value">The default values are: <code>index.htm index.html</code></dd>
  109. <dt>cruisecontrol.jmxhost</dt>
  110. <dd>The host for the JMX HttpAdaptor to which CruiseControl will connect for forcing builds and
  111. viewing the control panel. The parameter may be overridden using the system property with
  112. the same name.</dd>
  113. <dd class="default-value">The default value is: <code>localhost</code></dd>
  114. <dt>cruisecontrol.jmxport</dt>
  115. <dd>The port for the JMX HttpAdaptor to which CruiseControl will connect for forcing builds and
  116. viewing the control panel. The parameter may be overridden using the system property with
  117. the same name.</dd>
  118. <dd class="default-value">The default value is: <code>8000</code></dd>
  119. <dt>xslt.*</dt>
  120. <dd>any context parameter that starts with <code>xslt.</code> will be pass to the XSL stylesheets as a XSLT
  121. parameter without the <code>xslt.</code> prefix. See <a href="#XSLT_parameters">XSLT parameters</a></dd>
  122. </dl>
  123. <h3>Servlet init-param</h3>
  124. <p>Beside the context parameters the <code>ArtifactServlet</code> takes an init parameter</p>
  125. <dl>
  126. <dt>rootDir</dt>
  127. <dd>The absolute path to the directory where additional build artifacts are stored. If this is not specified
  128. the <code>logDir</code> context parameter will be used</dd>
  129. <dd class="default-value">The default default value is the build parameter
  130. <code>cruise.build.artifacts.dir</code>. The binary release sets this to <code>artifacts</code></dd>
  131. </dl>
  132. <h2 id="XSLT_parameters">XSLT parameters</h2>
  133. <p>Some of the XSL stylesheets can be configured using XSLT parameters. These parameters are configured as
  134. context parameters with a <code>xslt.</code> prefix, that is XSLT Parameter <code>viewcvs.url</code> is
  135. configured a context parameter <code>xslt.viewcvs.url</code></p>
  136. <dl>
  137. <dt>pmd.warning.threshold</dt>
  138. <dd>PMD violations with a priority below this threshold are considered warnings and are only reported by the
  139. total count on the build results page.
  140. </dd>
  141. <dd class="default-value">This is not specified by default</dd>
  142. <dt>viewcvs.url</dt>
  143. <dd>The URL of the ViewCVS website used by cvstagdiff.xsl, checkstyle-details.xsl and pmd-details.xsl</dd>
  144. <dd class="default-value">This is not specified by default</dd>
  145. <dt>cvstagdiff.success.show</dt>
  146. <dd>Controls whether the ViewCVS differences report should be shown when the build was successful. The default
  147. is to only show the modifications report for broken builds</dd>
  148. <dd class="default-value">true</dd>
  149. <dt>checkstyle.hide.warnings</dt>
  150. <dd>Controls whether only CheckStyle errors or all CheckStyle errors and warnings should be listed on the
  151. build results page. Set to 'true' for hiding the warnings. The default is to list all errors and warnings.
  152. </dd>
  153. <dd class="default-value">This is not specified by default</dd>
  154. </dl>
  155. </div>
  156. </div>
  157. </body>
  158. </html>