-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
83 lines (72 loc) · 1.73 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# -*- ruby -*-
gems = %w[ tarpit
slf4j
logback
commons-pool
commons-codec
commons-dbcp
commons-dbutils
httpclient-3
httpclient-4
jdom
jetty
jetty-jsp
rome
jets3t
xerces
nekohtml
protobuf ]
desc "Run multi['task1 tasks2'] tasks over all sub gems"
task( :multi, :subtasks ) do |t,args|
subtasks = args.subtasks.split
gems.each do |dir|
Dir.chdir( dir ) do
puts ">> cd #{dir}"
sh( "jrake", *subtasks )
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 "Deferred dependencies for rdoc"
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 = "RJack 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
require 'rubygems'
require 'yard'
require 'yard/rake/yardoc_task'
YARD::Rake::YardocTask.new do |t|
t.files << "README.rdoc"
gems.each do |gem|
t.files += [ "#{gem}/README.rdoc",
"#{gem}/History.rdoc",
"#{gem}/lib/**/*.rb" ]
end
end