Skip to content

Commit 7d18e3d

Browse files
committed
extract mime mappings file if there is one present
1 parent 065d35e commit 7d18e3d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
from wlsdeploy.aliases.model_constants import SELF_TUNING
1717
from wlsdeploy.aliases.model_constants import WORK_MANAGER
1818
from wlsdeploy.aliases.model_constants import WEBAPP_CONTAINER
19+
from wlsdeploy.aliases.model_constants import MIME_MAPPING_FILE
1920
from wlsdeploy.aliases.wlst_modes import WlstModes
2021
from wlsdeploy.tool.deploy.deployer import Deployer
2122
from wlsdeploy.util import dictionary_utils
2223

23-
2424
class CommonResourcesDeployer(Deployer):
2525
"""
2626
class docstring
@@ -177,4 +177,10 @@ def add_webapp_container(self, parent_dict, location):
177177
web_app_container = dictionary_utils.get_dictionary_element(parent_dict, WEBAPP_CONTAINER)
178178
if len(web_app_container) != 0:
179179
self._add_model_elements(WEBAPP_CONTAINER, web_app_container, location)
180+
if self.archive_helper is not None:
181+
if MIME_MAPPING_FILE in web_app_container:
182+
file_path = web_app_container[MIME_MAPPING_FILE]
183+
if self.archive_helper.contains_file(file_path):
184+
self.archive_helper.extract_file(file_path)
185+
180186
return

0 commit comments

Comments
 (0)