Author: toulmean
Date: Thu Jul 22 02:43:23 2010
New Revision: 966483

URL: http://svn.apache.org/viewvc?rev=966483&view=rev
Log:
adding metrics

Added:
    buildr/trunk/rakelib/metrics.rake

Added: buildr/trunk/rakelib/metrics.rake
URL: 
http://svn.apache.org/viewvc/buildr/trunk/rakelib/metrics.rake?rev=966483&view=auto
==============================================================================
--- buildr/trunk/rakelib/metrics.rake (added)
+++ buildr/trunk/rakelib/metrics.rake Thu Jul 22 02:43:23 2010
@@ -0,0 +1,29 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with this
+# work for additional information regarding copyright ownership.  The ASF
+# licenses this file to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+namespace :metrics do
+  desc 'run Saikuro reports'
+  task :saikuro do
+    cmd = "saikuro -c -t -i 
#{File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))} -y 0 -w 11 
-e 16 -o _reports/saikuro"
+    system cmd
+  end
+  
+  desc 'generate ccn treemap'
+  task :ccn_treemap do
+    require 'saikuro_treemap'
+    SaikuroTreemap.generate_treemap :code_dirs => ['lib', 'addons'], 
:output_file => "_reports/saikuro_treemap.html"
+    `open reports/saikuro_treemap.html`
+  end
+end
\ No newline at end of file


Reply via email to