Permalink
Switch branches/tags
slf4j-1.6 slf4j-1.5.6.3 slf4j-1.5.6.2 slf4j-1.5.6.1 slf4j-1.5.5.1 rjack-zookeeper-3.4.5.0 rjack-zookeeper-3.3.6.0 rjack-xerces-2.11.0.0 rjack-xerces-2.9.1.0 rjack-tarpit-2.1.2 rjack-tarpit-2.1.1 rjack-tarpit-2.1.0 rjack-tarpit-2.0.3 rjack-tarpit-2.0.2 rjack-tarpit-2.0.1 rjack-tarpit-2.0.0 rjack-tarpit-1.4.1 rjack-tarpit-1.4.0 rjack-tarpit-1.3.3 rjack-tarpit-1.3.2 rjack-tarpit-1.3.1 rjack-tarpit-1.3.0 rjack-tarpit-1.2.3 rjack-tarpit-1.2.2 rjack-tarpit-1.2.1 rjack-tarpit-1.2.0 rjack-tarpit-1.1.0 rjack-tarpit-1.0.1 rjack-tarpit-1.0.0 rjack-solr-4.3.1.0 rjack-solr-4.2.1.1 rjack-solr-4.2.1.0 rjack-solr-4.1.0.0 rjack-solr-4.0.0.0 rjack-solr-3.6.2.0 rjack-solr-3.6.1.0 rjack-solr-3.6.0.0 rjack-slf4j-1.7.25.0 rjack-slf4j-1.7.19.0 rjack-slf4j-1.7.10.0 rjack-slf4j-1.7.7.1 rjack-slf4j-1.7.7.0 rjack-slf4j-1.7.6.0 rjack-slf4j-1.7.5.0 rjack-slf4j-1.7.2.0 rjack-slf4j-1.7.0.0 rjack-slf4j-1.6.6.0 rjack-slf4j-1.6.5.0 rjack-slf4j-1.6.4.0 rjack-slf4j-1.6.2.0 rjack-slf4j-1.6.1.0 rjack-slf4j-1.5.11.1 rjack-slf4j-1.5.11.0 rjack-slf4j-1.5.10.0 rjack-slf4j-1.5.8.1 rjack-rome-1.0.2 rjack-rome-1.0.0 rjack-qpid-client-0.24.0 rjack-qpid-client-0.20.0 rjack-qpid-client-0.18.1 rjack-qpid-client-0.18.0 rjack-qpid-client-0.16.0 rjack-qpid-client-0.14.2 rjack-qpid-client-0.14.1 rjack-qpid-client-0.14.0 rjack-qpid-client-0.12.0 rjack-qpid-client-0.10.0 rjack-qpid-client-0.8.1 rjack-qpid-client-0.8.0 rjack-protobuf-2.5.0.0 rjack-protobuf-2.4.1.0 rjack-protobuf-2.3.0.0 rjack-netty-3.9.6.0 rjack-netty-3.9.3.0 rjack-netty-3.9.0.0 rjack-netty-3.6.8.0 rjack-netty-3.6.6.0 rjack-netty-3.6.3.0 rjack-netty-3.4.6.0 rjack-netty-3.2.8.0 rjack-nekohtml-1.9.21.0 rjack-nekohtml-1.9.20.0 rjack-nekohtml-1.9.19.0 rjack-nekohtml-1.9.18.0 rjack-nekohtml-1.9.17.0 rjack-nekohtml-1.9.15.0 rjack-nekohtml-1.9.14.0 rjack-mina-1.0.10.0 rjack-maven-3.0.5.0 rjack-maven-3.0.4.0 rjack-maven-3.0.3.1 rjack-lucene-4.3.1.0 rjack-lucene-4.2.1.0 rjack-lucene-4.1.0.0 rjack-lucene-4.0.0.0 rjack-lucene-3.6.2.0 rjack-lucene-3.6.1.0 rjack-lucene-3.6.0.0 rjack-logback-1.9.0 rjack-logback-1.8.1
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
98 lines (81 sloc) 2.02 KB
# -*- ruby -*-
gems = %w[ tarpit
maven
slf4j
logback
mina
netty
async-httpclient
commons-pool
commons-codec
commons-dbcp
commons-dbutils
guava
httpclient-3
httpclient-4
icu
jackson
jdom
jetty
jetty-jsp
rome
jets3t
xerces
nekohtml
protobuf
jdbc-postgres
jms-spec
jms
qpid-client
zookeeper
lucene
solr ]
subtasks = %w[ clean install_deps test gem docs tag install publish_rdoc push ]
task :default => :test
# Common task idiom for the common distributive subtasks
sel_tasks = Rake.application.top_level_tasks
sel_tasks << 'test' if sel_tasks.delete( 'default' )
sel_subtasks = ( subtasks & sel_tasks )
task :distribute do
Rake::Task[ :multi ].invoke( sel_subtasks.join(' ') )
end
subtasks.each do |sdt|
desc ">> Run '#{sdt}' on all gem sub-directories"
task sdt => :distribute
end
desc "Run multi['task1 tasks2'] tasks over all sub gems"
task( :multi, :subtasks ) do |t,args|
stasks = args.subtasks.split
gems.each do |dir|
Dir.chdir( dir ) do
puts ">> cd #{dir}"
sh( $0, *stasks )
end
end
end
desc "Run multish['shell command'] over all sub gem dirs"
task( :multish, :subtasks ) do |t,args|
gems.each do |dir|
Dir.chdir( dir ) do
puts ">> cd #{dir}"
sh( args.subtasks )
end
end
end
desc "Generate per-gem Gemfiles and jbundle install each"
task :generate_gemfile_per_gem do
( gems - %w[ tarpit maven ] ).each do |sname|
Dir.chdir( sname ) do
puts "=== Gemfile: #{sname} ==="
File.open( 'Gemfile', 'w' ) do |fout|
fout.write <<RUBY
# -*- ruby -*-
source :rubygems
gemspec :path => '.', :name => 'rjack-#{sname}'
RUBY
end
system "jbundle install --path /home/david/.gem --local" or
raise "Failed with #{$?}"
end
end
end