Skip to content

Commit 8887f41

Browse files
Wdt 05017 archive binding directory (#728)
* WDT allow directory for JMS connectionURL to support MQSeries
1 parent 7009fd9 commit 8887f41

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ public String addCoherenceConfigFile(String clusterName, File configFile) throws
986986
* Add a Foreign Server binding file to the archive
987987
*
988988
* @param foreignServer the Foreign Server name used to segregate the directories
989-
* @param configFile the file to add
989+
* @param configFile the file or directory to add
990990
* @return the new location of the file to use in the model
991991
* @throws WLSDeployArchiveIOException if an error occurs while archiving the file
992992
* @throws IllegalArgumentException if the file does not exist or the foreignServer is empty or null
@@ -997,7 +997,7 @@ public String addForeignServerFile(String foreignServer, File configFile) throws
997997
LOGGER.entering(CLASS, METHOD, foreignServer, configFile);
998998

999999
validateNonEmptyString(foreignServer, "foreignServerName", METHOD);
1000-
validateExistingFile(configFile, "configFile", getArchiveFileName(), METHOD);
1000+
validateExistingFile(configFile, "configFile", getArchiveFileName(), METHOD, true);
10011001
String newName = addItemToZip(ARCHIVE_JMS_FOREIGN_SERVER_DIR + ZIP_SEP + foreignServer, configFile);
10021002
LOGGER.exiting(CLASS, METHOD, newName);
10031003
return newName;

core/src/main/python/wlsdeploy/tool/deploy/deployer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.
2+
Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates.
33
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
"""
55
import os
@@ -393,7 +393,7 @@ def __process_archive_entry(self, location, key, value):
393393
result = True
394394
elif self.archive_helper.contains_path(value):
395395
# contents should have been extracted elsewhere, such as for apps and shared libraries
396-
result = self.__process_directory_entry(fullpath)
396+
result = self.archive_helper.extract_directory(value)
397397
elif value.endswith('/'):
398398
# If the path is a directory in the wlsdeploy directory tree
399399
# but not in the archive, just create it to help the user.

core/src/main/python/wlsdeploy/tool/deploy/jms_resources_deployer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates. All rights reserved.
2+
Copyright (c) 2017, 2020, Oracle Corporation and/or its affiliates.
33
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
"""
55
import oracle.weblogic.deploy.util.PyOrderedDict as OrderedDict

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ def _add_foreign_server_binding(self, server_name, model_name, model_value):
411411
_logger.info('WLSDPLY-06492', server_name, file_name, new_name, class_name=_class_name,
412412
method_name=_method_name)
413413
except (IllegalArgumentException, WLSDeployArchiveIOException), wioe:
414-
_logger.warning('WLSDPLY-06493', server_name, file_name, wioe.getLocalizedMessage())
414+
_logger.warning('WLSDPLY-06493', server_name, file_name, wioe.getLocalizedMessage(),
415+
class_name=_class_name, method_name=_method_name)
415416
new_name = None
416417

417418
_logger.exiting(class_name=_class_name, method_name=_method_name, result=new_name)

0 commit comments

Comments
 (0)