From 169bfe951b6e616b6f240395e8a0f1be404c81dd Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Wed, 11 Oct 2023 10:43:34 -0500 Subject: [PATCH] Rakefile - clean up logging when using Windows --- Rakefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index f126284e..12ffaaea 100644 --- a/Rakefile +++ b/Rakefile @@ -45,8 +45,14 @@ JAVA_CLASSES = [] JRUBY_PARSER_JAR = File.expand_path("lib/json/ext/parser.jar") JRUBY_GENERATOR_JAR = File.expand_path("lib/json/ext/generator.jar") -RAGEL_CODEGEN = %w[rlcodegen rlgen-cd ragel].find(&which) -RAGEL_DOTGEN = %w[rlgen-dot rlgen-cd ragel].find(&which) +if RUBY_PLATFORM =~ /mingw|mswin/ + # cleans up Windows CI output + RAGEL_CODEGEN = %w[ragel].find(&which) + RAGEL_DOTGEN = %w[ragel].find(&which) +else + RAGEL_CODEGEN = %w[rlcodegen rlgen-cd ragel].find(&which) + RAGEL_DOTGEN = %w[rlgen-dot rlgen-cd ragel].find(&which) +end desc "Installing library (pure)" task :install_pure => :version do