add tasks for generating config parsers

Fixes #11195
This commit is contained in:
Ry Biesemeyer 2019-10-07 23:14:47 +00:00
parent a9def1e108
commit 96dfeb5016
2 changed files with 10 additions and 1 deletions

View file

@ -141,6 +141,12 @@ task installTestGems(dependsOn: assemblyDeps) {
}
}
task compileGrammar(dependsOn: assemblyDeps) {
doLast {
rake(projectDir, buildDir, 'compile:grammar')
}
}
task assembleTarDistribution(dependsOn: assemblyDeps) {
inputs.files fileTree("${projectDir}/rakelib")
inputs.files fileTree("${projectDir}/bin")

View file

@ -8,7 +8,10 @@ end
namespace "compile" do
desc "Compile the config grammar"
task "grammar" => "logstash-core/lib/logstash/config/grammar.rb"
task "grammar" => %w(
logstash-core/lib/logstash/config/grammar.rb
logstash-core/lib/logstash/compiler/lscl/lscl_grammar.rb
)
def safe_system(*args)
if !system(*args)