@@ -52,8 +52,8 @@ class ITImagetool {
5252
5353 // STAGING_DIR - directory where JDK and other installers are pre-staged before testing
5454 private static final String STAGING_DIR = System .getProperty ("STAGING_DIR" );
55- private static final String wlsImgBldDir = System .getProperty ("WLSIMG_BLDDIR" );
56- private static final String wlsImgCacheDir = System .getProperty ("WLSIMG_CACHEDIR" );
55+ private static final String BLDDIR_ENV = System .getProperty ("WLSIMG_BLDDIR" );
56+ private static final String CACHEDIR_ENV = System .getProperty ("WLSIMG_CACHEDIR" );
5757
5858 // Docker images
5959 private static String DB_IMAGE = System .getProperty ("DB_IMAGE" );
@@ -74,7 +74,7 @@ class ITImagetool {
7474 private static final String WLS_VERSION = "12.2.1.3.0" ;
7575 private static final String OPATCH_VERSION = "13.9.4.2.2" ;
7676 private static final String JDK_VERSION = "8u202" ;
77- private static final String JDK_VERSION_8u212 = "8u212" ;
77+ private static final String JDK_VERSION_212 = "8u212" ;
7878 private static final String WDT_VERSION = "1.1.2" ;
7979 private static final Path WDT_ARCHIVE = Paths .get ("target" , "wdt" , "archive.zip" );
8080 private static final Path WDT_RESOURCES = Paths .get ("src" , "test" , "resources" , "wdt" );
@@ -92,11 +92,11 @@ private static void validateEnvironmentSettings() {
9292 logger .info ("Initializing the tests ..." );
9393
9494 List <String > missingSettings = new ArrayList <>();
95- if (Utils .isEmptyString (wlsImgBldDir )) {
95+ if (Utils .isEmptyString (BLDDIR_ENV )) {
9696 missingSettings .add ("WLSIMG_BLDDIR" );
9797 }
9898
99- if (Utils .isEmptyString (wlsImgCacheDir )) {
99+ if (Utils .isEmptyString (CACHEDIR_ENV )) {
100100 missingSettings .add ("WLSIMG_CACHEDIR" );
101101 }
102102
@@ -129,8 +129,8 @@ private static void validateEnvironmentSettings() {
129129 }
130130 dbContainerName = "InfraDB4" + build_tag ;
131131 logger .info ("build_tag = " + build_tag );
132- logger .info ("WLSIMG_BLDDIR = " + wlsImgBldDir );
133- logger .info ("WLSIMG_CACHEDIR = " + wlsImgCacheDir );
132+ logger .info ("WLSIMG_BLDDIR = " + BLDDIR_ENV );
133+ logger .info ("WLSIMG_CACHEDIR = " + CACHEDIR_ENV );
134134 logger .info ("STAGING_DIR = " + STAGING_DIR );
135135 logger .info ("DB_IMAGE = " + DB_IMAGE );
136136 logger .info ("JRE_IMAGE = " + JRE_IMAGE );
@@ -208,10 +208,10 @@ static void staticPrepare() throws Exception {
208208
209209 logger .info ("Setting up the test environment ..." );
210210
211- if (!(new File (wlsImgBldDir )).exists ()) {
212- logger .info (wlsImgBldDir + " does not exist, creating it" );
213- if (!(new File (wlsImgBldDir )).mkdir ()) {
214- throw new IllegalStateException ("Unable to create build directory " + wlsImgBldDir );
211+ if (!(new File (BLDDIR_ENV )).exists ()) {
212+ logger .info (BLDDIR_ENV + " does not exist, creating it" );
213+ if (!(new File (BLDDIR_ENV )).mkdir ()) {
214+ throw new IllegalStateException ("Unable to create build directory " + BLDDIR_ENV );
215215 }
216216 }
217217
@@ -706,7 +706,7 @@ void createMiiOl8slim(TestInfo testInfo) throws Exception {
706706
707707 // test assumes that the default JDK version 8u202 is already in the cache
708708
709- Path tmpWdtModel = Paths .get (wlsImgBldDir , WDT_MODEL1 );
709+ Path tmpWdtModel = Paths .get (BLDDIR_ENV , WDT_MODEL1 );
710710
711711 // update wdt model file
712712 Files .copy (WDT_RESOURCES .resolve (WDT_MODEL1 ), tmpWdtModel , StandardCopyOption .REPLACE_EXISTING );
@@ -788,7 +788,7 @@ void createFmwImgFullInternetAccess(TestInfo testInfo) throws Exception {
788788 // add jdk 8u212 installer to the cache
789789 String addNewJdkCmd = new CacheCommand ().addInstaller (true )
790790 .type ("jdk" )
791- .version (JDK_VERSION_8u212 )
791+ .version (JDK_VERSION_212 )
792792 .path (Paths .get (STAGING_DIR , JDK_INSTALLER_NEWER ))
793793 .build ();
794794
@@ -801,7 +801,7 @@ void createFmwImgFullInternetAccess(TestInfo testInfo) throws Exception {
801801 // create an image with FMW and the latest PSU using ARU to download the patch
802802 String command = new CreateCommand ()
803803 .tag (tagName )
804- .jdkVersion (JDK_VERSION_8u212 )
804+ .jdkVersion (JDK_VERSION_212 )
805805 .type ("fmw" )
806806 .user (oracleSupportUsername )
807807 .passwordEnv ("ORACLE_SUPPORT_PASSWORD" )
@@ -835,7 +835,7 @@ void createJrfDomainImgUsingWdt(TestInfo testInfo) throws Exception {
835835
836836 // test assumes that the default JDK version 8u202 is already in the cache
837837
838- Path tmpWdtModel = Paths .get (wlsImgBldDir , WDT_MODEL1 );
838+ Path tmpWdtModel = Paths .get (BLDDIR_ENV , WDT_MODEL1 );
839839
840840 // update wdt model file
841841 Files .copy (WDT_RESOURCES .resolve (WDT_MODEL1 ), tmpWdtModel , StandardCopyOption .REPLACE_EXISTING );
0 commit comments