Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(992)

Unified Diff: build/android/gyp/jar_toc.py

Issue 269943005: Add android_library template (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/BUILD.gn ('k') | build/android/gyp/javac.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/jar_toc.py
diff --git a/build/android/gyp/jar_toc.py b/build/android/gyp/jar_toc.py
index 0c7a849794a4220695b4c72e3b1a70a009bcda3a..e78cb4098c096b1b5cadb2e208ef05d219f1b20c 100755
--- a/build/android/gyp/jar_toc.py
+++ b/build/android/gyp/jar_toc.py
@@ -18,6 +18,7 @@ rebuild, will have a corresponding change in the TOC file.
"""
import optparse
+import os
import re
import sys
import zipfile
@@ -86,8 +87,9 @@ def DoJarToc(options):
lambda: UpdateToc(jar_path, toc_path),
record_path=record_path,
input_paths=[jar_path],
+ force=not os.path.exists(toc_path),
)
- build_utils.Touch(toc_path)
+ build_utils.Touch(toc_path, fail_if_missing=True)
def main():
« no previous file with comments | « base/BUILD.gn ('k') | build/android/gyp/javac.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698