private String getWlpOutputDir ( ) throws IOException { Properties envvars = new Properties ( ) ; File serverEnvFile = new File ( installDirectory , "etc/server.env" ) ; if ( serverEnvFile . exists ( ) ) { envvars . load ( new FileInputStream ( serverEnvFile ) ) ; } serverEnvFile = new File ( configDirectory , "server.env" ) ; if ( configDirectory != null && serverEnvFile . exists ( ) ) { envvars . load ( new FileInputStream ( serverEnvFile ) ) ; } else if ( serverEnv . exists ( ) ) { envvars . load ( new FileInputStream ( serverEnv ) ) ; } return ( String ) envvars . get ( "WLP_OUTPUT_DIR" ) ; }
exist or variable is not in server . env