浏览代码

ZOOKEEPER-3031: MAVEN MIGRATION - Step 1.4 - move client dir

Author: Norbert Kalmar <nkalmar@yahoo.com>

Reviewers: andor@apache.org

Closes #597 from nkalmar/ZOOKEEPER-3031
Norbert Kalmar 6 年之前
父节点
当前提交
176bd68222
共有 81 个文件被更改,包括 56 次插入54 次删除
  1. 18 18
      .gitignore
  2. 14 13
      build.xml
  3. 5 5
      docs/zookeeperProgrammers.html
  4. 0 0
      zookeeper-client/zookeeper-client-c/CMakeLists.txt
  5. 0 0
      zookeeper-client/zookeeper-client-c/ChangeLog
  6. 0 0
      zookeeper-client/zookeeper-client-c/INSTALL
  7. 0 0
      zookeeper-client/zookeeper-client-c/LICENSE
  8. 0 0
      zookeeper-client/zookeeper-client-c/Makefile.am
  9. 0 0
      zookeeper-client/zookeeper-client-c/NOTICE.txt
  10. 4 3
      zookeeper-client/zookeeper-client-c/README
  11. 0 0
      zookeeper-client/zookeeper-client-c/acinclude.m4
  12. 0 0
      zookeeper-client/zookeeper-client-c/aminclude.am
  13. 0 0
      zookeeper-client/zookeeper-client-c/c-doc.Doxyfile
  14. 0 0
      zookeeper-client/zookeeper-client-c/cmake_config.h.in
  15. 1 1
      zookeeper-client/zookeeper-client-c/configure.ac
  16. 0 0
      zookeeper-client/zookeeper-client-c/include/proto.h
  17. 0 0
      zookeeper-client/zookeeper-client-c/include/recordio.h
  18. 0 0
      zookeeper-client/zookeeper-client-c/include/winconfig.h
  19. 0 0
      zookeeper-client/zookeeper-client-c/include/zookeeper.h
  20. 0 0
      zookeeper-client/zookeeper-client-c/include/zookeeper_log.h
  21. 0 0
      zookeeper-client/zookeeper-client-c/include/zookeeper_version.h
  22. 0 0
      zookeeper-client/zookeeper-client-c/src/addrvec.c
  23. 0 0
      zookeeper-client/zookeeper-client-c/src/addrvec.h
  24. 0 0
      zookeeper-client/zookeeper-client-c/src/cli.c
  25. 0 0
      zookeeper-client/zookeeper-client-c/src/hashtable/LICENSE.txt
  26. 0 0
      zookeeper-client/zookeeper-client-c/src/hashtable/hashtable.c
  27. 0 0
      zookeeper-client/zookeeper-client-c/src/hashtable/hashtable.h
  28. 0 0
      zookeeper-client/zookeeper-client-c/src/hashtable/hashtable_itr.c
  29. 0 0
      zookeeper-client/zookeeper-client-c/src/hashtable/hashtable_itr.h
  30. 0 0
      zookeeper-client/zookeeper-client-c/src/hashtable/hashtable_private.h
  31. 0 0
      zookeeper-client/zookeeper-client-c/src/load_gen.c
  32. 0 0
      zookeeper-client/zookeeper-client-c/src/mt_adaptor.c
  33. 0 0
      zookeeper-client/zookeeper-client-c/src/recordio.c
  34. 0 0
      zookeeper-client/zookeeper-client-c/src/st_adaptor.c
  35. 0 0
      zookeeper-client/zookeeper-client-c/src/winport.c
  36. 0 0
      zookeeper-client/zookeeper-client-c/src/winport.h
  37. 0 0
      zookeeper-client/zookeeper-client-c/src/zk_adaptor.h
  38. 0 0
      zookeeper-client/zookeeper-client-c/src/zk_hashtable.c
  39. 0 0
      zookeeper-client/zookeeper-client-c/src/zk_hashtable.h
  40. 0 0
      zookeeper-client/zookeeper-client-c/src/zk_log.c
  41. 0 0
      zookeeper-client/zookeeper-client-c/src/zookeeper.c
  42. 0 0
      zookeeper-client/zookeeper-client-c/tests/CollectionUtil.h
  43. 0 0
      zookeeper-client/zookeeper-client-c/tests/CppAssertHelper.h
  44. 0 0
      zookeeper-client/zookeeper-client-c/tests/LibCMocks.cc
  45. 0 0
      zookeeper-client/zookeeper-client-c/tests/LibCMocks.h
  46. 0 0
      zookeeper-client/zookeeper-client-c/tests/LibCSymTable.cc
  47. 0 0
      zookeeper-client/zookeeper-client-c/tests/LibCSymTable.h
  48. 0 0
      zookeeper-client/zookeeper-client-c/tests/MocksBase.cc
  49. 0 0
      zookeeper-client/zookeeper-client-c/tests/MocksBase.h
  50. 0 0
      zookeeper-client/zookeeper-client-c/tests/PthreadMocks.cc
  51. 0 0
      zookeeper-client/zookeeper-client-c/tests/PthreadMocks.h
  52. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestClient.cc
  53. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestClientRetry.cc
  54. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestDriver.cc
  55. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestLogClientEnv.cc
  56. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestMulti.cc
  57. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestOperations.cc
  58. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestReadOnlyClient.cc
  59. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestReconfig.cc
  60. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestReconfigServer.cc
  61. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestWatchers.cc
  62. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestZookeeperClose.cc
  63. 0 0
      zookeeper-client/zookeeper-client-c/tests/TestZookeeperInit.cc
  64. 0 0
      zookeeper-client/zookeeper-client-c/tests/ThreadingUtil.cc
  65. 0 0
      zookeeper-client/zookeeper-client-c/tests/ThreadingUtil.h
  66. 0 0
      zookeeper-client/zookeeper-client-c/tests/Util.cc
  67. 0 0
      zookeeper-client/zookeeper-client-c/tests/Util.h
  68. 0 0
      zookeeper-client/zookeeper-client-c/tests/Vector.h
  69. 0 0
      zookeeper-client/zookeeper-client-c/tests/WatchUtil.h
  70. 0 0
      zookeeper-client/zookeeper-client-c/tests/ZKMocks.cc
  71. 0 0
      zookeeper-client/zookeeper-client-c/tests/ZKMocks.h
  72. 0 0
      zookeeper-client/zookeeper-client-c/tests/ZooKeeperQuorumServer.cc
  73. 0 0
      zookeeper-client/zookeeper-client-c/tests/ZooKeeperQuorumServer.h
  74. 0 0
      zookeeper-client/zookeeper-client-c/tests/quorum.cfg
  75. 0 0
      zookeeper-client/zookeeper-client-c/tests/wrappers-mt.opt
  76. 0 0
      zookeeper-client/zookeeper-client-c/tests/wrappers.opt
  77. 1 1
      zookeeper-client/zookeeper-client-c/tests/zkServer.sh
  78. 4 4
      zookeeper-contrib/zookeeper-contrib-zkpython/src/python/setup.py
  79. 5 5
      zookeeper-docs/src/documentation/content/xdocs/zookeeperProgrammers.xml
  80. 2 2
      zookeeper-recipes/zookeeper-recipes-lock/src/main/c/configure.ac
  81. 2 2
      zookeeper-recipes/zookeeper-recipes-queue/src/main/c/configure.ac

