File tree Expand file tree Collapse file tree 14 files changed +104
-22
lines changed Expand file tree Collapse file tree 14 files changed +104
-22
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,10 @@ IF NOT "%~1" == "" (
151
151
GOTO arg_loop
152
152
)
153
153
154
+ @ rem Default domain type if not specified
155
+ IF " %DOMAIN_TYPE% " == " " SET DOMAIN_TYPE = " WLS"
156
+
157
+
154
158
@ rem
155
159
@ rem Validate the JVM version based on whether or not the user asked us to use encryption
156
160
@ rem
@@ -223,8 +227,9 @@ IF DEFINED DOMAIN_TYPE (
223
227
)
224
228
)
225
229
226
- ECHO Domain type " %DOMAIN_TYPE% " not recognized by shell script... assuming JRF is required
227
- SET USE_JRF_WLST = TRUE
230
+ ECHO Wrong domain type specified " %DOMAIN_TYPE% " : valid value is " WLS|JRF|RestrictedJRF"
231
+ SET RETURN_CODE = 98
232
+ GOTO exit_script
228
233
229
234
:domain_type_recognized
230
235
IF " %USE_JRF_WLST% " == " TRUE" (
Original file line number Diff line number Diff line change @@ -198,6 +198,13 @@ while [[ $# > 1 ]]; do
198
198
shift # past arg or value
199
199
done
200
200
201
+ # default DOMAIN_TYPE
202
+
203
+ if [ -z " ${DOMAIN_TYPE} " ]; then
204
+ DOMAIN_TYPE=" WLS"
205
+ fi
206
+
207
+
201
208
#
202
209
# Validate the JVM version based on whether or not the user asked us to use encryption
203
210
#
256
263
elif [ " ${DOMAIN_TYPE} " = " JRF" ]; then
257
264
USE_JRF_WLST=TRUE
258
265
else
259
- echo " Domain type ${DOMAIN_TYPE} not recognized by shell script...assuming JRF is required"
266
+ echo " Wrong domain type specified ${DOMAIN_TYPE} : valid value is WLS|JRF|RestrictedJRF"
267
+ exit 98
260
268
fi
261
269
262
270
if [ " ${USE_JRF_WLST} " = " TRUE" ]; then
Original file line number Diff line number Diff line change @@ -149,6 +149,9 @@ IF NOT "%~1" == "" (
149
149
GOTO arg_loop
150
150
)
151
151
152
+ @ rem Default domain type if not specified
153
+ IF " %DOMAIN_TYPE% " == " " SET DOMAIN_TYPE = " WLS"
154
+
152
155
@ rem
153
156
@ rem Validate the JVM version based on whether or not the user asked us to use encryption
154
157
@ rem
@@ -221,8 +224,9 @@ IF DEFINED DOMAIN_TYPE (
221
224
)
222
225
)
223
226
224
- ECHO Domain type " %DOMAIN_TYPE% " not recognized by shell script... assuming JRF is required
225
- SET USE_JRF_WLST = TRUE
227
+ ECHO Wrong domain type specified " %DOMAIN_TYPE% " : valid value is " WLS|JRF|RestrictedJRF"
228
+ SET RETURN_CODE = 98
229
+ GOTO exit_script
226
230
227
231
:domain_type_recognized
228
232
IF " %USE_JRF_WLST% " == " TRUE" (
Original file line number Diff line number Diff line change 149
149
150
150
SCRIPT_ARGS=" $* "
151
151
MIN_JDK_VERSION=7
152
-
153
152
#
154
153
# Find the args required to determine the WLST script to run
155
154
#
@@ -183,6 +182,14 @@ while [[ $# > 1 ]]; do
183
182
shift # past arg or value
184
183
done
185
184
185
+
186
+ # default DOMAIN_TYPE
187
+
188
+ if [ -z " ${DOMAIN_TYPE} " ]; then
189
+ DOMAIN_TYPE=" WLS"
190
+ fi
191
+
192
+
186
193
#
187
194
# Validate the JVM version based on whether or not the user asked us to use encryption
188
195
#
@@ -234,14 +241,16 @@ else
234
241
#
235
242
WLST=" "
236
243
USE_JRF_WLST=FALSE
244
+
237
245
if [ " ${DOMAIN_TYPE} " = " WLS" ]; then
238
246
USE_JRF_WLST=FALSE
239
247
elif [ " ${DOMAIN_TYPE} " = " RestrictedJRF" ]; then
240
248
USE_JRF_WLST=TRUE
241
249
elif [ " ${DOMAIN_TYPE} " = " JRF" ]; then
242
250
USE_JRF_WLST=TRUE
243
251
else
244
- echo " Domain type ${DOMAIN_TYPE} not recognized by shell script...assuming JRF is required"
252
+ echo " Wrong domain type specified ${DOMAIN_TYPE} : valid value is WLS|JRF|RestrictedJRF"
253
+ exit 98
245
254
fi
246
255
247
256
if [ " ${USE_JRF_WLST} " = " TRUE" ]; then
Original file line number Diff line number Diff line change @@ -158,6 +158,9 @@ IF NOT "%~1" == "" (
158
158
GOTO arg_loop
159
159
)
160
160
161
+ @ rem Default domain type if not specified
162
+ IF " %DOMAIN_TYPE% " == " " SET DOMAIN_TYPE = " WLS"
163
+
161
164
@ rem
162
165
@ rem Check for values of required arguments for this script to continue.
163
166
@ rem The underlying WLST script has other required arguments.
@@ -209,8 +212,9 @@ IF DEFINED DOMAIN_TYPE (
209
212
)
210
213
)
211
214
212
- ECHO Domain type " %DOMAIN_TYPE% " not recognized by shell script... assuming JRF is required
213
- SET USE_JRF_WLST = TRUE
215
+ ECHO Wrong domain type specified " %DOMAIN_TYPE% " : valid value is " WLS|JRF|RestrictedJRF"
216
+ SET RETURN_CODE = 98
217
+ GOTO exit_script
214
218
215
219
:domain_type_recognized
216
220
IF " %USE_JRF_WLST% " == " TRUE" (
Original file line number Diff line number Diff line change @@ -172,6 +172,12 @@ while [[ $# > 1 ]]; do
172
172
shift # past arg or value
173
173
done
174
174
175
+ # default DOMAIN_TYPE
176
+
177
+ if [ -z " ${DOMAIN_TYPE} " ]; then
178
+ DOMAIN_TYPE=" WLS"
179
+ fi
180
+
175
181
#
176
182
# Check for values of required arguments for this script to continue.
177
183
# The underlying WLST script has other required arguments.
213
219
elif [ " ${DOMAIN_TYPE} " = " JRF" ]; then
214
220
USE_JRF_WLST=TRUE
215
221
else
216
- echo " Domain type ${DOMAIN_TYPE} not recognized by shell script...assuming JRF is required"
222
+ echo " Wrong domain type specified ${DOMAIN_TYPE} : valid value is WLS|JRF|RestrictedJRF"
223
+ exit 98
217
224
fi
218
225
219
226
if [ " ${USE_JRF_WLST} " = " TRUE" ]; then
Original file line number Diff line number Diff line change @@ -166,6 +166,10 @@ IF NOT "%~1" == "" (
166
166
GOTO arg_loop
167
167
)
168
168
169
+
170
+ @ rem Default domain type if not specified
171
+ IF " %DOMAIN_TYPE% " == " " SET DOMAIN_TYPE = " WLS"
172
+
169
173
@ rem
170
174
@ rem Check for values of required arguments for this script to continue.
171
175
@ rem The underlying WLST script has other required arguments.
@@ -217,8 +221,9 @@ IF DEFINED DOMAIN_TYPE (
217
221
)
218
222
)
219
223
220
- ECHO Domain type " %DOMAIN_TYPE% " not recognized by shell script... assuming JRF is required
221
- SET USE_JRF_WLST = TRUE
224
+ ECHO Wrong domain type specified " %DOMAIN_TYPE% " : valid value is " WLS|JRF|RestrictedJRF"
225
+ SET RETURN_CODE = 98
226
+ GOTO exit_script
222
227
223
228
:domain_type_recognized
224
229
IF " %USE_JRF_WLST% " == " TRUE" (
Original file line number Diff line number Diff line change @@ -176,6 +176,12 @@ while [[ $# > 1 ]]; do
176
176
shift # past arg or value
177
177
done
178
178
179
+ # default DOMAIN_TYPE
180
+
181
+ if [ -z " ${DOMAIN_TYPE} " ]; then
182
+ DOMAIN_TYPE=" WLS"
183
+ fi
184
+
179
185
#
180
186
# Check for values of required arguments for this script to continue.
181
187
# The underlying WLST script has other required arguments.
217
223
elif [ " ${DOMAIN_TYPE} " = " JRF" ]; then
218
224
USE_JRF_WLST=TRUE
219
225
else
220
- echo " Domain type ${DOMAIN_TYPE} not recognized by shell script...assuming JRF is required"
226
+ echo " Wrong domain type specified ${DOMAIN_TYPE} : valid value is WLS|JRF|RestrictedJRF"
227
+ exit 98
221
228
fi
222
229
223
230
if [ " ${USE_JRF_WLST} " = " TRUE" ]; then
Original file line number Diff line number Diff line change @@ -161,6 +161,9 @@ IF NOT "%~1" == "" (
161
161
GOTO arg_loop
162
162
)
163
163
164
+ @ rem Default domain type if not specified
165
+ IF " %DOMAIN_TYPE% " == " " SET DOMAIN_TYPE = " WLS"
166
+
164
167
@ rem
165
168
@ rem Check for values of required arguments for this script to continue.
166
169
@ rem The underlying WLST script has other required arguments.
@@ -212,8 +215,9 @@ IF DEFINED DOMAIN_TYPE (
212
215
)
213
216
)
214
217
215
- ECHO Domain type " %DOMAIN_TYPE% " not recognized by shell script... assuming JRF is required
216
- SET USE_JRF_WLST = TRUE
218
+ ECHO Wrong domain type specified " %DOMAIN_TYPE% " : valid value is " WLS|JRF|RestrictedJRF"
219
+ SET RETURN_CODE = 98
220
+ GOTO exit_script
217
221
218
222
:domain_type_recognized
219
223
IF " %USE_JRF_WLST% " == " TRUE" (
Original file line number Diff line number Diff line change @@ -185,6 +185,12 @@ while [[ $# > 1 ]]; do
185
185
shift # past arg or value
186
186
done
187
187
188
+ # default DOMAIN_TYPE
189
+
190
+ if [ -z " ${DOMAIN_TYPE} " ]; then
191
+ DOMAIN_TYPE=" WLS"
192
+ fi
193
+
188
194
#
189
195
# Check for values of required arguments for this script to continue.
190
196
# The underlying WLST script has other required arguments.
226
232
elif [ " ${DOMAIN_TYPE} " = " JRF" ]; then
227
233
USE_JRF_WLST=TRUE
228
234
else
229
- echo " Domain type ${DOMAIN_TYPE} not recognized by shell script...assuming JRF is required"
235
+ echo " Wrong domain type specified ${DOMAIN_TYPE} : valid value is WLS|JRF|RestrictedJRF"
236
+ exit 98
230
237
fi
231
238
232
239
if [ " ${USE_JRF_WLST} " = " TRUE" ]; then
You can’t perform that action at this time.
0 commit comments