|
24 | 24 | from oracle.weblogic.deploy.aliases import VersionUtils |
25 | 25 |
|
26 | 26 | from wlsdeploy.aliases.alias_constants import ChildFoldersTypes |
27 | | -from wlsdeploy.aliases.alias_jvmargs import JVMArguments |
28 | 27 | from wlsdeploy.exception import exception_helper |
29 | 28 | from wlsdeploy.logging.platform_logger import PlatformLogger |
30 | 29 |
|
|
52 | 51 | from wlsdeploy.aliases.alias_constants import WLST_READ_TYPE |
53 | 52 | from wlsdeploy.aliases.alias_constants import WLST_TYPE |
54 | 53 | from wlsdeploy.aliases.alias_constants import WLST_SUBFOLDERS_PATH |
55 | | -from wlsdeploy.aliases.model_constants import ARGUMENTS |
56 | | -from wlsdeploy.aliases.model_constants import SERVER |
57 | | -from wlsdeploy.aliases.model_constants import SERVER_START |
58 | 54 |
|
59 | 55 | _class_name = 'alias_utils' |
60 | 56 | _logger = PlatformLogger('wlsdeploy.aliases') |
61 | | -_server_start_location_folder_path = '/' + SERVER + '/' + SERVER_START |
62 | | -_server_start_argument_attribute_name = ARGUMENTS |
63 | 57 | _windows_path_regex = re.compile(r'^[a-zA-Z]:[\\/].*') |
64 | 58 |
|
65 | 59 |
|
@@ -149,30 +143,6 @@ def merge_model_and_existing_properties(model_props, existing_props, string_prop |
149 | 143 | return result |
150 | 144 |
|
151 | 145 |
|
152 | | -def merge_server_start_argument_values(model_args, existing_args): |
153 | | - """ |
154 | | - Merge the two arguments strings. |
155 | | - :param model_args: the new string or list from the model |
156 | | - :param existing_args: the old string (e.g., from WLST) |
157 | | - :return: the resulting merged string |
158 | | - """ |
159 | | - _method_name = 'merge_server_start_argument_values' |
160 | | - |
161 | | - _logger.entering(model_args, existing_args, class_name=_class_name, method_name=_method_name) |
162 | | - if model_args is None or len(model_args) == 0: |
163 | | - result = existing_args |
164 | | - elif existing_args is None or len(existing_args) == 0: |
165 | | - new_args = JVMArguments(_logger, model_args) |
166 | | - result = new_args.get_arguments_string() |
167 | | - else: |
168 | | - new_args = JVMArguments(_logger, model_args) |
169 | | - merged_args = JVMArguments(_logger, existing_args) |
170 | | - merged_args.merge_jvm_arguments(new_args) |
171 | | - result = merged_args.get_arguments_string() |
172 | | - _logger.exiting(class_name=_class_name, method_name=_method_name, result=result) |
173 | | - return result |
174 | | - |
175 | | - |
176 | 146 | def count_substring_occurrences(substring, string): |
177 | 147 | """ |
178 | 148 | Count the number of occurrences of a substring in a string |
@@ -555,17 +525,6 @@ def convert_boolean(value): |
555 | 525 | return result |
556 | 526 |
|
557 | 527 |
|
558 | | -def is_attribute_server_start_arguments(location, model_attribute_name): |
559 | | - """ |
560 | | - Is the location and attribute the Server/ServerStart folder's Argument attribute |
561 | | - :param location: location |
562 | | - :param model_attribute_name: attribute name |
563 | | - :return: True if so, False otherwise |
564 | | - """ |
565 | | - return location.get_folder_path() == _server_start_location_folder_path and \ |
566 | | - model_attribute_name == _server_start_argument_attribute_name |
567 | | - |
568 | | - |
569 | 528 | def compute_delimiter_from_data_type(data_type, value): |
570 | 529 | """ |
571 | 530 | Compute the delimiter from the data type |
|
0 commit comments