+ 18 - 18
.gitignore

@@ -59,24 +59,24 @@ tags
 .cproject
 .cproject
 .project
 .project
 obj
 obj
-src/c/core.*
-src/c/TEST-*.txt
-src/c/*.la
-src/c/*.lo
-src/c/*.o
-src/c/generated/
+zookeeper-client/zookeeper-client-c/core.*
+zookeeper-client/zookeeper-client-c/TEST-*.txt
+zookeeper-client/zookeeper-client-c/*.la
+zookeeper-client/zookeeper-client-c/*.lo
+zookeeper-client/zookeeper-client-c/*.o
+zookeeper-client/zookeeper-client-c/generated/
 src/java/generated/
 src/java/generated/
 src/java/lib/ant-eclipse-*
 src/java/lib/ant-eclipse-*
 src/java/lib/ivy-*
 src/java/lib/ivy-*
-src/c/Makefile.in
-src/c/aclocal.m4
-src/c/autom4te.cache/
-src/c/compile
-src/c/config.guess
-src/c/config.h.in
-src/c/config.sub
-src/c/configure
-src/c/depcomp
-src/c/install-sh
-src/c/ltmain.sh
-src/c/missing
+zookeeper-client/zookeeper-client-c/Makefile.in
+zookeeper-client/zookeeper-client-c/aclocal.m4
+zookeeper-client/zookeeper-client-c/autom4te.cache/
+zookeeper-client/zookeeper-client-c/compile
+zookeeper-client/zookeeper-client-c/config.guess
+zookeeper-client/zookeeper-client-c/config.h.in
+zookeeper-client/zookeeper-client-c/config.sub
+zookeeper-client/zookeeper-client-c/configure
+zookeeper-client/zookeeper-client-c/depcomp
+zookeeper-client/zookeeper-client-c/install-sh
+zookeeper-client/zookeeper-client-c/ltmain.sh
+zookeeper-client/zookeeper-client-c/missing

+ 14 - 13
build.xml

@@ -105,7 +105,7 @@ xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant">
     <property name="build.dir" value="${basedir}/build" />
     <property name="build.dir" value="${basedir}/build" />
     <property name="distribution" value="${basedir}/distribution" />
     <property name="distribution" value="${basedir}/distribution" />
     <property name="src_generated.dir" value="${src.dir}/java/generated" />
     <property name="src_generated.dir" value="${src.dir}/java/generated" />
-    <property name="c.src.dir" value="${src.dir}/c" />    
+    <property name="c.src.dir" value="${basedir}/zookeeper-client/zookeeper-client-c" />
     <property name="csrc_generated.dir" value="${c.src.dir}/generated" />
     <property name="csrc_generated.dir" value="${c.src.dir}/generated" />
 
 
     <property name="jute.file" value="${src.dir}/zookeeper.jute" />
     <property name="jute.file" value="${src.dir}/zookeeper.jute" />
@@ -346,7 +346,7 @@ xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant">
         <java classname="org.apache.jute.compiler.generated.Rcc" fork="true" dir="${csrc_generated.dir}">
         <java classname="org.apache.jute.compiler.generated.Rcc" fork="true" dir="${csrc_generated.dir}">
             <arg value="-l" />
             <arg value="-l" />
             <arg value="c" />
             <arg value="c" />
-            <arg value="../../zookeeper.jute" />
+            <arg value="../../../src/zookeeper.jute" />
             <classpath>
             <classpath>
                 <pathelement path="${build.classes}" />
                 <pathelement path="${build.classes}" />
             </classpath>
             </classpath>
@@ -876,6 +876,7 @@ xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant">
           <include name="zookeeper-recipes/**"/>
           <include name="zookeeper-recipes/**"/>
           <include name="zookeeper-docs/**"/>
           <include name="zookeeper-docs/**"/>
           <include name="zookeeper-contrib/**"/>
           <include name="zookeeper-contrib/**"/>
+          <include name="zookeeper-client/**"/>
         </fileset>
         </fileset>
         <fileset file="src/pom.template"/>
         <fileset file="src/pom.template"/>
       </copy>
       </copy>
@@ -1058,8 +1059,8 @@ xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant">
       <macro_tar param.destfile="${build.dir}/${final.name}-bin.tar.gz">
       <macro_tar param.destfile="${build.dir}/${final.name}-bin.tar.gz">
         <param.listofitems>
         <param.listofitems>
           <tarfileset dir="${build.dir}" mode="664">
           <tarfileset dir="${build.dir}" mode="664">
-            <include name="${final.name}/src/c/**" />
-            <exclude name="${final.name}/src/c/generated/**" />
+            <include name="${final.name}/zookeeper-client/zookeeper-client-c/**" />
+            <exclude name="${final.name}/zookeeper-client/zookeeper-client-c/generated/**" />
           </tarfileset>
           </tarfileset>
           <tarfileset dir="${build.dir}" mode="664">
           <tarfileset dir="${build.dir}" mode="664">
             <exclude name="${final.name}/bin/*" />
             <exclude name="${final.name}/bin/*" />
@@ -1732,15 +1733,15 @@ xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant">
           <exclude name="**/zookeeper-docs/"/>
           <exclude name="**/zookeeper-docs/"/>
           <exclude name="**/lib/jdiff/"/>
           <exclude name="**/lib/jdiff/"/>
           <exclude name="contrib/ZooInspector/src/main/java/com/nitido/utils/toaster/Toaster.java"/>
           <exclude name="contrib/ZooInspector/src/main/java/com/nitido/utils/toaster/Toaster.java"/>
