Skip to content

Commit

Permalink
Update thrift rake task to use the correct vendor versioned directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Jackson committed Oct 8, 2011
1 parent 91a1507 commit b9cef0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,12 @@ task :test => 'data:load'
# desc "Regenerate thrift bindings for Cassandra" # Dev only
task :thrift do
puts "Generating Thrift bindings"
FileUtils.mkdir_p "vendor/#{CASSANDRA_VERSION}"

system(
"cd vendor &&
"cd vendor/#{CASSANDRA_VERSION} &&
rm -rf gen-rb &&
thrift -gen rb #{CASSANDRA_HOME}/interface/cassandra.thrift")
thrift -gen rb #{File.join(CASSANDRA_HOME, "cassandra-#{CASSANDRA_VERSION}")}/interface/cassandra.thrift")
end

task :fix_perms do
Expand Down

0 comments on commit b9cef0d

Please sign in to comment.