Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: content-type-s…
Fetching contributors…

Cannot retrieve contributors at this time

87 lines (70 sloc) 2.098 kb
# -*- ruby -*- coding: utf-8 -*-
gems = %w[ iudex-filter iudex-http iudex-barc
iudex-core iudex-httpclient-3 iudex-char-detector
iudex-html iudex-simhash iudex-rome iudex-da
iudex-worker
iudex-brutefuzzy-protobuf iudex-brutefuzzy-service ]
subtasks = %w[ clean install_deps test gem docs tag install 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
# Install parent pom first on install
if sel_subtasks.include?( 'install' )
task :distribute => :install_parent_pom
end
desc "Install maven parent pom only"
task :install_parent_pom do
sh( "mvn -N install" )
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 "Aggregated javadocs via Maven"
task :javadoc do
sh( "mvn javadoc:aggregate" )
end
desc "Lazy dependencies for (re)rdoc tasks"
task :rdocdeps do
require 'rubygems'
require 'rdoc'
end
task :rdoc => [ :rdocdeps ]
task :rerdoc => [ :rdocdeps ]
require 'rake/rdoctask'
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_dir = "doc" # FIXME: www/_site/rdoc?
rd.title = "Iūdex RDoc"
rd.options << "--charset=UTF-8"
rd.rdoc_files.include( "README.rdoc" )
gems.each do |gem|
rd.rdoc_files.include( "#{gem}/README.rdoc",
"#{gem}/History.rdoc",
"#{gem}/lib/**/*.rb" )
end
end
Jump to Line
Something went wrong with that request. Please try again.