Skip to content

Commit 6d532f8

Browse files
Check for domain home before oracle home in applications and libraries
1 parent b328532 commit 6d532f8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

core/src/main/java/oracle/weblogic/deploy/util/WLSDeployArchive.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,8 @@ private static void validateExistingFile(File file, String argName, String fileN
12681268
IllegalArgumentException iae = new IllegalArgumentException(message);
12691269
LOGGER.throwing(CLASS, METHOD, iae);
12701270
throw iae;
1271+
} else if (!file.isAbsolute()) {
1272+
12711273
} else if (!file.exists()) {
12721274
String message = ExceptionHelper.getMessage("WLSDPLY-01421", fileName, file);
12731275
IllegalArgumentException iae = new IllegalArgumentException(message);

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,14 +546,16 @@ def _convert_path(self, file_name):
546546

547547
def _is_oracle_home_file(self, file_name):
548548
"""
549-
Determine if the absolute file name starts with an oracle home.
549+
Determine if the absolute file name starts with an oracle home. Disregard if the application is
550+
located in the domain home.
550551
551552
:param file_name: to check for oracle home or weblogic home
552553
:return: true if in oracle home location
553554
"""
554555
py_str = str(file_name)
555-
return py_str.startswith(self._model_context.get_oracle_home()) or py_str.startswith(
556-
self._model_context.get_wl_home())
556+
return (not py_str.startswith(self._model_context.get_domain_home)) and \
557+
(py_str.startswith(self._model_context.get_oracle_home()) or
558+
py_str.startswith(self._model_context.get_wl_home()))
557559

558560
def _get_wlst_mode_string(self):
559561
"""

0 commit comments

Comments
 (0)