You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ne...@apache.org on 2011/10/12 03:05:29 UTC
svn commit: r1182158 - in /incubator/kafka/trunk/clients/cpp: ./ build-aux/
build-aux/m4/ src/ src/tests/
Author: nehanarkhede
Date: Wed Oct 12 01:05:28 2011
New Revision: 1182158
URL: http://svn.apache.org/viewvc?rev=1182158&view=rev
Log:
KAFKA-141 Follow up patch to fix the cpp files; patched by Lorenzo, nehanarkhede; reviewed by junrao, jjkoshy
Added:
incubator/kafka/trunk/clients/cpp/autoconf.sh
Removed:
incubator/kafka/trunk/clients/cpp/Makefile.in
incubator/kafka/trunk/clients/cpp/aclocal.m4
incubator/kafka/trunk/clients/cpp/build-aux/config.guess
incubator/kafka/trunk/clients/cpp/build-aux/config.sub
incubator/kafka/trunk/clients/cpp/build-aux/depcomp
incubator/kafka/trunk/clients/cpp/build-aux/install-sh
incubator/kafka/trunk/clients/cpp/build-aux/ltmain.sh
incubator/kafka/trunk/clients/cpp/build-aux/m4/libtool.m4
incubator/kafka/trunk/clients/cpp/build-aux/m4/ltoptions.m4
incubator/kafka/trunk/clients/cpp/build-aux/m4/ltsugar.m4
incubator/kafka/trunk/clients/cpp/build-aux/m4/ltversion.m4
incubator/kafka/trunk/clients/cpp/build-aux/m4/lt~obsolete.m4
incubator/kafka/trunk/clients/cpp/build-aux/missing
incubator/kafka/trunk/clients/cpp/configure
Modified:
incubator/kafka/trunk/clients/cpp/README.md
incubator/kafka/trunk/clients/cpp/src/encoder.hpp
incubator/kafka/trunk/clients/cpp/src/encoder_helper.hpp
incubator/kafka/trunk/clients/cpp/src/example.cpp
incubator/kafka/trunk/clients/cpp/src/producer.cpp
incubator/kafka/trunk/clients/cpp/src/producer.hpp
incubator/kafka/trunk/clients/cpp/src/tests/encoder_helper_tests.cpp
incubator/kafka/trunk/clients/cpp/src/tests/encoder_tests.cpp
incubator/kafka/trunk/clients/cpp/src/tests/producer_tests.cpp
Modified: incubator/kafka/trunk/clients/cpp/README.md
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/README.md?rev=1182158&r1=1182157&r2=1182158&view=diff
==============================================================================
--- incubator/kafka/trunk/clients/cpp/README.md (original)
+++ incubator/kafka/trunk/clients/cpp/README.md Wed Oct 12 01:05:28 2011
@@ -10,6 +10,7 @@ http://gcc.gnu.org/
http://www.boost.org/
```bash
+./autoconf.sh
./configure
```
Added: incubator/kafka/trunk/clients/cpp/autoconf.sh
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/autoconf.sh?rev=1182158&view=auto
==============================================================================
--- incubator/kafka/trunk/clients/cpp/autoconf.sh (added)
+++ incubator/kafka/trunk/clients/cpp/autoconf.sh Wed Oct 12 01:05:28 2011
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# We need libtool for ./configure && make && make install stage
+command -v libtool
+if [ $? -ne 0 ]; then
+ echo "autoconf.sh: error: unable to locate libtool"
+ exit 1
+fi
+
+# We need autoreconf to build the ./configure script
+command -v autoreconf
+if [ $? -ne 0 ]; then
+ echo "autoconf.sh: error: unable to locate autoreconf"
+ exit 1
+fi
+
+mkdir -p ./build-aux/m4
+autoreconf --verbose --force --install
+
Modified: incubator/kafka/trunk/clients/cpp/src/encoder.hpp
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/src/encoder.hpp?rev=1182158&r1=1182157&r2=1182158&view=diff
==============================================================================
--- incubator/kafka/trunk/clients/cpp/src/encoder.hpp (original)
+++ incubator/kafka/trunk/clients/cpp/src/encoder.hpp Wed Oct 12 01:05:28 2011
@@ -1,9 +1,22 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
/*
* encoder.hpp
*
- * Created on: 21 Jun 2011
- * Author: Ben Gray (@benjamg)
- */
#ifndef KAFKA_ENCODER_HPP_
#define KAFKA_ENCODER_HPP_
Modified: incubator/kafka/trunk/clients/cpp/src/encoder_helper.hpp
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/src/encoder_helper.hpp?rev=1182158&r1=1182157&r2=1182158&view=diff
==============================================================================
--- incubator/kafka/trunk/clients/cpp/src/encoder_helper.hpp (original)
+++ incubator/kafka/trunk/clients/cpp/src/encoder_helper.hpp Wed Oct 12 01:05:28 2011
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
/*
* encoder_helper.hpp
*
Modified: incubator/kafka/trunk/clients/cpp/src/example.cpp
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/src/example.cpp?rev=1182158&r1=1182157&r2=1182158&view=diff
==============================================================================
--- incubator/kafka/trunk/clients/cpp/src/example.cpp (original)
+++ incubator/kafka/trunk/clients/cpp/src/example.cpp Wed Oct 12 01:05:28 2011
@@ -1,3 +1,19 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
#include <exception>
#include <cstdlib>
Modified: incubator/kafka/trunk/clients/cpp/src/producer.cpp
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/src/producer.cpp?rev=1182158&r1=1182157&r2=1182158&view=diff
==============================================================================
--- incubator/kafka/trunk/clients/cpp/src/producer.cpp (original)
+++ incubator/kafka/trunk/clients/cpp/src/producer.cpp Wed Oct 12 01:05:28 2011
@@ -1,3 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
+
/*
* producer.cpp
*
Modified: incubator/kafka/trunk/clients/cpp/src/producer.hpp
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/src/producer.hpp?rev=1182158&r1=1182157&r2=1182158&view=diff
==============================================================================
--- incubator/kafka/trunk/clients/cpp/src/producer.hpp (original)
+++ incubator/kafka/trunk/clients/cpp/src/producer.hpp Wed Oct 12 01:05:28 2011
@@ -1,3 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
+
/*
* producer.hpp
*
Modified: incubator/kafka/trunk/clients/cpp/src/tests/encoder_helper_tests.cpp
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/src/tests/encoder_helper_tests.cpp?rev=1182158&r1=1182157&r2=1182158&view=diff
==============================================================================
--- incubator/kafka/trunk/clients/cpp/src/tests/encoder_helper_tests.cpp (original)
+++ incubator/kafka/trunk/clients/cpp/src/tests/encoder_helper_tests.cpp Wed Oct 12 01:05:28 2011
@@ -1,3 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
+
/*
* encoder_helper_tests.cpp
*
Modified: incubator/kafka/trunk/clients/cpp/src/tests/encoder_tests.cpp
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/src/tests/encoder_tests.cpp?rev=1182158&r1=1182157&r2=1182158&view=diff
==============================================================================
--- incubator/kafka/trunk/clients/cpp/src/tests/encoder_tests.cpp (original)
+++ incubator/kafka/trunk/clients/cpp/src/tests/encoder_tests.cpp Wed Oct 12 01:05:28 2011
@@ -1,3 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
+
/*
* encoder_tests.cpp
*
Modified: incubator/kafka/trunk/clients/cpp/src/tests/producer_tests.cpp
URL: http://svn.apache.org/viewvc/incubator/kafka/trunk/clients/cpp/src/tests/producer_tests.cpp?rev=1182158&r1=1182157&r2=1182158&view=diff
==============================================================================
--- incubator/kafka/trunk/clients/cpp/src/tests/producer_tests.cpp (original)
+++ incubator/kafka/trunk/clients/cpp/src/tests/producer_tests.cpp Wed Oct 12 01:05:28 2011
@@ -1,3 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
+
/*
* producer_tests.cpp
*