-          <exclude name="src/c/*.la"/>
-          <exclude name="src/c/*.lo"/>
-          <exclude name="src/c/.libs/"/>
-          <exclude name="src/c/autom4te.cache/**"/>
-          <exclude name="src/c/config**"/>
-          <exclude name="src/c/include/winstdint.h"/>
-          <exclude name="src/c/src/hashtable/"/>
-          <exclude name="src/c/test-driver"/>
-          <exclude name="src/c/tests/quorum.cfg"/>
+          <exclude name="src/zookeeper-client/zookeeper-client-c/*.la"/>
+          <exclude name="src/zookeeper-client/zookeeper-client-c/*.lo"/>
+          <exclude name="src/zookeeper-client/zookeeper-client-c/.libs/"/>
+          <exclude name="src/zookeeper-client/zookeeper-client-c/autom4te.cache/**"/>
+          <exclude name="src/zookeeper-client/zookeeper-client-c/config**"/>
+          <exclude name="src/zookeeper-client/zookeeper-client-c/include/winstdint.h"/>
+          <exclude name="src/zookeeper-client/zookeeper-client-c/src/hashtable/"/>
+          <exclude name="src/zookeeper-client/zookeeper-client-c/test-driver"/>
+          <exclude name="src/zookeeper-client/zookeeper-client-c/tests/quorum.cfg"/>
           <exclude name="src/zookeeper-contrib/zookeeper-contrib-loggraph/src/main/webapp/org/apache/zookeeper/graph/resources/date.format.js"/>
           <exclude name="src/zookeeper-contrib/zookeeper-contrib-loggraph/src/main/webapp/org/apache/zookeeper/graph/resources/date.format.js"/>
           <exclude name="src/zookeeper-contrib/zookeeper-contrib-loggraph/src/main/webapp/org/apache/zookeeper/graph/resources/g.bar.js"/>
           <exclude name="src/zookeeper-contrib/zookeeper-contrib-loggraph/src/main/webapp/org/apache/zookeeper/graph/resources/g.bar.js"/>
           <exclude name="src/zookeeper-contrib/zookeeper-contrib-loggraph/src/main/webapp/org/apache/zookeeper/graph/resources/g.dot.js"/>
           <exclude name="src/zookeeper-contrib/zookeeper-contrib-loggraph/src/main/webapp/org/apache/zookeeper/graph/resources/g.dot.js"/>

