Skip to content

Commit 346b582

Browse files
author
Johnny
committed
fix windows sript if var expansion
1 parent bbca7eb commit 346b582

File tree

7 files changed

+10
-13
lines changed

7 files changed

+10
-13
lines changed

installer/src/main/bin/createDomain.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ IF NOT "%~1" == "" (
154154
SET SCRIPT_ARGS=%*
155155
@rem Default domain type if not specified
156156
IF "%DOMAIN_TYPE%"=="" (
157-
SET DOMAIN_TYPE=WLS
158-
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type %DOMAIN_TYPE%
157+
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type WLS
159158
)
160159

161160

installer/src/main/bin/deployApps.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,7 @@ IF NOT "%~1" == "" (
152152
SET SCRIPT_ARGS=%*
153153
@rem Default domain type if not specified
154154
IF "%DOMAIN_TYPE%"=="" (
155-
SET DOMAIN_TYPE=WLS
156-
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type %DOMAIN_TYPE%
155+
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type WLS
157156
)
158157

159158
@rem

installer/src/main/bin/discoverDomain.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ IF NOT "%~1" == "" (
161161
SET SCRIPT_ARGS=%*
162162
@rem Default domain type if not specified
163163
IF "%DOMAIN_TYPE%"=="" (
164-
SET DOMAIN_TYPE=WLS
165-
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type %DOMAIN_TYPE%
164+
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type WLS
166165
)
167166

168167
@rem

installer/src/main/bin/encryptModel.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ IF NOT "%~1" == "" (
170170
SET SCRIPT_ARGS=%*
171171
@rem Default domain type if not specified
172172
IF "%DOMAIN_TYPE%"=="" (
173-
SET DOMAIN_TYPE=WLS
174-
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type %DOMAIN_TYPE%
173+
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type WLS
175174
)
176175

177176
@rem

installer/src/main/bin/injectVariables.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,7 @@ IF NOT "%~1" == "" (
164164
SET SCRIPT_ARGS=%*
165165
@rem Default domain type if not specified
166166
IF "%DOMAIN_TYPE%"=="" (
167-
SET DOMAIN_TYPE=WLS
168-
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type %DOMAIN_TYPE%
167+
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type WLS
169168
)
170169

171170
@rem

installer/src/main/bin/updateDomain.cmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,11 @@ IF NOT "%~1" == "" (
149149
GOTO arg_loop
150150
)
151151

152+
SET SCRIPT_ARGS=%*
152153
@rem Default domain type if not specified
153-
IF "%DOMAIN_TYPE%"=="" SET DOMAIN_TYPE=WLS
154+
IF "%DOMAIN_TYPE%"=="" (
155+
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type WLS
156+
)
154157

155158
@rem
156159
@rem Validate the JVM version based on whether or not the user asked us to use encryption

installer/src/main/bin/validateModel.cmd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,7 @@ IF NOT "%~1" == "" (
160160
SET SCRIPT_ARGS=%*
161161
@rem Default domain type if not specified
162162
IF "%DOMAIN_TYPE%"=="" (
163-
SET DOMAIN_TYPE=WLS
164-
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type %DOMAIN_TYPE%
163+
SET SCRIPT_ARGS=%SCRIPT_ARGS% -domain_type WLS
165164
)
166165
@rem
167166
@rem Check for values of required arguments for this script to continue.

0 commit comments

Comments
 (0)