def compile_and_install_client(project_client, extra_args='', install_client=True):
 java_args = {}
 java_args['compile_dir'] = _TMP_COMPILE_DIR
 java_args['app_dir'] = _DEFAULT_APP_DIR
 java_args['gwt_dir'] = find_gwt_dir()
 java_args['extra_args'] = extra_args
 java_args['project_client'] = project_client
 cmd = (_COMPILE_LINE % java_args)
 logging.info('Compiling client %s', project_client)
 try:
  utils.run(cmd, verbose=True)
  if install_client:
   return install_completed_client(java_args['compile_dir'], project_client)
  return True
 except error.CmdError:
  logging.info('Error compiling %s, leaving old client', project_client)
 return False

def compile_and_install_client ( project_client , extra_args = '' , install_client = True ) : java_args = { } java_args [ 'compile_dir' ] = _TMP_COMPILE_DIR java_args [ 'app_dir' ] = _DEFAULT_APP_DIR java_args [ 'gwt_dir' ] = find_gwt_dir ( ) java_args [ 'extra_args' ] = extra_args java_args [ 'project_client' ] = project_client cmd = ( _COMPILE_LINE % java_args ) logging . info ( 'Compiling client %s' , project_client ) try : utils . run ( cmd , verbose = True ) if install_client : return install_completed_client ( java_args [ 'compile_dir' ] , project_client ) return True except error . CmdError : logging . info ( 'Error compiling %s, leaving old client' , project_client ) return False
compile the client into a temporary directory .