Making Java headless to save execution time
Is seems this only saves a few seconds, but it's a least less confusing for the user executing the test. BUG= Review URL: https://webrtc-codereview.appspot.com/761008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2709 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
		| @@ -92,7 +92,7 @@ def _decode_barcode_in_file(file_name, barcode_width, barcode_height, jars, | |||||||
|   Return: |   Return: | ||||||
|     (bool): True upon success, False otherwise. |     (bool): True upon success, False otherwise. | ||||||
|   """ |   """ | ||||||
|   command = ['java', '-cp', '%s' % jars, |   command = ['java', '-Djava.awt.headless=true', '-cp', '%s' % jars, | ||||||
|              '%s' % command_line_decoder, '--products_only', |              '%s' % command_line_decoder, '--products_only', | ||||||
|              '--dump_results', '--brief', '--crop=%d,%d,%d,%d' % |              '--dump_results', '--brief', '--crop=%d,%d,%d,%d' % | ||||||
|              (0, 0, barcode_width, barcode_height), |              (0, 0, barcode_width, barcode_height), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 kjellander@webrtc.org
					kjellander@webrtc.org