Menu

[r36]: / osmb / trunk / build / cruisecontrol / docs / reporting / jsp / install.html  Maximize  Restore  History

Download this file

145 lines (123 with data), 7.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>CruiseControl Build Results JSP Installation Guide</title>
<style type="text/css" media="all">
@import "../../cruisecontrol.css";
</style>
<link href="../../print.css" type="text/css" rel="stylesheet" media="print"/>
</head>
<body>
<div class="header">
<div class="hostedby">
Hosted By:<br/>
<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>
</div>
<div class="logo"><img alt="CruiseControl" src="../../banner.png"/></div>
</div>
<div class="container">&nbsp;
<div id="menu">
<ul id="menulist">
<li class="top"><a href="../../index.html">home</a></li>
<li><a href="../../download.html">download</a></li>
<li><a href="../../license.html">license</a></li>
<li><h2>documentation</h2></li>
<li><a href="../../overview.html">overview</a></li>
<li><a class="expandmenu" href="../../main/index.html">build loop</a></li>
<li><a class="expandedmenu" href="index.html">results jsp</a>
<ul>
<li><p id="menuselected">install</p></li>
<li><a href="custom.html">customization</a></li>
</ul>
</li>
<li><a class="expandmenu" href="../../dashboard.html">dashboard</a></li>
<li><a class="expandmenu" href="../../gettingstarted.html">getting started</a></li>
<li><a href="../../main/configxml.html">config ref</a></li>
<li><a href="../../faq.html">faq</a></li>
<li><a class="external" href="http://confluence.public.thoughtworks.org/display/CC/Home">wiki</a></li>
<li><h2>contributing</h2></li>
<li><a class="expandmenu" href="../../developers.html">developers</a></li>
<li><a href="../../contact.html">mailing lists</a></li>
<li><a href="../../svn.html">source repository</a></li>
<li><p id="menubottom">Release: 2.7.3</p></li>
</ul>
</div>
<div class="content">
<h1><span class="printonly">CruiseControl</span> Build Results JSP Installation Guide</h1>
<p>Note that this is a brief guide to installation from the source code. For basic CruiseControl installation, go to the <a href="../../gettingstarted.html">Getting Started</a> page.</p>
<h2>Getting The Source</h2>
If you have Subversion installed, you can get the entire CruiseControl source by running:
<pre>
svn checkout https://cruisecontrol.svn.sourceforge.net/svnroot/cruisecontrol/trunk/cruisecontrol
</pre>
<p>
Once you have obtained the source, you should have a reporting/jsp directory that contains the following:<br/>
<span class="small">src</span> - The source for the JSP custom tags<br/>
<span class="small">test</span> - JUnit Tests for the JSP custom tags<br/>
<span class="small">docs</span> - This manual<br/>
<span class="small">dist</span> - Output directory for the cruisecontrol.war distributable<br/>
<span class="small">images</span> - Images used by the buildresults.jsp<br/>
<span class="small">lib</span> - 3rd party libraries<br/></p>
<h2>Configuring</h2>
<p>The <code>WEB-INF/web.xml</code> file holds the required configuration for the
JSP. There are currently 2 parameters that need to be set. The first
is the path to the log directory. This is required so that the JSP can
read the CruiseControl log files to build the left-hand navigation.
The second is the path to the current build status file. This is the
file that is written by the CruiseControl build loop to let the JSP
know whether it is currently building, or when the next build will
occur.</p>
<p> You can edit them directly in the <code>WEB-INF/web.xml</code> file, or you can
set them when you <a href="#Building">build the WAR file</a></p>
<p>Depending on the version of the JSP specification that is
implemented by your app server, you may need to make one minor edit to
the <code>buildresults.jsp</code> file. If you are using a server that is JSP 1.2
compliant, you will need to change the second line after the license
text from:</p>
<pre>
&lt;%@ taglib uri="/WEB-INF/cruisecontrol-jsp11.tld" prefix="cruisecontrol"%&gt;
</pre>
to:
<pre>
&lt;%@ taglib uri="/WEB-INF/cruisecontrol-jsp12.tld" prefix="cruisecontrol"%&gt;
</pre>
<p>It is also possible to configure the date format used in the
navigation links. To change this, we'll need to edit the
<code>buildresults.jsp</code> itself. On the <code>&lt;cruisecontrol:nav&gt;</code>
tag, we can add the <code>dateFormat</code> attribute. Then we can set
this value to be whatever we choose, as long as it's a valid date
format as recognized by Java.</p>
<h2><a name="Building">Building</a></h2>
<p>CruiseControl uses <a class="external" href="http://jakarta.apache.org/ant">Ant</a> to
build and package the build results web application. Everything you
need to build has been included with the source that you obtained from
Subversion. There is a batch file and a shell script (<code>build.bat</code> and
<code>build.sh</code> respectively) provided to make building the CruiseControl web
application as easy as possible. The configured <code>cruisecontrol.war</code> file
has been created in the dist directory.</p>
<p>You can include options to configure the log directory, status file, and
artifacts directory that you wish to use. The properties to set are
<code>user.log.dir</code>, <code>user.build.status.file</code>, and
<code>cruise.build.artifacts.dir</code>. An example (for Windows) of
doing this would be:</p>
<pre>
build.bat -Duser.log.dir=C:\Cruise\logs -Duser.build.status.file=status.txt
-Dcruise.build.artifacts.dir=C:\Cruise\logs
</pre>
<p>For repeated builds a more convenient method of supplying the values you
wish to use is to supply them in a file named override.properties. If a file
with this name exists the properties defined within will be used when building
the war file.</p>
<h2>Deploying</h2>
<h3>Tomcat</h3>
<p>Copy the cruisecontrol.war file from the dist directory to the
<code>%TOMCAT_HOME%/webapps</code> directory. Then startup the server by going to
the <code>%TOMCAT_HOME%/bin</code> directory and using the startup script. The
cruisecontrol web application should deploy and you should be able to
test it out by opening a web browser and going to:</p>
<pre>
http://localhost:8080/cruisecontrol/buildresults</pre>
</div>
</div>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.