Skip to content

Commit

Permalink
THRIFT-1227 - erlang implementation of thrift json protocol
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1172199 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Anthony F. Molinaro committed Sep 18, 2011
1 parent 84e4a3c commit a653067
Show file tree
Hide file tree
Showing 5 changed files with 670 additions and 6 deletions.
10 changes: 6 additions & 4 deletions lib/erl/Makefile.am
Expand Up @@ -28,6 +28,7 @@ THRIFT_FILES = $(wildcard ../../test/*.thrift) \
touch .generated

all: .generated
./rebar get-deps
./rebar compile

check: .generated
Expand All @@ -46,10 +47,8 @@ uninstall:
rm -rf $(DESTDIR)$(ERLANG_INSTALL_LIB_DIR_thrift)

clean:
rm .generated
./rebar clean

maintainer-clean-local:
rm .generated
rm -f test/secondService_* \
test/aService_* \
test/serviceForExceptionWithAMap_* \
Expand All @@ -73,8 +72,11 @@ maintainer-clean-local:
test/optionalRequiredTest_* \
test/yowza_* \
test/reverseOrderService_*
./rebar clean

maintainer-clean-local:
rm -rf ebin

EXTRA_DIST = include src rebar rebar.config
EXTRA_DIST = include src rebar rebar.config test

MAINTAINERCLEANFILES = Makefile.in
5 changes: 5 additions & 0 deletions lib/erl/README
Expand Up @@ -41,3 +41,8 @@ ok
{ok,ok}
8> {C7, R7} = (catch thrift_client:call(C6, testException, ["Xception"])), R7.
{exception,{xception,1001,<<"Xception">>}}

Notes
=====
To use the JSON protocol client, you will need jsx. This will be pulled in
via rebar for building but not automatically installed by make install.
6 changes: 4 additions & 2 deletions lib/erl/rebar.config
@@ -1,3 +1,5 @@
{erl_opts, [debug_info]}.
% {pre_hooks, [{compile, "./scripts/rebar-pre-compile"},
% {clean, "./scripts/rebar-clean"}]}.
{lib_dirs, ["deps"]}.
{deps, [
{ jsx, "0.9.0", {git, "git://github.com/talentdeficit/jsx.git", {tag, "v0.9.0"}}}
]}.

0 comments on commit a653067

Please sign in to comment.