Skip to content

Commit 220f4c3

Browse files
Wdt=1071 set sample db (#1072)
* slim down console output with environment variable * wip setsampledb * remove console code * Update WLSDeployLoggingConfig.java * Update SummaryHandler.java * Update SummaryHandler.java * Update WLSDeployLoggingConfig.java * resolve version number * resolve version number
1 parent 81e4f69 commit 220f4c3

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

core/src/main/java/oracle/weblogic/deploy/logging/SummaryHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,4 +291,4 @@ private LogRecord getLogRecord(String msg, Object... params) {
291291
return record;
292292
}
293293

294-
}
294+
}

core/src/main/python/wlsdeploy/aliases/model_constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@
299299
UPDATE_MODE = 'UpdateMode'
300300
USER = 'User'
301301
USER_ATTRIBUTES = 'UserAttribute'
302+
USE_SAMPLE_DATABASE = 'UseSampleDatabase'
302303
VIRTUAL_HOST = 'VirtualHost'
303304
VIRTUAL_TARGET = 'VirtualTarget'
304305
VIRTUAL_USER_AUTHENTICATOR = 'VirtualUserAuthenticator'

core/src/main/python/wlsdeploy/tool/create/domain_creator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
from wlsdeploy.aliases.model_constants import UNIX_MACHINE
6969
from wlsdeploy.aliases.model_constants import URL
7070
from wlsdeploy.aliases.model_constants import USER
71+
from wlsdeploy.aliases.model_constants import USE_SAMPLE_DATABASE
7172
from wlsdeploy.aliases.model_constants import VIRTUAL_TARGET
7273
from wlsdeploy.aliases.model_constants import WLS_USER_PASSWORD_CREDENTIAL_MAPPINGS
7374
from wlsdeploy.aliases.model_constants import WS_RELIABLE_DELIVERY_POLICY
@@ -673,6 +674,10 @@ def __set_core_domain_params(self):
673674
server_start_mode = self._domain_info[SERVER_START_MODE]
674675
self.wlst_helper.set_option_if_needed(SET_OPTION_SERVER_START_MODE, server_start_mode)
675676

677+
if USE_SAMPLE_DATABASE in self._domain_info:
678+
use_sample_db = self._domain_info[USE_SAMPLE_DATABASE]
679+
self.wlst_helper.set_option_if_needed(USE_SAMPLE_DATABASE, use_sample_db)
680+
676681
self.__set_domain_name()
677682
self.__set_admin_password()
678683
self.__set_admin_server_name()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"ServerGroupTargetingLimits": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "ServerGroupTargetingLimits", "wlst_path": "WP001", "default_value": null, "wlst_type": "dict" } ],
1212
"DynamicClusterServerGroupTargetingLimits": [ {"version": "[12.2.1.1,)", "wlst_mode": "both", "wlst_name": "dynamicClusterServerGroupTargetingLimits", "wlst_path": "WP001", "default_value": null, "wlst_type": "dict" } ],
1313
"ServerStartMode": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "ServerStartMode", "wlst_path": "WP001", "default_value": null, "wlst_type": "string" } ],
14+
"UseSampleDatabase": [ {"version": "[12.2.1,)", "wlst_mode": "offline", "wlst_name": "UseSampleDatabase", "wlst_path": "WP001", "default_value": null, "wlst_type": "string" } ],
1415
"domainBin": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "domainBin", "wlst_path": "WP001", "default_value": null, "wlst_type": "list", "uses_path_tokens": "true" } ],
1516
"domainLibraries": [ {"version": "[10,)", "wlst_mode": "both", "wlst_name": "domainLibraries", "wlst_path": "WP001", "default_value": null, "wlst_type": "list", "uses_path_tokens": "true" } ]
1617
},

0 commit comments

Comments
 (0)