forked from logstash-plugins/logstash-filter-date
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (25 loc) · 769 Bytes
/
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
@files=[]
task :default do
system("rake -T")
end
require "logstash/devutils/rake"
task :vendor => :gradle
task :gradle => "gradle.properties" do
system("./gradlew vendor")
end
file "gradle.properties" do
delete_create_gradle_properties
end
def delete_create_gradle_properties
root_dir = File.dirname(__FILE__)
gradle_properties_file = "#{root_dir}/gradle.properties"
lsc_path = `bundle show logstash-core`
lsce_path = `bundle show logstash-core-event`
FileUtils.rm_f(gradle_properties_file)
File.open(gradle_properties_file, "w") do |f|
f.puts "logstashCoreGemPath=#{lsc_path}"
f.puts "logstashCoreEventGemPath=#{lsce_path}"
end
puts "-------------------> Wrote #{gradle_properties_file}"
puts `cat #{gradle_properties_file}`
end