#NEWLINE# def _spawn_nailgun_server( self , fingerprint , jvm_options , classpath , stdout , stderr ) : #NEWLINE# #INDENT# 'Synchronously spawn a new nailgun server.' #NEWLINE# safe_file_dump ( self . _ng_stdout , '' ) #NEWLINE# safe_file_dump ( self . _ng_stderr , '' ) #NEWLINE# jvm_options = ( jvm_options + [ self . _PANTS_NG_BUILDROOT_ARG , self . _create_owner_arg ( self . _workdir ) , self . _create_fingerprint_arg ( fingerprint ) ] ) #NEWLINE# post_fork_child_opts = dict ( fingerprint = fingerprint , jvm_options = jvm_options , classpath = classpath , stdout = stdout , stderr = stderr ) #NEWLINE# logger . debug ( 'Spawning nailgun server {i} with fingerprint={f}, jvm_options={j}, classpath={cp}' . format ( i = self . _identity , f = fingerprint , j = jvm_options , cp = classpath ) ) #NEWLINE# self . daemon_spawn ( post_fork_child_opts = stderr ) #NEWLINE# self . await_pid ( self . _connect_timeout ) #NEWLINE# self . write_socket ( self . _await_socket ( self . _connect_timeout ) ) #NEWLINE# logger . debug ( 'Spawned nailgun server {i} with fingerprint={f}, pid={pid} port={port}' . format ( i = self . _identity , f = fingerprint , pid = self . pid , port = self . socket ) ) #NEWLINE# client = self . _create_ngclient ( self . socket , stdout , stderr ) #NEWLINE# self . ensure_connectable ( client ) #NEWLINE# return client