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

Unified Diff: third_party/protobuf/protobuf_lite_java_descriptor_proto.py

Issue 556933002: Remove protobuf lite for java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase before submit Created 6 years, 3 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 | « third_party/protobuf/protobuf.gyp ('k') | third_party/protobuf/protobuf_lite_java_parse_pom.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/protobuf/protobuf_lite_java_descriptor_proto.py
diff --git a/third_party/protobuf/protobuf_lite_java_descriptor_proto.py b/third_party/protobuf/protobuf_lite_java_descriptor_proto.py
deleted file mode 100755
index 2967ce92ac40126dae61ed5d6f456bcdaba1319a..0000000000000000000000000000000000000000
--- a/third_party/protobuf/protobuf_lite_java_descriptor_proto.py
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/env python
-# Copyright (c) 2012 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Generate java DescriptorProto file.
-
-Usage:
- protobuf_lite_java_descriptor_proto.py {protoc} {java_out} {include} {proto_files}
-
-This is a helper file for the protobuf_lite_java_gen_descriptor_proto action in
-protobuf.gyp.
-
-It performs the following steps:
-1. Recursively deletes old java_out directory.
-2. Creates java_out directory.
-3. Generates Java descriptor proto file using protoc.
-"""
-
-import os
-import shutil
-import subprocess
-import sys
-
-def main(argv):
- if len(argv) < 4:
- usage()
- return 1
-
- protoc_path, java_out, include = argv[1:4]
- proto_files = argv[4:]
-
- # Delete all old sources
- if os.path.exists(java_out):
- shutil.rmtree(java_out)
-
- # Create source directory
- os.makedirs(java_out)
-
- # Generate Java files using protoc
- return subprocess.call(
- [protoc_path, '--java_out', java_out, '-I' + include]
- + proto_files)
-
-def usage():
- print(__doc__);
-
-if __name__ == '__main__':
- sys.exit(main(sys.argv))
« no previous file with comments | « third_party/protobuf/protobuf.gyp ('k') | third_party/protobuf/protobuf_lite_java_parse_pom.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698