@@ -206,7 +206,8 @@ def __add_applications(self):
206206
207207 if app_source_path .startswith (WLSDeployArchive .ARCHIVE_STRUCT_APPS_TARGET_DIR ):
208208 plan_dir = dictionary_utils .get_element (application , PLAN_DIR )
209- self ._fix_plan_file (plan_dir )
209+ plan_path = dictionary_utils .get_element (application , PLAN_PATH )
210+ self ._fix_plan_file (plan_dir , plan_path )
210211
211212 self .logger .exiting (class_name = self ._class_name , method_name = _method_name )
212213
@@ -651,7 +652,8 @@ def __build_app_deploy_strategy(self, location, model_apps, existing_app_refs, s
651652
652653 if param == SOURCE_PATH and param .startswith (WLSDeployArchive .ARCHIVE_STRUCT_APPS_TARGET_DIR ):
653654 plan_dir = dictionary_utils .get_element (app , PLAN_DIR )
654- self ._fix_plan_file (plan_dir )
655+ plan_path = dictionary_utils .get_element (app , PLAN_PATH )
656+ self ._fix_plan_file (plan_dir , plan_path )
655657
656658 if model_helper .is_delete_name (app ):
657659 if self .__verify_delete_versioned_app (app , existing_apps , 'app' ):
@@ -1142,9 +1144,12 @@ def __get_deployment_ordering(self, apps):
11421144 class_name = self ._class_name , method_name = _method_name )
11431145 return result_deploy_order
11441146
1145- def _fix_plan_file (self , plan_dir ):
1146- #self.archive_helper.extract_directory(plan_dir)
1147- plan_file = os .path .join (self .model_context .get_domain_home (), plan_dir , "plan.xml" )
1147+ def _fix_plan_file (self , plan_dir , plan_path ):
1148+ plan_file_name = 'plan.xml'
1149+ if plan_path is not None and len (str (plan_path )) > 0 :
1150+ plan_file_name = plan_path
1151+
1152+ plan_file = os .path .join (self .model_context .get_domain_home (), plan_dir , plan_file_name )
11481153 dbf = DocumentBuilderFactory .newInstance ()
11491154 db = dbf .newDocumentBuilder ()
11501155 document = db .parse (File (plan_file ))
0 commit comments