1
1
"""
2
- Copyright (c) 2017, 2024 , Oracle and/or its affiliates.
2
+ Copyright (c) 2017, 2025 , Oracle and/or its affiliates.
3
3
Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
4
4
5
5
The entry point for the discoverDomain tool.
@@ -140,6 +140,8 @@ def __process_args(args, is_encryption_supported):
140
140
if __wlst_mode == WlstModes .ONLINE :
141
141
cla_helper .process_encryption_args (argument_map , is_encryption_supported )
142
142
143
+ __validate_skip_archive_and_remote_args (argument_map , __wlst_mode )
144
+
143
145
target_configuration_helper .process_target_arguments (argument_map )
144
146
__process_model_arg (argument_map )
145
147
__process_archive_filename_arg (argument_map )
@@ -154,6 +156,23 @@ def __process_args(args, is_encryption_supported):
154
156
return model_context
155
157
156
158
159
+ def __validate_skip_archive_and_remote_args (argument_map , wlst_mode ):
160
+ _method_name = '__validate_skip_archive_and_remote_args'
161
+
162
+ if wlst_mode == WlstModes .OFFLINE and CommandLineArgUtil .REMOTE_SWITCH in argument_map :
163
+ ex = exception_helper .create_cla_exception (ExitCode .ARG_VALIDATION_ERROR , 'WLSDPLY-06064' ,
164
+ _program_name , CommandLineArgUtil .REMOTE_SWITCH )
165
+ __logger .throwing (ex , class_name = _class_name , method_name = _method_name )
166
+ raise ex
167
+
168
+ if CommandLineArgUtil .REMOTE_SWITCH in argument_map and CommandLineArgUtil .SKIP_ARCHIVE_FILE_SWITCH in argument_map :
169
+ ex = exception_helper .create_cla_exception (ExitCode .ARG_VALIDATION_ERROR , 'WLSDPLY-06065' ,
170
+ _program_name , CommandLineArgUtil .REMOTE_SWITCH ,
171
+ CommandLineArgUtil .SKIP_ARCHIVE_FILE_SWITCH )
172
+ __logger .throwing (ex , class_name = _class_name , method_name = _method_name )
173
+ raise ex
174
+
175
+
157
176
def __process_model_arg (argument_map ):
158
177
"""
159
178
Verify that specified model file's parent directory exists.
0 commit comments