Skip to content

Commit cef9e69

Browse files
committed
missing rake namespace for adapter build tasks
1 parent 91528bb commit cef9e69

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Rakefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ require 'appraisal'
1212

1313
task :default => [:jar, :test]
1414

15-
#ugh, bundler doesn't use tasks, so gotta hook up to both tasks.
1615
task :build => :jar
1716
task :install => :jar
1817

@@ -24,10 +23,12 @@ rake = lambda { |task| ruby "-S", "rake", task }
2423
current_version = lambda { Bundler.load_gemspec('activerecord-jdbc-adapter.gemspec').version }
2524

2625
ADAPTERS.each do |target|
27-
task :build do
28-
version = current_version.call
29-
Dir.chdir(target) { rake.call "build" }
30-
cp FileList["#{target}/pkg/#{target}-#{version}.gem"], "pkg"
26+
namespace target do
27+
task :build do
28+
version = current_version.call
29+
Dir.chdir(target) { rake.call "build" }
30+
cp FileList["#{target}/pkg/#{target}-#{version}.gem"], "pkg"
31+
end
3132
end
3233
end
3334
DRIVERS.each do |target|

0 commit comments

Comments
 (0)