Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

--jobs is now unlimited

  • Loading branch information...
commit a850537787776ca0e7fab0c775234a14bdb601df 1 parent bfa3218
@jimweirich authored
View
9 doc/command_line_usage.rdoc
@@ -60,11 +60,10 @@ Options are:
tasks into multitasks.
Sample values:
- (no -j) : Allow up to (# of CPUs + 4) number of threads
- -j : Allow up to (# of CPUs + 4) number of threads
- -j1 : Allow only one thread (the main thread)
- -j16 : Allow up to 16 concurrent threads
- -jmax : Allow unlimited number of threads
+ (no -j) : Allow up to (# of CPUs + 4) number of threads
+ --jobs : Allow unlimited number of threads
+ --jobs=1 : Allow only one thread (the main thread)
+ --jobs=16 : Allow up to 16 concurrent threads
[<tt>--job-stats</tt> _level_]
View
2  lib/rake/application.rb
@@ -409,7 +409,7 @@ def standard_rake_options
"Specifies the maximum number of tasks to execute in parallel. " +
"(default is number of CPU cores + 4)",
lambda { |value|
- if value == 'max'
+ if value.nil? || value == ''
value = FIXNUM_MAX
elsif value =~ /^\d+$/
value = value.to_i
View
5 test/test_rake_application_options.rb
@@ -126,11 +126,8 @@ def test_jobs
flags(['--jobs', 'asdas'], ['-j', 'asdas']) do |opts|
assert_equal Rake.suggested_thread_count-1, opts.thread_pool_size
end
- flags(['--jobs', 'max'], ['-j', 'max']) do |opts|
- assert opts.thread_pool_size > 1_000_000, "thread pool size should be huge (was #{opts.thread_pool_size})"
- end
flags('--jobs', '-j') do |opts|
- assert_equal Rake.suggested_thread_count-1, opts.thread_pool_size
+ assert opts.thread_pool_size > 1_000_000, "thread pool size should be huge (was #{opts.thread_pool_size})"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.