+ 5 - 5
docs/zookeeperProgrammers.html

@@ -1602,7 +1602,7 @@ document.write("Last Published: " + document.lastModified);
 <div class="content">
 <div class="content">
 <p>This is a very simple example which is intended to show
 <p>This is a very simple example which is intended to show
         how to interact with ZooKeeper ACLs
         how to interact with ZooKeeper ACLs
-        specifically. See <span class="codefrag filename">.../trunk/src/c/src/cli.c</span>
+        specifically. See <span class="codefrag filename">.../trunk/zookeeper-client/zookeeper-client-c/src/cli.c</span>
         for an example of a C client implementation</p>
         for an example of a C client implementation</p>
       
       
 </div>
 </div>
@@ -2182,14 +2182,14 @@ public abstract class ServerAuthenticationProvider implements AuthenticationProv
 <p>Run <span class="codefrag command">ant compile_jute</span> from the ZooKeeper
 <p>Run <span class="codefrag command">ant compile_jute</span> from the ZooKeeper
             top level directory (<span class="codefrag filename">.../trunk</span>).
             top level directory (<span class="codefrag filename">.../trunk</span>).
             This will create a directory named "generated" under
             This will create a directory named "generated" under
-            <span class="codefrag filename">.../trunk/src/c</span>.</p>
+            <span class="codefrag filename">.../trunk/zookeeper-client/zookeeper-client-c</span>.</p>
           
           
 </li>
 </li>
 
 
           
           
 <li>
 <li>
             
             
-<p>Change directory to the<span class="codefrag filename">.../trunk/src/c</span>
+<p>Change directory to the<span class="codefrag filename">.../trunk/zookeeper-client/zookeeper-client-c</span>
             and run <span class="codefrag command">autoreconf -if</span> to bootstrap <strong>autoconf</strong>, <strong>automake</strong> and <strong>libtool</strong>. Make sure you have <strong>autoconf version 2.59</strong> or greater installed.
             and run <span class="codefrag command">autoreconf -if</span> to bootstrap <strong>autoconf</strong>, <strong>automake</strong> and <strong>libtool</strong>. Make sure you have <strong>autoconf version 2.59</strong> or greater installed.
             Skip to step<strong> 4</strong>.</p>
             Skip to step<strong> 4</strong>.</p>
           
           
@@ -2200,7 +2200,7 @@ public abstract class ServerAuthenticationProvider implements AuthenticationProv
             
             
 <p>If you are building from a project source package,
 <p>If you are building from a project source package,
             unzip/untar the source tarball and cd to the<span class="codefrag filename">
             unzip/untar the source tarball and cd to the<span class="codefrag filename">
-            zookeeper-x.x.x/src/c</span> directory.</p>
+            zookeeper-x.x.x/zookeeper-client/zookeeper-client-c</span> directory.</p>
           
           
 </li>
 </li>
 
 
@@ -2331,7 +2331,7 @@ public abstract class ServerAuthenticationProvider implements AuthenticationProv
 <div class="note">
 <div class="note">
 <div class="label">Note</div>
 <div class="label">Note</div>
 <div class="content">
 <div class="content">
-<p>See <span class="codefrag filename">.../trunk/src/c/src/cli.c</span>
+<p>See <span class="codefrag filename">.../trunk/zookeeper-client/zookeeper-client-c/src/cli.c</span>
           for an example of a C client implementation</p>
           for an example of a C client implementation</p>
         
         
 </div>
 </div>

+ 0 - 0
src/c/CMakeLists.txt → zookeeper-client/zookeeper-client-c/CMakeLists.txt


+ 0 - 0
src/c/ChangeLog → zookeeper-client/zookeeper-client-c/ChangeLog


+ 0 - 0
src/c/INSTALL → zookeeper-client/zookeeper-client-c/INSTALL


+ 0 - 0
src/c/LICENSE → zookeeper-client/zookeeper-client-c/LICENSE


+ 0 - 0
src/c/Makefile.am → zookeeper-client/zookeeper-client-c/Makefile.am


+ 0 - 0
src/c/NOTICE.txt → zookeeper-client/zookeeper-client-c/NOTICE.txt


+ 4 - 3
src/c/README → zookeeper-client/zookeeper-client-c/README

