require 'sinatra'

$KCODE = 'u' if RUBY_VERSION < '1.9'

before do
	content_type :html, 'charset' => 'utf-8'
end

get '/cctray.xml' do

	body = 
	'<Projects>
    <Project name="connectfour" activity="Sleeping" lastBuildStatus="Success" lastBuildLabel="build.1" 
       lastBuildTime="2007-07-18T18:44:48" webUrl="http://localhost:8080/dashboard/build/detail/connectfour"/>
  </Projects>'
     
	[200, {"Content-Type" => "application/xml"}, body]
	 
end

get '/cctray.html' do

  body = '<html><body>sdhfsjkdf<p></body></html>'

  [200, {"Content-Type" => "text/html"}, body]

end

require 'sinatra'

$KCODE = 'u' if RUBY_VERSION < '1.9'

before do
	content_type :html, 'charset' => 'utf-8'
end

get '/cctray.xml' do

	body = 
	'<Projects>
    <Project name="connectfour" activity="Sleeping" lastBuildStatus="Success" lastBuildLabel="build.1" 
       lastBuildTime="2007-07-18T18:44:48" webUrl="http://localhost:4567/dashboard/build/detail/connectfour"/>
  </Projects>'

	[200, {"Content-Type" => "application/xml"}, body]
	 
end

get '/cctray.html' do

  body = '<html><body>sdhfsjkdf<p></body></html>'

  [200, {"Content-Type" => "text/html"}, body]

end
                                             
get '/dashboard/build/detail/connectfour' do

  body = '<html><body><h1>Connect Four</h1>This is the project page on the build server.</body></html>'

  [200, {"Content-Type" => "text/html"}, body]

end

Correct reporting of responses from server without project status; usually well-formed XHTML.
Correct reporting of responses from server without project status; usually well-formed XHTML.

git-svn-id: 6356d16c5fcd314faaf1b00f846dba9475d041eb@85 fc4f70da-8335-0410-99e3-8b437148c6d8
