File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed
java/com/oracle/weblogic/imagetool Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,8 @@ List<String> handleWdtArgsIfRequired(String tmpDir) throws IOException {
375
375
//Until WDT supports multiple variable files, take single file argument from CLI and convert to list
376
376
dockerfileOptions .setWdtVariables (Collections .singletonList (wdtVariableFilename ));
377
377
}
378
+
379
+ dockerfileOptions .setWdtStrictValidation (wdtStrictValidation );
378
380
}
379
381
logger .exiting ();
380
382
return retVal ;
@@ -571,14 +573,20 @@ public DomainType getWdtDomainType() {
571
573
)
572
574
private String wdtJavaOptions ;
573
575
574
-
575
576
@ Option (
576
577
names = {"--wdtModelOnly" },
577
578
description = "Install WDT and copy the models to the image, but do not create the domain. "
578
579
+ "Default: ${DEFAULT-VALUE}."
579
580
)
580
581
private boolean wdtModelOnly = false ;
581
582
583
+ @ Option (
584
+ names = {"--wdtStrictValidation" },
585
+ description = "Use strict validation for the WDT validation method. Only applies when using model only. "
586
+ + "Default: ${DEFAULT-VALUE}."
587
+ )
588
+ private boolean wdtStrictValidation = false ;
589
+
582
590
@ Unmatched
583
591
List <String > unmatchedOptions ;
584
592
}
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ public class DockerfileOptions {
43
43
private String wdtJavaOptions ;
44
44
private boolean wdtModelOnly ;
45
45
private boolean wdtRunRcu ;
46
+ private boolean wdtStrictValidation ;
46
47
47
48
/**
48
49
* Options to be used with the Mustache template.
@@ -70,6 +71,7 @@ public DockerfileOptions() {
70
71
wdtArchiveList = new ArrayList <>();
71
72
wdtVariableList = new ArrayList <>();
72
73
wdtRunRcu = false ;
74
+ wdtStrictValidation = false ;
73
75
}
74
76
75
77
/**
@@ -476,6 +478,16 @@ public DockerfileOptions setRunRcu(boolean value) {
476
478
return this ;
477
479
}
478
480
481
+
482
+ public boolean strictValidation () {
483
+ return wdtStrictValidation ;
484
+ }
485
+
486
+ public DockerfileOptions setWdtStrictValidation (boolean value ) {
487
+ wdtStrictValidation = value ;
488
+ return this ;
489
+ }
490
+
479
491
public String wlsdeploy_properties () {
480
492
return wdtJavaOptions ;
481
493
}
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ RUN unzip -q {{{tmpDir}}}/$WLS_PKG -d {{{tmpDir}}} \
154
154
{ {/modelOnly} }
155
155
{ {#modelOnly} }
156
156
&& chmod u+x ./*.sh \
157
- && ./validateModel.sh \
157
+ && ./validateModel.sh { {^strictValidation } }-method lax { {/strictValidation } } \
158
158
-oracle_home { {{oracle_home} }} \
159
159
-domain_type { {domainType} } \
160
160
{ {{wdtVariableFileArgument} }} { {{wdtModelFileArgument} }} { {{wdtArchiveFileArgument} }}
Original file line number Diff line number Diff line change 63
63
RUN cd { {{wdt_home} }} \
64
64
&& cd weblogic-deploy/bin \
65
65
&& chmod u+x ./*.sh \
66
- && ./validateModel.sh \
66
+ && ./validateModel.sh { {^strictValidation } }-method lax { {/strictValidation } } \
67
67
-oracle_home { {{oracle_home} }} \
68
68
-domain_type { {domainType} } \
69
69
{ {{wdtVariableFileArgument} }} { {{wdtModelFileArgument} }} { {{wdtArchiveFileArgument} }}
You can’t perform that action at this time.
0 commit comments