def run(self): warning("Using JAVA_HOME:", get_java_home()) if is_osx(): target = os.environ.get("MACOSX_DEPLOYMENT_TARGET") if target: warning("INFO: the MACOSX_DEPLOYMENT_TARGET environment variable is set:", target) result = shell("sw_vers -productVersion") if target.split(".")[:2] != result.stdout.split(".")[:2]: warning("This target appears to be incorrect for the system version:", result.stdout)
def run(self): warning('Using JAVA_HOME:', get_java_home()) if is_osx(): target = os.environ.get('MACOSX_DEPLOYMENT_TARGET') if target: warning('INFO: the MACOSX_DEPLOYMENT_TARGET environment variable is set:', target) result = shell('sw_vers -productVersion') if target.split('.')[:2] != result.stdout.split('.')[:2]: warning('This target appears to be incorrect for the system version:', result.stdout)
def run(self): if skip_java_build(self): log.debug('skipping Java build (up-to-date)') return warning('Using JAVA_HOME:', get_java_home()) if is_osx(): target = os.environ.get('MACOSX_DEPLOYMENT_TARGET') if target: warning( 'INFO: the MACOSX_DEPLOYMENT_TARGET environment variable is set:', target) result = shell('sw_vers -productVersion') if target.split('.')[:2] != result.stdout.decode( "utf-8").split('.')[:2]: warning( 'This target appears to be incorrect for the system version:', result.stdout)