@@ -86,7 +86,9 @@ def __process_args(args):
8686 cla_util = CommandLineArgUtil (_program_name , __required_arguments , __optional_arguments )
8787 argument_map = cla_util .process_args (args , trailing_arg_count = 2 )
8888
89- return ModelContext (_program_name , argument_map )
89+ model_context = ModelContext (_program_name , argument_map )
90+ model_context .set_ignore_missing_archive_entries (True )
91+ return model_context
9092
9193
9294class ModelDiffer :
@@ -505,21 +507,14 @@ def compare(self):
505507
506508 variables .substitute (model_dictionary , variable_map , self .model_context )
507509
508- # Run this utility in stand-alone mode instead of tool mode,
509- # which has stricter checks for the tools.
510- # An archive is not used with the compare models and if the model
511- # references a file in an archive, the compareModel will fail if
512- # running in the stricter tool mode (even with lax).
513- #
514510 arg_map = dict ()
515511 arg_map [CommandLineArgUtil .MODEL_FILE_SWITCH ] = model_file_name
516512 model_context_copy = self .model_context .copy (arg_map )
517513 val_copy = Validator (model_context_copy , aliases , wlst_mode = WlstModes .OFFLINE )
518514
519515 # any variables should have been substituted at this point
520- validate_variables = {}
521- return_code = val_copy .validate_in_standalone_mode (model_dictionary , validate_variables ,
522- archive_file_name = None )
516+ return_code = val_copy .validate_in_tool_mode (model_dictionary , variables_file_name = None ,
517+ archive_file_name = None )
523518
524519 if return_code == Validator .ReturnCode .STOP :
525520 _logger .severe ('WLSDPLY-05705' , model_file_name )
@@ -534,8 +529,8 @@ def compare(self):
534529 arg_map [CommandLineArgUtil .MODEL_FILE_SWITCH ] = model_file_name
535530 model_context_copy = self .model_context .copy (arg_map )
536531 val_copy = Validator (model_context_copy , aliases , wlst_mode = WlstModes .OFFLINE )
537- return_code = val_copy .validate_in_standalone_mode (model_dictionary , validate_variables ,
538- archive_file_name = None )
532+ return_code = val_copy .validate_in_tool_mode (model_dictionary , variables_file_name = None ,
533+ archive_file_name = None )
539534
540535 if return_code == Validator .ReturnCode .STOP :
541536 _logger .severe ('WLSDPLY-05705' , model_file_name )
0 commit comments