Skip to content

Commit 69c5dcd

Browse files
authored
Don't add domain libraries when -skip_archive is specified (#1241)
* Don't add domain libraries when -skip_archive is specified * Call skip_archive as a function
1 parent de79a04 commit 69c5dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/python/wlsdeploy/tool/discover/domain_info_discoverer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def get_domain_libs(self):
8787
archive_file = self._model_context.get_archive_file()
8888
domain_lib = self._convert_path('lib')
8989
entries = []
90-
if os.path.isdir(domain_lib):
90+
if os.path.isdir(domain_lib) and not self._model_context.skip_archive():
9191
_logger.finer('WLSDPLY-06420', domain_lib, class_name=_class_name, method_name=_method_name)
9292
for entry in os.listdir(domain_lib):
9393
entry_path = os.path.join(domain_lib, entry)
@@ -121,7 +121,7 @@ def get_user_env_scripts(self):
121121
else:
122122
archive_file = self._model_context.get_archive_file()
123123
domain_bin = self._convert_path('bin')
124-
if os.path.isdir(domain_bin) and not self._model_context.skip_archive:
124+
if os.path.isdir(domain_bin) and not self._model_context.skip_archive():
125125
search_directory = FileUtils.fixupFileSeparatorsForJython(os.path.join(domain_bin, "setUserOverrides*.*"))
126126
_logger.finer('WLSDPLY-06425', search_directory, class_name=_class_name, method_name=_method_name)
127127
file_list = glob.glob(search_directory)

0 commit comments

Comments
 (0)