Commit da00d557 authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Android: Don't use response file for javac.py's classpath

It's sometimes quite useful when debugging build failures to be able to
see the classpath.

Bug: 771347
Change-Id: Ic378b969e25f93d1325663c832fc76583ca15744
Reviewed-on: https://chromium-review.googlesource.com/893518Reviewed-by: default avatarEric Stevenson <estevenson@chromium.org>
Commit-Queue: agrieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532941}
parent c7b73e44
......@@ -326,10 +326,7 @@ def _OnStaleMd5(changes, options, javac_cmd, java_files, classpath_inputs,
# Pass classpath and source paths as response files to avoid extremely
# long command lines that are tedius to debug.
if classpath:
classpath_rsp_path = os.path.join(temp_dir, 'classpath.txt')
with open(classpath_rsp_path, 'w') as f:
f.write(':'.join(classpath))
cmd += ['-classpath', '@' + classpath_rsp_path]
cmd += ['-classpath', ':'.join(classpath)]
java_files_rsp_path = os.path.join(temp_dir, 'files_list.txt')
with open(java_files_rsp_path, 'w') as f:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment