From ead3005c465d76f573fc63cd728269e84f61ee02 Mon Sep 17 00:00:00 2001 From: "kjellander@webrtc.org" Date: Thu, 6 Sep 2012 09:33:08 +0000 Subject: [PATCH] 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 --- tools/barcode_tools/barcode_decoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/barcode_tools/barcode_decoder.py b/tools/barcode_tools/barcode_decoder.py index b016219789..9c71c16d4f 100755 --- a/tools/barcode_tools/barcode_decoder.py +++ b/tools/barcode_tools/barcode_decoder.py @@ -92,7 +92,7 @@ def _decode_barcode_in_file(file_name, barcode_width, barcode_height, jars, Return: (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', '--dump_results', '--brief', '--crop=%d,%d,%d,%d' % (0, 0, barcode_width, barcode_height),