Skip to content

Commit

Permalink
Merge pull request rails#4735 from arton/master
Browse files Browse the repository at this point in the history
Re-launch assets:precompile task using original $0 if $0 is batch file so it works on Windows
  • Loading branch information
tenderlove committed Jan 31, 2012
1 parent 60cb7d6 commit 81f14a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion actionpack/lib/sprockets/assets.rake
Expand Up @@ -6,7 +6,11 @@ namespace :assets do
groups = ENV['RAILS_GROUPS'] || 'assets' groups = ENV['RAILS_GROUPS'] || 'assets'
args = [$0, task,"RAILS_ENV=#{env}","RAILS_GROUPS=#{groups}"] args = [$0, task,"RAILS_ENV=#{env}","RAILS_GROUPS=#{groups}"]
args << "--trace" if Rake.application.options.trace 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 end


# We are currently running with no explicit bundler group # We are currently running with no explicit bundler group
Expand Down

0 comments on commit 81f14a5

Please sign in to comment.