Rakefile
changeset 5 804e1c2b9a40
parent 1 1d3cfd4837a8
child 11 7fc2d1713795
--- a/Rakefile	Fri May 09 17:51:36 2008 +0000
+++ b/Rakefile	Sat May 10 01:52:42 2008 +0000
@@ -132,7 +132,7 @@
 
 ### Cruisecontrol task
 desc "Cruisecontrol build"
-task :cruise => [:clean, :coverage, :package] do |task|
+task :cruise => [:clean, :coverage, :rdoc, :package] do |task|
 	raise "Artifacts dir not set." if ARTIFACTS_DIR.to_s.empty?
 	artifact_dir = ARTIFACTS_DIR.cleanpath
 	artifact_dir.mkpath
@@ -140,6 +140,9 @@
 	$stderr.puts "Copying coverage stats..."
 	FileUtils.cp_r( 'coverage', artifact_dir )
 	
+	$stderr.puts "Copying documentation..."
+	FileUtils.cp_r( 'docs/api', artifact_dir + 'rdoc' )
+	
 	$stderr.puts "Copying packages..."
 	FileUtils.cp_r( FileList['pkg/*'].to_a, artifact_dir )
 end