Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C0C2A1061A for ; Tue, 4 Feb 2014 22:58:52 +0000 (UTC) Received: (qmail 45969 invoked by uid 500); 4 Feb 2014 22:58:20 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 45845 invoked by uid 500); 4 Feb 2014 22:58:19 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 45778 invoked by uid 99); 4 Feb 2014 22:58:17 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Feb 2014 22:58:17 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id E3EAB824E4E; Tue, 4 Feb 2014 22:58:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: elserj@apache.org To: commits@accumulo.apache.org Date: Tue, 04 Feb 2014 22:58:28 -0000 Message-Id: <91ee57feda58408f879bc6991695c757@git.apache.org> In-Reply-To: <11c7d6aaa8464efd9a88aef14e4ce0c3@git.apache.org> References: <11c7d6aaa8464efd9a88aef14e4ce0c3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [13/29] git commit: ACCUMULO-2197 provide generated proxy libraries, with modified generate-thrift script which tacks on headers ACCUMULO-2197 provide generated proxy libraries, with modified generate-thrift script which tacks on headers Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/3d436e7b Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/3d436e7b Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/3d436e7b Branch: refs/heads/master Commit: 3d436e7bd2dabf9388bea78620d9f072542b580b Parents: d277321 Author: John Vines Authored: Tue Feb 4 17:12:01 2014 -0500 Committer: John Vines Committed: Tue Feb 4 17:12:01 2014 -0500 ---------------------------------------------------------------------- core/src/main/scripts/generate-thrift.sh | 121 +- proxy/src/main/cpp/AccumuloProxy.cpp | 26408 +++++++++++++++++ proxy/src/main/cpp/AccumuloProxy.h | 11664 ++++++++ .../main/cpp/AccumuloProxy_server.skeleton.cpp | 415 + proxy/src/main/cpp/proxy_constants.cpp | 33 + proxy/src/main/cpp/proxy_constants.h | 40 + proxy/src/main/cpp/proxy_types.cpp | 2586 ++ proxy/src/main/cpp/proxy_types.h | 1600 + proxy/src/main/python/AccumuloProxy-remote | 599 + proxy/src/main/python/AccumuloProxy.py | 16796 +++++++++++ proxy/src/main/python/__init__.py | 15 + proxy/src/main/python/constants.py | 25 + proxy/src/main/python/ttypes.py | 2391 ++ proxy/src/main/ruby/accumulo_proxy.rb | 5072 ++++ proxy/src/main/ruby/proxy_constants.rb | 25 + proxy/src/main/ruby/proxy_types.rb | 650 + proxy/src/main/scripts/generate-thrift.sh | 1 + 17 files changed, 68413 insertions(+), 28 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/3d436e7b/core/src/main/scripts/generate-thrift.sh ---------------------------------------------------------------------- diff --git a/core/src/main/scripts/generate-thrift.sh b/core/src/main/scripts/generate-thrift.sh index 043d30b..5a5d69f 100755 --- a/core/src/main/scripts/generate-thrift.sh +++ b/core/src/main/scripts/generate-thrift.sh @@ -31,7 +31,8 @@ [ -z $BASE_OUTPUT_PACKAGE ] && BASE_OUTPUT_PACKAGE='org.apache.accumulo.core' [ -z $PACKAGES_TO_GENERATE ] && PACKAGES_TO_GENERATE=(gc master tabletserver security client.impl data) [ -z $BUILD_DIR ] && BUILD_DIR='target' -[ -z $FINAL_DIR ] && FINAL_DIR='src/main/java' +[ -z $LANGUAGES_TO_GENERATE ] && LANGUAGES_TO_GENERATE=(java) +[ -z $FINAL_DIR ] && FINAL_DIR='src/main' # ======================================================================================================================== fail() { @@ -73,37 +74,101 @@ done # For all generated thrift code, suppress all warnings and add the LICENSE header find $BUILD_DIR/gen-java -name '*.java' -print0 | xargs -0 sed -i.orig -e 's/public class /@SuppressWarnings("all") public class /' find $BUILD_DIR/gen-java -name '*.java' -print0 | xargs -0 sed -i.orig -e 's/public enum /@SuppressWarnings("all") public enum /' -for f in $(find $BUILD_DIR/gen-java -name '*.java'); do - cat - $f >${f}-with-license <${f}-with-license <