Skip to content

Commit ef0d685

Browse files
Allow Subdeployments in App (#963)
1 parent 8a1fc5f commit ef0d685

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def __add_applications(self):
192192

193193
self.wlst_helper.cd(root_path)
194194
deployer_utils.create_and_cd(application_location, existing_applications, self.aliases)
195-
self.set_attributes(application_location, application)
195+
self._set_attributes_and_add_subfolders(application_location, application)
196196
application_location.remove_name_token(application_token)
197197
self.logger.exiting(class_name=self._class_name, method_name=_method_name)
198198
return

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ def add_application_attributes_online(self, model, location):
438438
if self.wlst_helper.path_exists(path):
439439
self.wlst_helper.cd(path)
440440
self.set_attributes(new_location, apps_slim, excludes=deploy_info)
441+
self._add_subfolders(apps_slim, location)
441442

442443

443444
def __process_directory_entry(self, path):

core/src/main/resources/oracle/weblogic/deploy/aliases/category_modules/AppDeployment.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,26 @@
44
"wlst_type": "AppDeployment${:s}",
55
"child_folders_type": "multiple",
66
"short_name": "App",
7-
"folders": {},
7+
"folders": {
8+
"SubDeployment" : {
9+
"wlst_type": "SubDeployment${:s}",
10+
"child_folders_type": "multiple",
11+
"folders": {},
12+
"attributes": {
13+
"CompatibilityName": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "CompatibilityName", "wlst_path": "WP001", "value": { "default": "None" }, "wlst_type": "string" } ],
14+
"ModuleType": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "ModuleType", "wlst_path": "WP001", "value": { "default": "None" }, "wlst_type": "string" } ],
15+
"Notes": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "Notes", "wlst_path": "WP001", "value": { "default": "None" }, "wlst_type": "string" } ],
16+
"Target": [ {"version": "[10,)", "wlst_mode": "offline", "wlst_name": "Target", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "delimited_string", "set_method": "MBEAN.set_target_mbeans" },
17+
{"version": "[10,)", "wlst_mode": "online", "wlst_name": "Targets", "wlst_path": "WP002", "value": {"default": "None" }, "wlst_type": "jarray", "get_method": "GET", "preferred_model_type": "delimited_string", "set_method": "MBEAN.set_target_mbeans", "set_mbean_type": "weblogic.management.configuration.TargetMBean"} ],
18+
"Untargeted": [ {"version": "[12.2.1,)", "wlst_mode": "both", "wlst_name": "Untargeted", "wlst_path": "WP001", "value": {"default": "false" }, "wlst_type": "boolean" } ]
19+
},
20+
"wlst_attributes_path": "WP001",
21+
"wlst_paths": {
22+
"WP001": "/AppDeployment${:s}/%APPLICATIONNAME%/SubDeployment${:s}/%SUBDEPLOYMENT%",
23+
"WP002": "/AppDeployment${:s}/%APPLICATIONNAME%/SubDeployment${:s}/%SUBDEPLOYMENT%/Targets"
24+
}
25+
}
26+
},
827
"attributes": {
928
"AbsoluteAltDescriptorDir": [ {"version": "[12.2.1,)", "wlst_mode": "online", "wlst_name": "AbsoluteAltDescriptorDir", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string", "access": "RO", "uses_path_tokens": "true" } ],
1029
"AbsoluteAltDescriptorPath": [ {"version": "[12.2.1,)", "wlst_mode": "online", "wlst_name": "AbsoluteAltDescriptorPath", "wlst_path": "WP001", "value": {"default": "None" }, "wlst_type": "string", "access": "RO", "uses_path_tokens": "true" } ],

0 commit comments

Comments
 (0)