@@ -39,9 +39,10 @@ follow the steps outlined below. If you're building from a release
 tar downloaded from Apache please skip to step 2.
 tar downloaded from Apache please skip to step 2.
 
 
 1) do a "ant compile_jute" from the zookeeper top level directory (.../trunk).
 1) do a "ant compile_jute" from the zookeeper top level directory (.../trunk).
-   This will create a directory named "generated" under src/c.  Skip to step 3.
-2) unzip/untar the source tarball and cd to the zookeeper-x.x.x/src/c directory
-3) change directory to src/c and do a "autoreconf -if" to bootstrap
+   This will create a directory named "generated" under zookeeper-client/zookeeper-client-c.
+   Skip to step 3.
+2) unzip/untar the source tarball and cd to the zookeeper-x.x.x/zookeeper-client/zookeeper-client-c directory
+3) change directory to zookeeper-client/zookeeper-client-c and do a "autoreconf -if" to bootstrap
    autoconf, automake and libtool. Please make sure you have autoconf
    autoconf, automake and libtool. Please make sure you have autoconf
    version 2.59 or greater installed. If cppunit is installed in a non-standard
    version 2.59 or greater installed. If cppunit is installed in a non-standard
    directory, you need to specify where to find cppunit.m4. For example, if
    directory, you need to specify where to find cppunit.m4. For example, if

+ 0 - 0
src/c/acinclude.m4 → zookeeper-client/zookeeper-client-c/acinclude.m4


+ 0 - 0
src/c/aminclude.am → zookeeper-client/zookeeper-client-c/aminclude.am


+ 0 - 0
src/c/c-doc.Doxyfile → zookeeper-client/zookeeper-client-c/c-doc.Doxyfile


+ 0 - 0
src/c/cmake_config.h.in → zookeeper-client/zookeeper-client-c/cmake_config.h.in


+ 1 - 1
src/c/configure.ac → zookeeper-client/zookeeper-client-c/configure.ac

@@ -38,7 +38,7 @@ else
 fi
 fi
 
 
 if test "$CALLER" = "ANT" ; then
 if test "$CALLER" = "ANT" ; then
-CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS -DZKSERVER_CMD=\"\\\"${base_dir}/src/c/tests/zkServer.sh\\\"\""
+CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS -DZKSERVER_CMD=\"\\\"${base_dir}/zookeeper-client/zookeeper-client-c/tests/zkServer.sh\\\"\""
 else
 else
 CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS -DZKSERVER_CMD=\"\\\"./tests/zkServer.sh\\\"\""
 CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS -DZKSERVER_CMD=\"\\\"./tests/zkServer.sh\\\"\""
 AC_CHECK_FILES([$srcdir/generated/zookeeper.jute.c $srcdir/generated/zookeeper.jute.h],[],
 AC_CHECK_FILES([$srcdir/generated/zookeeper.jute.c $srcdir/generated/zookeeper.jute.h],[],

+ 0 - 0
src/c/include/proto.h → zookeeper-client/zookeeper-client-c/include/proto.h


+ 0 - 0
src/c/include/recordio.h → zookeeper-client/zookeeper-client-c/include/recordio.h


+ 0 - 0
src/c/include/winconfig.h → zookeeper-client/zookeeper-client-c/include/winconfig.h


+ 0 - 0
src/c/include/zookeeper.h → zookeeper-client/zookeeper-client-c/include/zookeeper.h


+ 0 - 0
src/c/include/zookeeper_log.h → zookeeper-client/zookeeper-client-c/include/zookeeper_log.h


+ 0 - 0
src/c/include/zookeeper_version.h → zookeeper-client/zookeeper-client-c/include/zookeeper_version.h


+ 0 - 0
src/c/src/addrvec.c → zookeeper-client/zookeeper-client-c/src/addrvec.c


+ 0 - 0
src/c/src/addrvec.h → zookeeper-client/zookeeper-client-c/src/addrvec.h


+ 0 - 0
src/c/src/cli.c → zookeeper-client/zookeeper-client-c/src/cli.c


+ 0 - 0
src/c/src/hashtable/LICENSE.txt → zookeeper-client/zookeeper-client-c/src/hashtable/LICENSE.txt


+ 0 - 0
src/c/src/hashtable/hashtable.c → zookeeper-client/zookeeper-client-c/src/hashtable/hashtable.c


+ 0 - 0
src/c/src/hashtable/hashtable.h → zookeeper-client/zookeeper-client-c/src/hashtable/hashtable.h


+ 0 - 0
src/c/src/hashtable/hashtable_itr.c → zookeeper-client/zookeeper-client-c/src/hashtable/hashtable_itr.c


+ 0 - 0
src/c/src/hashtable/hashtable_itr.h → zookeeper-client/zookeeper-client-c/src/hashtable/hashtable_itr.h


+ 0 - 0
src/c/src/hashtable/hashtable_private.h → zookeeper-client/zookeeper-client-c/src/hashtable/hashtable_private.h


+ 0 - 0
src/c/src/load_gen.c → zookeeper-client/zookeeper-client-c/src/load_gen.c


+ 0 - 0
src/c/src/mt_adaptor.c → zookeeper-client/zookeeper-client-c/src/mt_adaptor.c


+ 0 - 0
src/c/src/recordio.c → zookeeper-client/zookeeper-client-c/src/recordio.c


+ 0 - 0
src/c/src/st_adaptor.c → zookeeper-client/zookeeper-client-c/src/st_adaptor.c


+ 0 - 0
src/c/src/winport.c → zookeeper-client/zookeeper-client-c/src/winport.c


+ 0 - 0
src/c/src/winport.h → zookeeper-client/zookeeper-client-c/src/winport.h


+ 0 - 0
src/c/src/zk_adaptor.h → zookeeper-client/zookeeper-client-c/src/zk_adaptor.h


+ 0 - 0
src/c/src/zk_hashtable.c → zookeeper-client/zookeeper-client-c/src/zk_hashtable.c


+ 0 - 0
src/c/src/zk_hashtable.h → zookeeper-client/zookeeper-client-c/src/zk_hashtable.h


+ 0 - 0
src/c/src/zk_log.c → zookeeper-client/zookeeper-client-c/src/zk_log.c


+ 0 - 0
src/c/src/zookeeper.c → zookeeper-client/zookeeper-client-c/src/zookeeper.c


+ 0 - 0
src/c/tests/CollectionUtil.h → zookeeper-client/zookeeper-client-c/tests/CollectionUtil.h


+ 0 - 0
src/c/tests/CppAssertHelper.h → zookeeper-client/zookeeper-client-c/tests/CppAssertHelper.h


+ 0 - 0
src/c/tests/LibCMocks.cc → zookeeper-client/zookeeper-client-c/tests/LibCMocks.cc


+ 0 - 0
src/c/tests/LibCMocks.h → zookeeper-client/zookeeper-client-c/tests/LibCMocks.h


+ 0 - 0
src/c/tests/LibCSymTable.cc → zookeeper-client/zookeeper-client-c/tests/LibCSymTable.cc


+ 0 - 0
src/c/tests/LibCSymTable.h → zookeeper-client/zookeeper-client-c/tests/LibCSymTable.h


+ 0 - 0
src/c/tests/MocksBase.cc → zookeeper-client/zookeeper-client-c/tests/MocksBase.cc


+ 0 - 0
src/c/tests/MocksBase.h → zookeeper-client/zookeeper-client-c/tests/MocksBase.h


+ 0 - 0
src/c/tests/PthreadMocks.cc → zookeeper-client/zookeeper-client-c/tests/PthreadMocks.cc


+ 0 - 0
src/c/tests/PthreadMocks.h → zookeeper-client/zookeeper-client-c/tests/PthreadMocks.h


+ 0 - 0
src/c/tests/TestClient.cc → zookeeper-client/zookeeper-client-c/tests/TestClient.cc


+ 0 - 0
src/c/tests/TestClientRetry.cc → zookeeper-client/zookeeper-client-c/tests/TestClientRetry.cc


+ 0 - 0
src/c/tests/TestDriver.cc → zookeeper-client/zookeeper-client-c/tests/TestDriver.cc


+ 0 - 0
src/c/tests/TestLogClientEnv.cc → zookeeper-client/zookeeper-client-c/tests/TestLogClientEnv.cc


+ 0 - 0
src/c/tests/TestMulti.cc → zookeeper-client/zookeeper-client-c/tests/TestMulti.cc


+ 0 - 0
src/c/tests/TestOperations.cc → zookeeper-client/zookeeper-client-c/tests/TestOperations.cc


+ 0 - 0
src/c/tests/TestReadOnlyClient.cc → zookeeper-client/zookeeper-client-c/tests/TestReadOnlyClient.cc


+ 0 - 0
src/c/tests/TestReconfig.cc → zookeeper-client/zookeeper-client-c/tests/TestReconfig.cc


+ 0 - 0
src/c/tests/TestReconfigServer.cc → zookeeper-client/zookeeper-client-c/tests/TestReconfigServer.cc


+ 0 - 0
src/c/tests/TestWatchers.cc → zookeeper-client/zookeeper-client-c/tests/TestWatchers.cc


+ 0 - 0
src/c/tests/TestZookeeperClose.cc → zookeeper-client/zookeeper-client-c/tests/TestZookeeperClose.cc


+ 0 - 0
src/c/tests/TestZookeeperInit.cc → zookeeper-client/zookeeper-client-c/tests/TestZookeeperInit.cc


+ 0 - 0
src/c/tests/ThreadingUtil.cc → zookeeper-client/zookeeper-client-c/tests/ThreadingUtil.cc


+ 0 - 0
src/c/tests/ThreadingUtil.h → zookeeper-client/zookeeper-client-c/tests/ThreadingUtil.h


+ 0 - 0
src/c/tests/Util.cc → zookeeper-client/zookeeper-client-c/tests/Util.cc


+ 0 - 0
src/c/tests/Util.h → zookeeper-client/zookeeper-client-c/tests/Util.h


+ 0 - 0
src/c/tests/Vector.h → zookeeper-client/zookeeper-client-c/tests/Vector.h


+ 0 - 0
src/c/tests/WatchUtil.h → zookeeper-client/zookeeper-client-c/tests/WatchUtil.h


+ 0 - 0
src/c/tests/ZKMocks.cc → zookeeper-client/zookeeper-client-c/tests/ZKMocks.cc


+ 0 - 0
src/c/tests/ZKMocks.h → zookeeper-client/zookeeper-client-c/tests/ZKMocks.h


+ 0 - 0
src/c/tests/ZooKeeperQuorumServer.cc → zookeeper-client/zookeeper-client-c/tests/ZooKeeperQuorumServer.cc


+ 0 - 0
src/c/tests/ZooKeeperQuorumServer.h → zookeeper-client/zookeeper-client-c/tests/ZooKeeperQuorumServer.h


+ 0 - 0
src/c/tests/quorum.cfg → zookeeper-client/zookeeper-client-c/tests/quorum.cfg


+ 0 - 0
src/c/tests/wrappers-mt.opt → zookeeper-client/zookeeper-client-c/tests/wrappers-mt.opt


+ 0 - 0
src/c/tests/wrappers.opt → zookeeper-client/zookeeper-client-c/tests/wrappers.opt


+ 1 - 1
src/c/tests/zkServer.sh → zookeeper-client/zookeeper-client-c/tests/zkServer.sh

@@ -161,7 +161,7 @@ startReadOnly)
         mkdir -p "${tmpdir}/zkdata"
         mkdir -p "${tmpdir}/zkdata"
         rm -f "${tmpdir}/zkdata/myid" && echo 1 > "${tmpdir}/zkdata/myid"
         rm -f "${tmpdir}/zkdata/myid" && echo 1 > "${tmpdir}/zkdata/myid"
 
 
-        sed "s#TMPDIR#${tmpdir}#g" ${base_dir}/src/c/tests/quorum.cfg > "${tmpdir}/quorum.cfg"
+        sed "s#TMPDIR#${tmpdir}#g" ${base_dir}/zookeeper-client/zookeeper-client-c/tests/quorum.cfg > "${tmpdir}/quorum.cfg"
 
 
         # force read-only mode
         # force read-only mode
         java -cp "$CLASSPATH" -Dreadonlymode.enabled=true org.apache.zookeeper.server.quorum.QuorumPeerMain ${tmpdir}/quorum.cfg &> "${tmpdir}/zk.log" &
         java -cp "$CLASSPATH" -Dreadonlymode.enabled=true org.apache.zookeeper.server.quorum.QuorumPeerMain ${tmpdir}/quorum.cfg &> "${tmpdir}/zk.log" &

+ 4 - 4
zookeeper-contrib/zookeeper-contrib-zkpython/src/python/setup.py

@@ -19,12 +19,12 @@ from distutils.core import setup, Extension
 zookeeper_basedir = "../../../"
 zookeeper_basedir = "../../../"
 
 
 zookeepermodule = Extension("zookeeper",
 zookeepermodule = Extension("zookeeper",
-                            sources=["src/c/zookeeper.c"],
-                            include_dirs=[zookeeper_basedir + "/src/c/include",
+                            sources=["zookeeper-client/zookeeper-client-c/zookeeper.c"],
+                            include_dirs=[zookeeper_basedir + "/zookeeper-client/zookeeper-client-c/include",
                                           zookeeper_basedir + "/build/c",
                                           zookeeper_basedir + "/build/c",
-                                          zookeeper_basedir + "/src/c/generated"],
+                                          zookeeper_basedir + "/zookeeper-client/zookeeper-client-c/generated"],
                             libraries=["zookeeper_mt"],
                             libraries=["zookeeper_mt"],
-                            library_dirs=[zookeeper_basedir + "/src/c/.libs/",
+                            library_dirs=[zookeeper_basedir + "/zookeeper-client/zookeeper-client-c/.libs/",
                                           zookeeper_basedir + "/build/c/.libs/",
                                           zookeeper_basedir + "/build/c/.libs/",
                                           zookeeper_basedir + "/build/test/test-cppunit/.libs",
                                           zookeeper_basedir + "/build/test/test-cppunit/.libs",
                                           "/usr/local/lib"
                                           "/usr/local/lib"

+ 5 - 5
zookeeper-docs/src/documentation/content/xdocs/zookeeperProgrammers.xml

@@ -1046,7 +1046,7 @@
 
 
       <note><para>This is a very simple example which is intended to show
       <note><para>This is a very simple example which is intended to show
         how to interact with ZooKeeper ACLs
         how to interact with ZooKeeper ACLs
-        specifically. See <filename>.../trunk/src/c/src/cli.c</filename>
+        specifically. See <filename>.../trunk/zookeeper-client/zookeeper-client-c/src/cli.c</filename>
         for an example of a C client implementation</para>
         for an example of a C client implementation</para>
       </note>
       </note>
 
 
@@ -1610,11 +1610,11 @@ public abstract class ServerAuthenticationProvider implements AuthenticationProv
             <para>Run <command>ant compile_jute</command> from the ZooKeeper
             <para>Run <command>ant compile_jute</command> from the ZooKeeper
             top level directory (<filename>.../trunk</filename>).
             top level directory (<filename>.../trunk</filename>).
             This will create a directory named "generated" under
             This will create a directory named "generated" under
-            <filename>.../trunk/src/c</filename>.</para>
+            <filename>.../trunk/zookeeper-client/zookeeper-client-c</filename>.</para>
           </listitem>
           </listitem>
 
 
           <listitem>
           <listitem>
-            <para>Change directory to the<filename>.../trunk/src/c</filename>
+            <para>Change directory to the<filename>.../trunk/zookeeper-client/zookeeper-client-c</filename>
             and run <command>autoreconf -if</command> to bootstrap <emphasis
             and run <command>autoreconf -if</command> to bootstrap <emphasis
             role="bold">autoconf</emphasis>, <emphasis
             role="bold">autoconf</emphasis>, <emphasis
             role="bold">automake</emphasis> and <emphasis
             role="bold">automake</emphasis> and <emphasis
@@ -1626,7 +1626,7 @@ public abstract class ServerAuthenticationProvider implements AuthenticationProv
           <listitem>
           <listitem>
             <para>If you are building from a project source package,
             <para>If you are building from a project source package,
             unzip/untar the source tarball and cd to the<filename>
             unzip/untar the source tarball and cd to the<filename>
-            zookeeper-x.x.x/src/c</filename> directory.</para>
+            zookeeper-x.x.x/zookeeper-client/zookeeper-client-c</filename> directory.</para>
           </listitem>
           </listitem>
 
 
           <listitem>
           <listitem>
@@ -1709,7 +1709,7 @@ public abstract class ServerAuthenticationProvider implements AuthenticationProv
           </listitem>
           </listitem>
         </orderedlist>
         </orderedlist>
 
 
-        <note><para>See <filename>.../trunk/src/c/src/cli.c</filename>
+        <note><para>See <filename>.../trunk/zookeeper-client/zookeeper-client-c/src/cli.c</filename>
           for an example of a C client implementation</para>
           for an example of a C client implementation</para>
         </note>
         </note>
       </section>
       </section>

+ 2 - 2
zookeeper-recipes/zookeeper-recipes-lock/src/main/c/configure.ac

@@ -48,8 +48,8 @@ DX_PS_FEATURE(OFF)
 DX_INIT_DOXYGEN([zookeeper-locks],[c-doc.Doxyfile],[docs])
 DX_INIT_DOXYGEN([zookeeper-locks],[c-doc.Doxyfile],[docs])
 
 
   
   
-ZOOKEEPER_PATH=${BUILD_PATH}/../../../../../src/c
-ZOOKEEPER_LD=-L${BUILD_PATH}/../../../../../src/c\ -lzookeeper_mt
+ZOOKEEPER_PATH=${BUILD_PATH}/../../../../zookeeper-client/zookeeper-client-c
+ZOOKEEPER_LD=-L${BUILD_PATH}/../../../../zookeeper-client/zookeeper-client-c\ -lzookeeper_mt
 
 
 AC_SUBST(ZOOKEEPER_PATH)
 AC_SUBST(ZOOKEEPER_PATH)
 AC_SUBST(ZOOKEEPER_LD)
 AC_SUBST(ZOOKEEPER_LD)

+ 2 - 2
zookeeper-recipes/zookeeper-recipes-queue/src/main/c/configure.ac

@@ -48,8 +48,8 @@ DX_PS_FEATURE(OFF)
 DX_INIT_DOXYGEN([zookeeper-queues],[c-doc.Doxyfile],[docs])
 DX_INIT_DOXYGEN([zookeeper-queues],[c-doc.Doxyfile],[docs])
 
 
   
   
-ZOOKEEPER_PATH=${BUILD_PATH}/../../../../../src/c
-ZOOKEEPER_LD=-L${BUILD_PATH}/../../../../../src/c\ -lzookeeper_mt
+ZOOKEEPER_PATH=${BUILD_PATH}/../../../../zookeeper-client/zookeeper-client-c
+ZOOKEEPER_LD=-L${BUILD_PATH}/../../../../zookeeper-client/zookeeper-client-c\ -lzookeeper_mt
 
 
 AC_SUBST(ZOOKEEPER_PATH)
 AC_SUBST(ZOOKEEPER_PATH)
 AC_SUBST(ZOOKEEPER_LD)
 AC_SUBST(ZOOKEEPER_LD)