lib/adapt/config/loader.rb in bake-toolkit-2.63.2 vs lib/adapt/config/loader.rb in bake-toolkit-2.64.0

- old
+ new

@@ -1,6 +1,7 @@ require_relative '../../bake/model/loader' +require_relative '../../bake/config/loader' require_relative '../../bake/config/checks' module Bake class AdaptConfig @@ -20,9 +21,13 @@ f = @loader.load(filename) if f.root_elements.any? { |re| ! Metamodel::Adapt === re } Bake.formatter.printError("Config file must have only 'Adapt' elements as roots", filename) ExitHelper.exit(1) + end + + f.root_elements.each do |a| + Bake::Config::checkVer(a.requiredBakeVersion) end configs = [] f.root_elements.each { |re| configs.concat(re.getConfig) } AdaptConfig::checkSyntax(configs, filename)