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

Unified Diff: build/protoc_java.sh

Issue 11146005: Add support for generating jars from protos and add cacheinvalidation_java. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused target Created 8 years, 2 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
Index: build/protoc_java.sh
diff --git a/remoting/tools/is-remoting-session b/build/protoc_java.sh
similarity index 57%
copy from remoting/tools/is-remoting-session
copy to build/protoc_java.sh
index 8f81755e9e0b40462427f8ab84e7bff05588dcfb..1956830b018782267ff2ac00ce5596d4e1ea64ea 100755
--- a/remoting/tools/is-remoting-session
+++ b/build/protoc_java.sh
@@ -1,9 +1,13 @@
#!/bin/bash
-
# 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.
-
-# Test whether or not the current desktop is virtual Me2Me.
-
-[ -n "$CHROME_REMOTE_DESKTOP_SESSION" ]
+if [ -d "$3" ]; then
+ rm -rf $3
+fi
+if [ -e "$4" ]; then
+ rm -f $4
+fi
+mkdir -p $3
+$1 --proto_path $2 --java_out $3 "${@:5}"
+touch $4
Ryan Sleevi 2012/10/30 00:50:43 Seems like you will want to get someone with bash
nyquist 2012/10/31 17:49:33 Changed to use Python.

Powered by Google App Engine
This is Rietveld 408576698