@@ -56,7 +56,6 @@ public CommandResponse call() throws Exception {
56
56
System .out .println ("patches = \" " + patches + "\" " );
57
57
System .out .println ("fromImage = \" " + fromImage + "\" " );
58
58
System .out .println ("userId = \" " + userId + "\" " );
59
- System .out .println ("password = \" " + password + "\" " );
60
59
System .out .println ("publish = \" " + isPublish + "\" " );
61
60
62
61
FileHandler fileHandler = null ;
@@ -121,7 +120,7 @@ public CommandResponse call() throws Exception {
121
120
122
121
if (!targetFile .exists () || !META_RESOLVER .hasMatchingKeyValue (propKey , targetFilePath )) {
123
122
if (useCache != always ) {
124
- // System.out.println("1. Downloading from " + propVal + " to " + targetFilePath);
123
+ System .out .println ("1. Downloading from " + propVal + " to " + targetFilePath );
125
124
logger .info ("1. Downloading from " + propVal + " to " + targetFilePath );
126
125
HttpUtil .downloadFile (propVal , targetFilePath , userId , password );
127
126
META_RESOLVER .addToCache (propKey , targetFilePath );
@@ -145,7 +144,7 @@ public CommandResponse call() throws Exception {
145
144
if ("12.2.1.3.0" .equals (installerVersion ) ) {
146
145
if (!opatchFile .exists () || !META_RESOLVER .hasMatchingKeyValue (opatchKey , opatch_1394_path )) {
147
146
if (useCache != always ) {
148
- // System.out.println("3. Downloading from " + OPATCH_1394_URL + " to " + opatch_1394_path);
147
+ System .out .println ("3. Downloading from " + OPATCH_1394_URL + " to " + opatch_1394_path );
149
148
logger .info ("3. Downloading from " + OPATCH_1394_URL + " to " + opatch_1394_path );
150
149
HttpUtil .downloadFile (OPATCH_1394_URL , opatch_1394_path , userId , password );
151
150
META_RESOLVER .addToCache (opatchKey , opatch_1394_path );
@@ -262,8 +261,6 @@ public CommandResponse call() throws Exception {
262
261
}
263
262
264
263
private List <String > getInitialBuildCmd () {
265
- // List<String> cmdBuilder = new ArrayList<>(Arrays.asList("docker", "build",
266
- // "--squash", "--force-rm", "--no-cache", "--network=host"));
267
264
List <String > cmdBuilder = Stream .of ("docker" , "build" ,
268
265
"--squash" , "--force-rm" , "--no-cache" , "--network=host" ).collect (Collectors .toList ());
269
266
@@ -390,6 +387,7 @@ private void setSystemProxy(String proxyUrl, String protocolToSet) {
390
387
names = { "--password" },
391
388
paramLabel = "<password associated with support user id>" ,
392
389
required = true ,
390
+ interactive = true ,
393
391
description = "Password for support userId"
394
392
)
395
393
private String password ;
@@ -413,9 +411,9 @@ private void setSystemProxy(String proxyUrl, String protocolToSet) {
413
411
private boolean isPublish = false ;
414
412
415
413
@ Option (
416
- hidden = true ,
417
- names = { "--httpProxyUrl" },
418
- description = "proxy for http protocol. Ex: http://myproxy:80 or http://user:passwd@myproxy:8080"
414
+ hidden = true ,
415
+ names = { "--httpProxyUrl" },
416
+ description = "proxy for http protocol. Ex: http://myproxy:80 or http://user:passwd@myproxy:8080"
419
417
)
420
418
private String httpProxyUrl ;
421
419
@@ -445,94 +443,6 @@ private void setSystemProxy(String proxyUrl, String protocolToSet) {
445
443
)
446
444
private boolean isCLIMode ;
447
445
448
- public InstallerType getInstallerType () {
449
- return installerType ;
450
- }
451
-
452
- public void setInstallerType (InstallerType installerType ) {
453
- this .installerType = installerType ;
454
- }
455
-
456
- public String getInstallerVersion () {
457
- return installerVersion ;
458
- }
459
-
460
- public void setInstallerVersion (String installerVersion ) {
461
- this .installerVersion = installerVersion ;
462
- }
463
-
464
- public String getJdkVersion () {
465
- return jdkVersion ;
466
- }
467
-
468
- public void setJdkVersion (String jdkVersion ) {
469
- this .jdkVersion = jdkVersion ;
470
- }
471
-
472
- public boolean isLatestPSU () {
473
- return latestPSU ;
474
- }
475
-
476
- public void setLatestPSU (boolean latestPSU ) {
477
- this .latestPSU = latestPSU ;
478
- }
479
-
480
- public List <String > getPatches () {
481
- return patches ;
482
- }
483
-
484
- public void setPatches (List <String > patches ) {
485
- this .patches = patches ;
486
- }
487
-
488
- public String getFromImage () {
489
- return fromImage ;
490
- }
491
-
492
- public void setFromImage (String fromImage ) {
493
- this .fromImage = fromImage ;
494
- }
495
-
496
- public String getImageTag () {
497
- return imageTag ;
498
- }
499
-
500
- public void setImageTag (String imageTag ) {
501
- this .imageTag = imageTag ;
502
- }
503
-
504
- public String getUserId () {
505
- return userId ;
506
- }
507
-
508
- public void setUserId (String userId ) {
509
- this .userId = userId ;
510
- }
511
-
512
- public String getPassword () {
513
- return password ;
514
- }
515
-
516
- public void setPassword (String password ) {
517
- this .password = password ;
518
- }
519
-
520
- public CachePolicy getUseCache () {
521
- return useCache ;
522
- }
523
-
524
- public void setUseCache (CachePolicy useCache ) {
525
- this .useCache = useCache ;
526
- }
527
-
528
- public boolean isPublish () {
529
- return isPublish ;
530
- }
531
-
532
- public void setPublish (boolean publish ) {
533
- isPublish = publish ;
534
- }
535
-
536
446
static class WLSVersionValues extends ArrayList <String > {
537
447
WLSVersionValues () {
538
448
super (Arrays .asList ("12.2.1.3.0" , "12.2.1.2.0" ));
0 commit comments