@@ -206,7 +206,8 @@ def __add_applications(self):
206
206
207
207
if app_source_path .startswith (WLSDeployArchive .ARCHIVE_STRUCT_APPS_TARGET_DIR ):
208
208
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 )
210
211
211
212
self .logger .exiting (class_name = self ._class_name , method_name = _method_name )
212
213
@@ -651,7 +652,8 @@ def __build_app_deploy_strategy(self, location, model_apps, existing_app_refs, s
651
652
652
653
if param == SOURCE_PATH and param .startswith (WLSDeployArchive .ARCHIVE_STRUCT_APPS_TARGET_DIR ):
653
654
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 )
655
657
656
658
if model_helper .is_delete_name (app ):
657
659
if self .__verify_delete_versioned_app (app , existing_apps , 'app' ):
@@ -1142,9 +1144,12 @@ def __get_deployment_ordering(self, apps):
1142
1144
class_name = self ._class_name , method_name = _method_name )
1143
1145
return result_deploy_order
1144
1146
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 )
1148
1153
dbf = DocumentBuilderFactory .newInstance ()
1149
1154
db = dbf .newDocumentBuilder ()
1150
1155
document = db .parse (File (plan_file ))
0 commit comments