diff options
author | arton <artonx@yahoo.co.jp> | 2012-01-29 05:06:14 +0900 |
---|---|---|
committer | arton <artonx@yahoo.co.jp> | 2012-01-29 05:06:14 +0900 |
commit | c11e78c1b6655fd42f624b2bd62ebb801284b531 (patch) | |
tree | de144521328e3d6a873762358d12447a6680bf72 /actionpack | |
parent | fd3211ef677efe9531f38db58919a8c90d65892a (diff) | |
download | rails-c11e78c1b6655fd42f624b2bd62ebb801284b531.tar.gz rails-c11e78c1b6655fd42f624b2bd62ebb801284b531.tar.bz2 rails-c11e78c1b6655fd42f624b2bd62ebb801284b531.zip |
run direcly $0 if rake invoked by Windows batch file.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/sprockets/assets.rake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake index f3547359cd..2e92fe416b 100644 --- a/actionpack/lib/sprockets/assets.rake +++ b/actionpack/lib/sprockets/assets.rake @@ -6,7 +6,11 @@ namespace :assets do groups = ENV['RAILS_GROUPS'] || 'assets' args = [$0, task,"RAILS_ENV=#{env}","RAILS_GROUPS=#{groups}"] args << "--trace" if Rake.application.options.trace - fork ? ruby(*args) : Kernel.exec(FileUtils::RUBY, *args) + if $0 =~ /rake\.bat\Z/i + Kernel.exec $0, *args + else + fork ? ruby(*args) : Kernel.exec(FileUtils::RUBY, *args) + end end # We are currently running with no explicit bundler group |