#NEWLINE# def install( self ) : #NEWLINE# #INDENT# dest = os . path . dirname ( os . path . expanduser ( self . tool_path ) ) #NEWLINE# dest = os . path . abspath ( dest ) #NEWLINE# junit_dist = super ( JUnitJar , self ) . install_with_mirrors ( dest , '.jar' ) #NEWLINE# self . log . info ( 'Installing %s into %s' , self . tool_name , dest ) #NEWLINE# junit_dist . close ( ) #NEWLINE# if ( not os . path . exists ( self ) ) : #NEWLINE# #INDENT# os . makedirs ( dest ) #NEWLINE# #UNINDENT# shutil . move ( junit_dist . name , self . tool_path ) #NEWLINE# self . log . info ( 'Installed JUnit successfully' ) #NEWLINE# if ( not self . check_if_installed ( ) ) : #NEWLINE# #INDENT# raise RuntimeError ( ( 'Unable to run %s after installation!' % self . tool_name ) )