Skip to content

Commit cc40129

Browse files
CarolynRountreeddsharpe
authored andcommitted
Issue#379 classpath libraries adding oracle files to archive (#517)
* fix comparison string for correct check against oracle location
1 parent 9485ad2 commit cc40129

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
2+
Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.
33
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
"""
55
import os
@@ -578,7 +578,7 @@ def _is_oracle_home_file(self, file_name):
578578
:param file_name: to check for oracle home or weblogic home
579579
:return: true if in oracle home location
580580
"""
581-
py_str = str(file_name)
581+
py_str = path_utils.fixup_path(str(file_name))
582582
return (not py_str.startswith(self._model_context.get_domain_home())) and \
583583
(py_str.startswith(self._model_context.get_oracle_home()) or
584584
py_str.startswith(self._model_context.get_wl_home()))

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,14 +596,13 @@ def _add_classpath_libraries_to_archive(self, model_name, model_value, location)
596596

597597
classpath_string = None
598598
if not StringUtils.isEmpty(model_value):
599-
classpath = path_utils.fixup_path(model_value)
600-
601599
# model values are comma-separated
602-
classpath_entries = classpath.split(MODEL_LIST_DELIMITER)
600+
classpath_entries = model_value.split(MODEL_LIST_DELIMITER)
603601

604602
if classpath_entries:
605603
classpath_list = []
606604
for classpath_entry in classpath_entries:
605+
classpath_entry = self._model_context.replace_token_string(classpath_entry)
607606
new_source_name = self._add_library(server_name, classpath_entry)
608607
if new_source_name is not None:
609608
classpath_list.append(new_source_name)

0 commit comments

Comments
 (0)