@@ -543,6 +543,10 @@ def _disconnect_target(self, application_name, application_dict, message):
543
543
def _get_plan_path (self , plan_path , archive_file , source_name , deployment_type , deployment_name , deployment_dict ):
544
544
_method_name = '_get_plan_path'
545
545
546
+ if self ._model_context .is_skip_archive ():
547
+ # Just return None so that the model plan file stays the same.
548
+ return None
549
+
546
550
plan_dir = None
547
551
if model_constants .PLAN_DIR in deployment_dict :
548
552
plan_dir = deployment_dict [model_constants .PLAN_DIR ]
@@ -551,19 +555,21 @@ def _get_plan_path(self, plan_path, archive_file, source_name, deployment_type,
551
555
552
556
if deployment_type == model_constants .LIBRARY :
553
557
archive_entry_type = WLSDeployArchive .ArchiveEntryType .SHLIB_PLAN
554
- download_file_type = 'sharedLibraries'
555
558
remote_archive_path = WLSDeployArchive .getShlibPlanArchivePath (plan_file_name )
556
- archive_add_method = archive_file .addSharedLibraryDeploymentPlan
557
559
else :
558
560
archive_entry_type = WLSDeployArchive .ArchiveEntryType .APPLICATION_PLAN
559
- download_file_type = 'applications'
560
561
remote_archive_path = WLSDeployArchive .getApplicationPlanArchivePath (plan_file_name )
561
- archive_add_method = archive_file .addApplicationDeploymentPlan
562
562
563
563
if self ._model_context .is_remote ():
564
564
new_plan_name = remote_archive_path
565
565
self .add_to_remote_map (plan_path , new_plan_name , archive_entry_type .name ())
566
- elif not self ._model_context .is_skip_archive ():
566
+ else :
567
+ if deployment_type == model_constants .LIBRARY :
568
+ download_file_type = 'sharedLibraries'
569
+ archive_add_method = archive_file .addSharedLibraryDeploymentPlan
570
+ else :
571
+ download_file_type = 'applications'
572
+ archive_add_method = archive_file .addApplicationDeploymentPlan
567
573
try :
568
574
if self ._model_context .is_ssh ():
569
575
plan_file_name = self .download_deployment_from_remote_server (
@@ -582,7 +588,7 @@ def _get_plan_path(self, plan_path, archive_file, source_name, deployment_type,
582
588
_logger .throwing (class_name = _class_name , method_name = _method_name , error = de )
583
589
raise de
584
590
585
- return new_plan_name
591
+ return new_plan_name
586
592
587
593
def _resolve_deployment_plan_path (self , plan_dir , plan_path ):
588
594
"""
0 commit comments