Permalink
Browse files

runner and benchmark sh can be used without needing to be generated

  • Loading branch information...
1 parent 2eb3f60 commit b47fc829449ed513313c2cefabf5c6d0199832be @danielribeiro committed Dec 21, 2010
Showing with 4 additions and 30 deletions.
  1. +0 −30 Rakefile
  2. +2 −0 benchmark.sh
  3. +2 −0 runner.sh
View
@@ -33,33 +33,3 @@ task :benchmark, :chunkSize, :mapActorsCount do |t, args|
jruby_execute 'lib/benchmarking_akka.rb',
[args.chunkSize || "200", args.mapActorsCount || "2"]
end
-
-desc "Generates runner script appropriate for the current machine.
-For users using jruby rake"
-task :genrunner do
- puts "Generating runner.sh"
- filename = "lib/actor_word_count.rb" if filename.nil?
- File.open("runner.sh", 'w') do |f|
- f.write <<-eof
-#!/bin/bash
-CLASSPATH=#{classpath} jruby -Ilib $1
-eof
- end
- File.chmod 0755, "runner.sh"
- puts "runner.sh created!"
-end
-
-desc "Generates a benchmark script appropriate for the current machine.
-For users using jruby rake"
-task :genbenchmark do
- puts "Generating benchmark.sh"
- filename = "lib/actor_word_count.rb" if filename.nil?
- File.open("benchmark.sh", 'w') do |f|
- f.write <<-eof
-#!/bin/bash
-CLASSPATH=#{classpath} jruby -Ilib #{file} $1 $2
-eof
- end
- File.chmod 0755, "benchmark.sh"
- puts "benchmark.sh created!"
-end
View
@@ -0,0 +1,2 @@
+#!/bin/bash
+CLASSPATH=./vendor:./vendor/akka_2.8.0-0.10.jar:./vendor/akka-core_2.8.0-0.10.jar:./vendor/scala-library.jar jruby -Ilib lib/benchmarking_akka.rb $1 $2
View
@@ -0,0 +1,2 @@
+#!/bin/bash
+CLASSPATH=./vendor:./vendor/akka_2.8.0-0.10.jar:./vendor/akka-core_2.8.0-0.10.jar:./vendor/scala-library.jar jruby -Ilib $1

0 comments on commit b47fc82

Please sign in to comment.