hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r817885 - in /hadoop/zookeeper/trunk: ./ bin/ src/c/tests/ src/contrib/ src/contrib/bookkeeper/ src/contrib/fatjar/ src/contrib/rest/ src/contrib/rest/src/test/ src/contrib/zkpython/src/test/ src/docs/src/documentation/content/xdocs/ src/ja...
Date Tue, 22 Sep 2009 22:59:35 GMT
Author: mahadev
Date: Tue Sep 22 22:59:34 2009
New Revision: 817885

URL: http://svn.apache.org/viewvc?rev=817885&view=rev
Log:
ZOOKEEPER-529. Use Ivy to pull dependencies and also generate pom (phunt via mahadev)

Removed:
    hadoop/zookeeper/trunk/src/java/lib/README.txt
    hadoop/zookeeper/trunk/src/java/lib/jline-0.9.94.jar
    hadoop/zookeeper/trunk/src/java/lib/junit-4.4.LICENSE.txt
    hadoop/zookeeper/trunk/src/java/lib/junit-4.4.jar
    hadoop/zookeeper/trunk/src/java/lib/log4j-1.2.15.NOTICE.txt
    hadoop/zookeeper/trunk/src/java/lib/log4j-1.2.15.jar
Modified:
    hadoop/zookeeper/trunk/CHANGES.txt
    hadoop/zookeeper/trunk/NOTICE.txt
    hadoop/zookeeper/trunk/bin/zkEnv.sh
    hadoop/zookeeper/trunk/build.xml
    hadoop/zookeeper/trunk/src/c/tests/zkServer.sh
    hadoop/zookeeper/trunk/src/contrib/bookkeeper/README.txt
    hadoop/zookeeper/trunk/src/contrib/bookkeeper/build.xml
    hadoop/zookeeper/trunk/src/contrib/build-contrib.xml
    hadoop/zookeeper/trunk/src/contrib/fatjar/build.xml
    hadoop/zookeeper/trunk/src/contrib/rest/build.xml
    hadoop/zookeeper/trunk/src/contrib/rest/src/test/zkServer.sh
    hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zkServer.sh
    hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperConfig.xml
    hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperStarted.xml
    hadoop/zookeeper/trunk/src/java/systest/README.txt
    hadoop/zookeeper/trunk/src/recipes/build-recipes.xml
    hadoop/zookeeper/trunk/src/recipes/lock/build.xml
    hadoop/zookeeper/trunk/src/recipes/lock/src/c/tests/zkServer.sh

Modified: hadoop/zookeeper/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/CHANGES.txt?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/CHANGES.txt (original)
+++ hadoop/zookeeper/trunk/CHANGES.txt Tue Sep 22 22:59:34 2009
@@ -80,6 +80,9 @@
 
   ZOOKEEPER-516. add support for 10 minute test ie "pre-commit" test (phunt)
 
+  ZOOKEEPER-529. Use Ivy to pull dependencies and also generate pom (phunt
+  via mahadev)
+
 NEW FEATURES:
 
 

Modified: hadoop/zookeeper/trunk/NOTICE.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/NOTICE.txt?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/NOTICE.txt (original)
+++ hadoop/zookeeper/trunk/NOTICE.txt Tue Sep 22 22:59:34 2009
@@ -1,2 +1,5 @@
-This product includes software developed by The Apache Software
-Foundation (http://www.apache.org/).
+Apache ZooKeeper
+Copyright 2009 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).

Modified: hadoop/zookeeper/trunk/bin/zkEnv.sh
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/bin/zkEnv.sh?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/bin/zkEnv.sh (original)
+++ hadoop/zookeeper/trunk/bin/zkEnv.sh Tue Sep 22 22:59:34 2009
@@ -65,6 +65,14 @@
     CLASSPATH="$CLASSPATH:$i"
 done
 #make it work for developers
+for d in ${ZOOBINDIR}/../build/classes
+do
+   CLASSPATH="$CLASSPATH:$d"
+done
+for d in ${ZOOBINDIR}/../build/lib/*.jar
+do
+   CLASSPATH="$CLASSPATH:$d"
+done
 for d in ${ZOOBINDIR}/../src/java/lib/*.jar
 do
    CLASSPATH="$CLASSPATH:$d"

Modified: hadoop/zookeeper/trunk/build.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/build.xml?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/build.xml (original)
+++ hadoop/zookeeper/trunk/build.xml Tue Sep 22 22:59:34 2009
@@ -17,7 +17,7 @@
    limitations under the License.
 -->
 
-<project name="ZooKeeper" default="jar">
+<project name="ZooKeeper" default="jar" xmlns:ivy="antlib:org.apache.ivy.ant">
 
     <property name="Name" value="ZooKeeper" />
     <property name="name" value="zookeeper" />
@@ -36,28 +36,30 @@
 
     <property name="src.dir" value="${basedir}/src" />
     <property name="java.src.dir" value="${src.dir}/java/main" />
-    <property name="jmx.src.dir" value="${src.dir}/java/jmx" />
     <property name="lib.dir" value="${src.dir}/java/lib" />
     <property name="build.dir" value="${basedir}/build" />
     <property name="distribution" value="${basedir}/distribution" />
     <property name="src_generated.dir" value="${src.dir}/java/generated" />
     <property name="c.src.dir" value="${src.dir}/c" />    
     <property name="csrc_generated.dir" value="${c.src.dir}/generated" />
-    <property name="build.classes" value="${build.dir}/classes" />
-    <property name="jar.name" value="zookeeper-dev.jar" />
 
     <property name="jute.file" value="${src.dir}/zookeeper.jute" />
 
-    <property name="build.testclasses" value="${build.dir}/testclasses"/>
-    <property name="test.build.dir" value="${build.dir}/test" />
+    <property name="build.classes" value="${build.dir}/classes"/>
+    <property name="build.docs" value="${build.dir}/docs" />
+    <property name="build.javadoc" value="${build.docs}/api" />
+    <property name="build.javadoc.dev" value="${build.docs}/dev-api"/>
+
+    <property name="test.java.build.dir" value="${build.dir}/test"/>
+    <property name="test.java.classes" value="${test.java.build.dir}/classes"/>
     <property name="test.src.dir" value="${src.dir}/java/test"/>
     <property name="systest.src.dir" value="${src.dir}/java/systest"/>
-    <property name="test.log.dir" value="${test.build.dir}/logs" />
-    <property name="test.data.dir" value="${test.build.dir}/data" />
+    <property name="test.log.dir" value="${test.java.build.dir}/logs" />
+    <property name="test.data.dir" value="${test.java.build.dir}/data" />
     <property name="test.data.upgrade.dir" value="${test.data.dir}/upgrade" />
     <property name="test.data.invalid.dir" value="${test.data.dir}/invalidsnap" />
-    <property name="test.cppunit.dir" value="${test.build.dir}/test-cppunit"/>
-    <property name="test.tmp.dir" value="${test.build.dir}/tmp" />
+    <property name="test.cppunit.dir" value="${test.java.build.dir}/test-cppunit"/>
+    <property name="test.tmp.dir" value="${test.java.build.dir}/tmp" />
     <property name="test.output" value="no" />
     <property name="test.timeout" value="900000" />
     <property name="test.junit.output.format" value="plain" />
@@ -74,21 +76,25 @@
               value="http://java.sun.com/javase/6/docs/api/" />
     <property name="javadoc.packages" value="org.apache.*" />
 
-    <property name="build.docs" value="${build.dir}/docs" />
-    <property name="build.javadoc" value="${build.docs}/api" />
-    <property name="build.javadoc.dev" value="${build.docs}/dev-api"/>
-
     <property name="dist.dir" value="${build.dir}/${final.name}"/>
 
     <property name="clover.home" location="${env.CLOVER_HOME}"/>
     <property name="clover.jar" location="${clover.home}/lib/clover.jar" />
-    <property name="clover.db.dir" location="${test.build.dir}/clover/db"/>
+    <property name="clover.db.dir" location="${test.java.build.dir}/clover/db"/>
     <property name="clover.report.dir"
-              location="${test.build.dir}/clover/reports"/>
+              location="${test.java.build.dir}/clover/reports"/>
 
     <property name="contrib.dir" value="${src.dir}/contrib"/>
     <property name="recipes.dir" value="${src.dir}/recipes"/>
 
+    <property name="ivy.version" value="2.1.0-rc2"/>
+    <property name="ivy.url"
+              value="http://repo2.maven.org/maven2/org/apache/ivy/ivy" />
+    <property name="ivy.home" value="${user.home}/.ant" />
+    <property name="ivy.lib" value="${build.dir}/lib"/>
+    <property name="ivy.test.lib" value="${build.dir}/test/lib"/>
+    <property name="ivy.jdiff.lib" value="${build.dir}/jdiff/lib"/>
+
     <available property="clover.present"
                classname="com.cenqua.clover.CloverInstr"
                classpath="${clover.home}/lib/clover.jar"/>
@@ -120,22 +126,12 @@
     <property name="test_patch_sh" value="${test.src.dir}/bin/test-patch.sh"/>
 
 	<!-- jdiff.home property set -->
-    <property name="jdiff.home" value="${lib.dir}"/>
-    <property name="jdiff.version" value="1.0.9"/>
-    <property name="xerces.version" value="1.4.4"/>	
-    <property name="jdiff.jar" value="${jdiff.home}/jdiff-${jdiff.version}.jar"/>
-    <property name="xerces.jar" value="${jdiff.home}/xerces-${xerces.version}.jar"/>
+    <property name="jdiff.home" value="${ivy.jdiff.lib}"/>
     <property name="jdiff.build.dir" value="${build.docs}/jdiff"/>
     <property name="jdiff.xml.dir" value="${lib.dir}/jdiff"/>
     <property name="jdiff.stable" value="3.1.1"/>
     <property name="jdiff.stable.javadoc" 
             value="http://hadoop.apache.org/zookeeper/docs/r${jdiff.stable}/api/"/>
-    <property name="jdiff.download.url" 
-		value="http://mirrors.ibiblio.org/pub/mirrors/maven2/jdiff/jdiff/${jdiff.version}/jdiff-${jdiff.version}.jar"/>
-    <property name="jdiff.jar" value="${jdiff.home}/jdiff.jar"/>
-    <property name="xerces.download.url" 
-		value="http://mirrors.ibiblio.org/pub/mirrors/maven2/xerces/xerces/${xerces.version}/xerces-${xerces.version}.jar"/>
-    <property name="xerces.jar" value="${jdiff.home}/xerces.jar"/>
 
     <!-- ====================================================== -->
     <!-- Macro definitions                                      -->
@@ -151,27 +147,46 @@
       </sequential>
     </macrodef>
 
+    <!-- the normal classpath -->
+    <path id="java.classpath">
+      <pathelement location="${build.classes}"/>
+      <fileset dir="${lib.dir}">
+        <include name="**/*.jar" />
+        <exclude name="**/excluded/" />
+      </fileset>
+      <fileset dir="${ant.home}/lib">
+        <include name="ant.jar" />
+      </fileset>
+      <fileset dir="${ivy.lib}">
+        <include name="**/*.jar" />
+      </fileset>
+      <pathelement path="${clover.jar}" />
+    </path>
+
+    <path id="test.java.classpath">
+      <pathelement location="${test.java.classes}" />
+      <fileset dir="${ivy.test.lib}">
+        <include name="**/*.jar" />
+      </fileset>
+      <path refid="java.classpath"/>
+    </path>
+
     <!-- ====================================================== -->
     <!-- Generate and compile the Java files                    -->
     <!-- ====================================================== -->
     <target name="init">    
         <mkdir dir="${build.classes}" />
+
+        <mkdir dir="${ivy.lib}"/>
+        <mkdir dir="${ivy.test.lib}"/>
+        <condition property="ivy.jar.exists">
+          <available file="${lib.dir}/ivy-${ivy.version}.jar"/>
+        </condition>
+
         <tstamp>
             <format property="build.time" pattern="MM/dd/yyyy HH:mm zz" timezone="GMT"/>
             <format property="year" pattern="yyyy" timezone="GMT"/>
         </tstamp>
-        <condition property="extra.src.dir" value="${jmx.src.dir}">
-            <and>
-                <equals arg1="${target.jdk}" arg2="1.6"/>
-                <available file="${jmx.src.dir}" type="dir"/>
-            </and>
-        </condition>
-        <path id="project.classpath">
-            <fileset dir="${build.classes}" />
-            <pathelement path="${lib.dir}/log4j-1.2.15.jar" />
-            <pathelement path="${clover.jar}" />
-            <pathelement path="${lib.dir}/jline-0.9.94.jar" />
-        </path>
     </target>
     
     <target name="jute" depends="init">
@@ -247,20 +262,38 @@
             target="${target.jdk}" debug="on" />
     </target>
     
-    <target name="compile-extra" depends="compile-main" if="extra.src.dir">
-         <javac srcdir="${extra.src.dir}" destdir="${build.classes}" 
-                target="${target.jdk}" debug="on">
-            <classpath refid="project.classpath"/>
-        </javac>
-        <copy todir="${build.classes}">
-            <fileset dir="${extra.src.dir}"/>
-        </copy>
-   </target>
-    
-    <target name="compile-main" depends="build-generated">
+    <target name="ivy-download" unless="ivy.jar.exists" depends="init">
+      <delete dir="${lib.dir}"
+              includes="ivy-*.jar" excludes="ivy-${ivy.version}.jar"/>
+      <get src="${ivy.url}/${ivy.version}/ivy-${ivy.version}.jar"
+           dest="${lib.dir}/ivy-${ivy.version}.jar" usetimestamp="true"/>
+    </target>
+
+    <target name="ivy-init" depends="ivy-download">
+      <taskdef resource="org/apache/ivy/ant/antlib.xml"
+               uri="antlib:org.apache.ivy.ant" classpathref="java.classpath"/>
+    </target>
+
+    <target name="ivy-retrieve" depends="init,ivy-init">
+      <ivy:retrieve type="jar" conf="default"
+                    pattern="${ivy.lib}/[artifact]-[revision].[ext]"/>
+    </target>
+
+    <target name="ivy-retrieve-test" depends="init,ivy-init">
+      <ivy:retrieve type="jar" conf="test"
+                    pattern="${ivy.test.lib}/[artifact]-[revision].[ext]"/>
+    </target>
+
+    <target name="ivy-retrieve-jdiff" depends="init,ivy-init">
+      <mkdir dir="${ivy.jdiff.lib}"/>
+      <ivy:retrieve type="jar" conf="jdiff"
+                    pattern="${ivy.jdiff.lib}/[artifact]-[revision].[ext]"/>
+    </target>
+
+    <target name="compile" depends="ivy-retrieve,clover,build-generated">
         <javac srcdir="${java.src.dir}" destdir="${build.classes}" 
                target="${target.jdk}" debug="on">
-            <classpath refid="project.classpath"/>
+            <classpath refid="java.classpath"/>
             <compilerarg value="-Xlint:all"/>
             <compilerarg value="-Xlint:-path"/>
         </javac>
@@ -270,29 +303,15 @@
         </copy>
     </target>
 
-    <target name="compile" depends="clover,compile-main,compile-extra"/>
-
-    <target name="test-classpath">
-      <path id="test.classpath">
-        <fileset dir="${basedir}">
-           <include name="*.jar"/>
-        </fileset>
-        <fileset dir="${lib.dir}">
-          <include name="*.jar"/>
-        </fileset>
-        <pathelement path="${clover.jar}" />
-      </path>
-    </target>
-
-    <target name="compile-test" depends="jar,test-classpath">
-      <mkdir dir="${build.testclasses}"/>
-      <javac srcdir="${test.src.dir}" destdir="${build.testclasses}"
+    <target name="compile-test" depends="ivy-retrieve-test,compile">
+      <mkdir dir="${test.java.classes}"/>
+      <javac srcdir="${test.src.dir}" destdir="${test.java.classes}"
              target="${target.jdk}" debug="on">
-        <classpath refid="test.classpath"/>
+        <classpath refid="test.java.classpath"/>
       </javac>
-      <javac srcdir="${systest.src.dir}" destdir="${build.testclasses}"
+      <javac srcdir="${systest.src.dir}" destdir="${test.java.classes}"
              target="${target.jdk}" debug="on">
-        <classpath refid="test.classpath"/>
+        <classpath refid="test.java.classpath"/>
       </javac>
     </target>
 
@@ -343,7 +362,7 @@
     	</packageset>
     	<packageset dir="${src_generated.dir}"/>
         <link href="${javadoc.link.java}"/>
-        <classpath refid="project.classpath"/>
+        <classpath refid="java.classpath"/>
       </javadoc>
     </target>	
 
@@ -385,7 +404,7 @@
 		<fileset dir="${basedir}">
 			<include name="${jar.name}"/>
 		</fileset> 
-        <path refid="project.classpath"/>
+        <path refid="java.classpath"/>
 	</classpath>
       </javadoc>
     </target>	
@@ -403,7 +422,7 @@
             </classpath>
         </java>
         <exec executable="hostname" outputproperty="host.name"/>
-        <jar jarfile="${jar.name}"> 
+        <jar jarfile="${build.dir}/${final.name}.jar">
             <fileset file="LICENSE" />
             <fileset dir="${build.classes}" excludes="**/.generated"/>
             <manifest>
@@ -417,12 +436,6 @@
             </manifest>
         </jar>
     </target>
-
-    <target name="release-jar">
-        <antcall target="jar">
-            <param name="jar.name" value="${build.dir}/${final.name}.jar" />
-        </antcall>
-    </target>
     
     <!-- ================================================================== -->
     <!-- D I S T R I B U T I O N                                            -->
@@ -430,7 +443,7 @@
     <!--                                                                    -->
     <!-- ================================================================== -->
     <target name="package"
-            depends="release-jar,api-report,compile-test,create-cppunit-configure"
+            depends="jar,api-report,create-cppunit-configure,compile-test"
             description="Build distribution">
       <mkdir dir="${dist.dir}"/>
       <mkdir dir="${dist.dir}/lib"/>
@@ -442,7 +455,10 @@
       <mkdir dir="${dist.dir}/docs/api"/>
 
       <copy todir="${dist.dir}/lib" includeEmptyDirs="false">
-        <fileset dir="${lib.dir}"/>
+        <fileset dir="${lib.dir}">
+          <exclude name="**/ivy*.jar" />
+        </fileset>
+        <fileset dir="${ivy.lib}"/>
       </copy>
 
       <subant target="package">
@@ -458,6 +474,18 @@
         <fileset file="${build.dir}/${final.name}.jar"/>
       </copy>
       
+      <checksum file="${dist.dir}/${final.name}.jar" algorithm="md5"/>
+      <checksum file="${dist.dir}/${final.name}.jar" algorithm="sha1"/>
+
+      <ivy:makepom ivyfile="${basedir}/ivy.xml"
+                   pomfile="${dist.dir}/${final.name}.pom">
+        <mapping conf="default" scope="compile"/>
+        <mapping conf="test" scope="test"/>
+      </ivy:makepom>
+
+      <checksum file="${dist.dir}/${final.name}.pom" algorithm="md5"/>
+      <checksum file="${dist.dir}/${final.name}.pom" algorithm="sha1"/>
+
       <copy todir="${dist.dir}/bin">
         <fileset dir="bin"/>
       </copy>
@@ -475,14 +503,14 @@
         <fileset dir=".">
           <include name="*.txt" />
         </fileset>
+        <fileset file="build.xml"/>
+        <fileset file="ivy.xml"/>
       </copy>
 
       <copy todir="${dist.dir}/src" includeEmptyDirs="true">
-        <fileset dir="src" excludes="**/*.template **/docs/build/**/*"/>
+        <fileset dir="src" excludes="**/*.template **/docs/build/**/* **/ivy*.jar"/>
       </copy>
   	  
-      <copy todir="${dist.dir}/" file="build.xml"/>
-
       <chmod perm="ugo+x" type="file" parallel="false">
         <fileset dir="${dist.dir}/bin"/>
         <fileset dir="${dist.dir}/src/contrib/">
@@ -568,8 +596,6 @@
       <delete dir="${docs.src}/build"/>
       <delete dir="${src_generated.dir}" />
       <delete dir="${csrc_generated.dir}" />
-      <delete file="${jdiff.jar}" />
-      <delete file="${xerces.jar}" />
       <delete file="${lib.dir}/Null.java"/>
       <delete file="${lib.dir}/rats.jar" />
       <delete file="${jdiff.xml.dir}/${name}_${version}.xml"/>	
@@ -652,9 +678,9 @@
                with junit fork mode set to "once")-->
           <sysproperty key="zookeeper.DigestAuthenticationProvider.superDigest"
                        value="super:D/InIHSb7yEEbrWz8b9l71RjZJU=" />
-          <classpath refid="test.classpath"/>
+          <classpath refid="test.java.classpath"/>
           <classpath>
-            <pathelement path="${build.testclasses}" />
+            <pathelement path="${test.java.classes}" />
           </classpath>
           <formatter type="${test.junit.output.format}" />
           <batchtest todir="${test.log.dir}" if="quicktest">
@@ -826,7 +852,7 @@
     <!-- Run with 'ant -Dfindbugs.home="path to Findbugs directory" findbugs -->
     <property name="findbugs.home" value="" />
     <target name="findbugs" depends="check-for-findbugs, jar" if="findbugs.present">
-        <property name="findbugs.out.dir" value="${test.build.dir}/findbugs" />
+        <property name="findbugs.out.dir" value="${test.java.build.dir}/findbugs" />
         <property name="findbugs.exclude.file" value="${config.dir}/findbugsExcludeFile.xml" />
         <property name="findbugs.report.htmlfile" value="${findbugs.out.dir}/zookeeper-findbugs-report.html" />
         <property name="findbugs.report.xmlfile" value="${findbugs.out.dir}/zookeeper-findbugs-report.xml" />
@@ -835,9 +861,9 @@
         <mkdir dir="${findbugs.out.dir}" />
         <findbugs home="${findbugs.home}" output="xml:withMessages" excludeFilter="${findbugs.exclude.file}" 
                 outputFile="${findbugs.report.xmlfile}" effort="max" jvmargs="-Xmx512M">
-            <auxClasspath path="${lib.dir}/log4j-1.2.15.jar" />
+            <auxClasspath path="${ivy.lib}/log4j-1.2.15.jar" />
             <sourcePath path="${java.src.dir}" />
-            <class location="${basedir}/${jar.name}" />
+            <class location="${build.dir}/${final.name}.jar" />
         </findbugs>
         <xslt style="${findbugs.home}/src/xsl/default.xsl" in="${findbugs.report.xmlfile}" 
                 out="${findbugs.report.htmlfile}" />
@@ -858,6 +884,9 @@
           <fileset dir="${lib.dir}">
             <include name="*.jar"/>
           </fileset>
+          <fileset dir="${ivy.lib}">
+            <include name="**/*.jar" />
+          </fileset>
         </classpath>
       </taskdef>
 
@@ -885,11 +914,14 @@
                 <fileset dir="${lib.dir}">
                     <include name="*.jar"/>
                 </fileset>
+                <fileset dir="${ivy.lib}">
+                  <include name="**/*.jar" />
+                </fileset>
             </classpath>
             <classpath>
-                <pathelement path="${build.testclasses}" />
+                <pathelement path="${test.java.classes}" />
             </classpath>
-            <classpath refid="test.classpath"/>
+            <classpath refid="test.java.classpath"/>
             <classpath>
                 <pathelement path="${build.classes}" />
             </classpath>
@@ -923,13 +955,13 @@
     	<taskdef resource="checkstyletask.properties">
         	<classpath refid="checkstyle-classpath"/>
         </taskdef>
-        <mkdir dir="${test.build.dir}"/>
+        <mkdir dir="${test.java.build.dir}"/>
         <checkstyle config="${test.src.dir}/checkstyle.xml" failOnViolation="false">
         	<fileset dir="${src.dir}/java" includes="**/*.java" excludes="**/generated/**"/>
-        	<formatter type="xml" toFile="${test.build.dir}/checkstyle-errors.xml"/>
+        	<formatter type="xml" toFile="${test.java.build.dir}/checkstyle-errors.xml"/>
         </checkstyle>
-        <xslt style="${test.src.dir}/checkstyle-noframes-sorted.xsl" in="${test.build.dir}/checkstyle-errors.xml"
-        	out="${test.build.dir}/checkstyle-errors.html"/>
+        <xslt style="${test.src.dir}/checkstyle-noframes-sorted.xsl" in="${test.java.build.dir}/checkstyle-errors.xml"
+        	out="${test.java.build.dir}/checkstyle-errors.html"/>
     </target>
 
     <target name="checkstyle.check" unless="checkstyle.home">
@@ -1012,59 +1044,63 @@
     	</exec>
      </target>
 
-     <target name="get-jdiff" description="download jdiff and its dependencies">
-	<get src="${jdiff.download.url}" dest="${jdiff.jar}" usetimestamp="true"/>
-	<get src="${xerces.download.url}" dest="${xerces.jar}" usetimestamp="true"/>
-     </target>	
-
-     <target name="api-xml" depends="get-jdiff, javadoc, write-null">
-    	<javadoc>
-       		<doclet name="jdiff.JDiff"
-               		path="${jdiff.jar}:${xerces.jar}">
-         		<param name="-apidir" value="${jdiff.xml.dir}"/>
-         		<param name="-apiname" value="${name} ${version}"/>
-       		</doclet>
-       		<packageset dir="${java.src.dir}">
-			<include name="org/apache/zookeeper"/>
-			<exclude name="org/apache/jute"/>
-                </packageset>
-       		<classpath>
-       			<fileset dir="${lib.dir}">
-        			<include name="**/*.jar"/>
-      			</fileset>
-			<pathelement path="${build.classes}" />	
-		</classpath>
-       	</javadoc>
+     <target name="api-xml" depends="ivy-retrieve-jdiff, javadoc, write-null">
+       <javadoc>
+         <doclet name="jdiff.JDiff"
+                 path="${ivy.jdiff.lib}/jdiff-1.0.9.jar:${ivy.jdiff.lib}/xerces-1.4.4.jar">
+           <param name="-apidir" value="${jdiff.xml.dir}"/>
+           <param name="-apiname" value="${name} ${version}"/>
+         </doclet>
+         <packageset dir="${java.src.dir}">
+           <include name="org/apache/zookeeper"/>
+           <exclude name="org/apache/jute"/>
+         </packageset>
+         <classpath>
+           <pathelement location="${build.classes}"/>
+           <fileset dir="${lib.dir}">
+             <include name="**/*.jar" />
+             <exclude name="**/excluded/" />
+           </fileset>
+           <fileset dir="${ivy.lib}">
+             <include name="**/*.jar" />
+           </fileset>
+         </classpath>
+       </javadoc>
      </target>
-	
+     
      <target name="write-null">
-	<exec executable="touch">
-		<arg value="${jdiff.home}/Null.java"/>
-        </exec>
+       <exec executable="touch">
+         <arg value="${jdiff.home}/Null.java"/>
+       </exec>
      </target> 
 
      <target name="api-report" depends="api-xml">
-	<mkdir dir="${jdiff.build.dir}"/>
-        <javadoc sourcepath="${java.src.dir}"
-             destdir="${jdiff.build.dir}"
-	     excludepackagenames="org.apache.jute"	
-             sourceFiles="${jdiff.home}/Null.java">
-       		<doclet name="jdiff.JDiff" path="${jdiff.jar}:${xerces.jar}">
-         		<param name="-oldapi" value="${name} ${jdiff.stable}"/>
-         		<param name="-newapi" value="${name} ${version}"/>
-         		<param name="-oldapidir" value="${jdiff.xml.dir}"/>
-         		<param name="-newapidir" value="${jdiff.xml.dir}"/>
-         		<param name="-javadocold" value="${jdiff.stable.javadoc}"/>
-         		<param name="-javadocnew" value="../../api/"/>
-         		<param name="-stats"/>
-       		</doclet>
-		<classpath>
-       			<fileset dir="${lib.dir}">
-        			<include name="**/*.jar"/>
-      			</fileset>
-			<pathelement path="${build.classes}" />	
-		</classpath>
+       <mkdir dir="${jdiff.build.dir}"/>
+       <javadoc sourcepath="${java.src.dir}"
+                destdir="${jdiff.build.dir}"
+                excludepackagenames="org.apache.jute"	
+                sourceFiles="${jdiff.home}/Null.java">
+         <doclet name="jdiff.JDiff"
+                 path="${ivy.jdiff.lib}/jdiff-1.0.9.jar:${ivy.jdiff.lib}/xerces-1.4.4.jar">
+           <param name="-oldapi" value="${name} ${jdiff.stable}"/>
+           <param name="-newapi" value="${name} ${version}"/>
+           <param name="-oldapidir" value="${jdiff.xml.dir}"/>
+           <param name="-newapidir" value="${jdiff.xml.dir}"/>
+           <param name="-javadocold" value="${jdiff.stable.javadoc}"/>
+           <param name="-javadocnew" value="../../api/"/>
+           <param name="-stats"/>
+         </doclet>
+         <classpath>
+           <pathelement location="${build.classes}"/>
+           <fileset dir="${lib.dir}">
+             <include name="**/*.jar" />
+             <exclude name="**/excluded/" />
+           </fileset>
+           <fileset dir="${ivy.lib}">
+             <include name="**/*.jar" />
+           </fileset>
+         </classpath>
        </javadoc>
-  </target>
+     </target>
 
 </project>

Modified: hadoop/zookeeper/trunk/src/c/tests/zkServer.sh
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/c/tests/zkServer.sh?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/c/tests/zkServer.sh (original)
+++ hadoop/zookeeper/trunk/src/c/tests/zkServer.sh Tue Sep 22 22:59:34 2009
@@ -47,18 +47,39 @@
 rm -f ${base_dir}/build/tmp/zk.pid
 fi
 
+if [ "x${base_dir}" == "x" ]	
+then
+zk_base="../../"
+else
+zk_base="${base_dir}"
+fi
+
+CLASSPATH="$CLASSPATH:${zk_base}/build/classes"
+CLASSPATH="$CLASSPATH:${zk_base}/conf"
+
+for i in "${zk_base}"/build/lib/*.jar
+do
+    CLASSPATH="$CLASSPATH:$i"
+done
+
+for i in "${zk_base}"/src/java/lib/*.jar
+do
+    CLASSPATH="$CLASSPATH:$i"
+done
+
+CLASSPATH="$CLASSPATH:${CLOVER_HOME}/lib/clover.jar"
 
 case $1 in
 start|startClean)
 	if [ "x${base_dir}" == "x" ]
         then
       	mkdir -p /tmp/zkdata
-        java -cp ../../zookeeper-dev.jar:../../src/java/lib/log4j-1.2.15.jar:${CLOVER_HOME}/lib/clover.jar org.apache.zookeeper.server.ZooKeeperServerMain 22181 /tmp/zkdata 3000 $ZKMAXCNXNS &> /tmp/zk.log &
+        java -cp $CLASSPATH org.apache.zookeeper.server.ZooKeeperServerMain 22181 /tmp/zkdata 3000 $ZKMAXCNXNS &> /tmp/zk.log &
         pid=$!
         echo $! > /tmp/zk.pid        
         else
         mkdir -p ${base_dir}/build/tmp/zkdata
-        java -cp ${base_dir}/zookeeper-dev.jar:${base_dir}/src/java/lib/log4j-1.2.15.jar:${base_dir}/conf:${CLOVER_HOME}/lib/clover.jar org.apache.zookeeper.server.ZooKeeperServerMain 22181 ${base_dir}/build/tmp/zkdata 3000 $ZKMAXCNXNS &> ${base_dir}/build/tmp/zk.log &
+        java -cp $CLASSPATH org.apache.zookeeper.server.ZooKeeperServerMain 22181 ${base_dir}/build/tmp/zkdata 3000 $ZKMAXCNXNS &> ${base_dir}/build/tmp/zk.log &
         echo $! > ${base_dir}/build/tmp/zk.pid
 	fi
         sleep 5

Modified: hadoop/zookeeper/trunk/src/contrib/bookkeeper/README.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/bookkeeper/README.txt?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/bookkeeper/README.txt (original)
+++ hadoop/zookeeper/trunk/src/contrib/bookkeeper/README.txt Tue Sep 22 22:59:34 2009
@@ -19,7 +19,7 @@
 
 To set up BookKeeper, follow these steps:
 * Once bookies and ZooKeeper servers are running, create two znodes: "/ledgers" and "/ledgers/available". 
-* To run a bookie, run the java class "org.apache.bookkeeper.proto.BookieServer". It takes 3 parameters: a port, one directory path for transaction logs, and one directory path for indexes and data. Here is an example: java -cp .:bookkeeper.jar:../ZooKeeper/zookeeper-dev.jar:/usr/local/apache-log4j-1.2.15/log4j-1.2.15.jar -Dlog4j.configuration=log4j.properties org.apache.bookkeeper.proto.BookieServer 3181 /disk1/bk/ /disk2/bk/
+* To run a bookie, run the java class "org.apache.bookkeeper.proto.BookieServer". It takes 3 parameters: a port, one directory path for transaction logs, and one directory path for indexes and data. Here is an example: java -cp .:bookkeeper.jar:../ZooKeeper/zookeeper-<version>.jar:/usr/local/apache-log4j-1.2.15/log4j-1.2.15.jar -Dlog4j.configuration=log4j.properties org.apache.bookkeeper.proto.BookieServer 3181 /disk1/bk/ /disk2/bk/
 * For each bookie b, if <host> is the host name of b and <port> is the bookie port, then create a znode "/ledgers/available/<host>:<port>".
 * It is ready to run! 
 

Modified: hadoop/zookeeper/trunk/src/contrib/bookkeeper/build.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/bookkeeper/build.xml?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/bookkeeper/build.xml (original)
+++ hadoop/zookeeper/trunk/src/contrib/bookkeeper/build.xml Tue Sep 22 22:59:34 2009
@@ -41,18 +41,11 @@
     <fail message="ZooKeeper main must first be compiled (toplevel build.xml)"/>
   </target>
 
-  <target name="versionedjarname" if="version">
+  <target name="setjarname">
     <property name="jarname"
               value="${build.dir}/zookeeper-${version}-${name}.jar"/>
   </target>
 
-  <target name="unversionedjarname" unless="version">
-    <property name="jarname"
-              value="${build.dir}/zookeeper-dev-${name}.jar"/>
-  </target>
-
-  <target name="setjarname" depends="versionedjarname, unversionedjarname"/>
-
   <!-- Override jar target to specify main class -->
   <target name="jar" depends="checkMainCompiled, setjarname, compile">
     <echo message="contrib: ${name}"/>

Modified: hadoop/zookeeper/trunk/src/contrib/build-contrib.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/build-contrib.xml?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/build-contrib.xml (original)
+++ hadoop/zookeeper/trunk/src/contrib/build-contrib.xml Tue Sep 22 22:59:34 2009
@@ -48,6 +48,12 @@
     <pathelement location="${build.classes}"/>
     <fileset refid="lib.jars"/>
     <pathelement location="${zk.root}/build/classes"/>
+    <fileset dir="${zk.root}/build/lib">
+      <include name="**/*.jar" />
+    </fileset>
+    <fileset dir="${zk.root}/build/test/lib">
+      <include name="**/*.jar" />
+    </fileset>
     <fileset dir="${zk.root}/src/java/lib">
       <include name="**/*.jar" />
     </fileset>

Modified: hadoop/zookeeper/trunk/src/contrib/fatjar/build.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/fatjar/build.xml?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/fatjar/build.xml (original)
+++ hadoop/zookeeper/trunk/src/contrib/fatjar/build.xml Tue Sep 22 22:59:34 2009
@@ -28,18 +28,11 @@
     <fail message="ZooKeeper main must first be compiled (toplevel build.xml)"/>
   </target>
 
-  <target name="versionedjarname" if="version">
+  <target name="setjarname">
     <property name="jarname"
               value="${build.dir}/zookeeper-${version}-${name}.jar"/>
   </target>
 
-  <target name="unversionedjarname" unless="version">
-    <property name="jarname"
-              value="${build.dir}/zookeeper-dev-${name}.jar"/>
-  </target>
-
-  <target name="setjarname" depends="versionedjarname, unversionedjarname"/>
-
   <!-- Override jar target to specify main class -->
   <target name="jar" depends="checkMainCompiled, setjarname, compile">
     <echo message="contrib: ${name}"/>
@@ -59,7 +52,7 @@
       <fileset file="${zk.root}/LICENSE.txt" />
       <fileset file="${zk.root}/conf/log4j.properties" />
       <fileset dir="${zk.root}/build/classes" excludes="**/.generated"/>
-      <fileset dir="${zk.root}/build/testclasses"/>
+      <fileset dir="${zk.root}/build/test/classes"/>
       <zipgroupfileset dir="${zk.root}/src/java/lib" includes="*.jar" />
     </jar>
   </target>

Modified: hadoop/zookeeper/trunk/src/contrib/rest/build.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/rest/build.xml?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/rest/build.xml (original)
+++ hadoop/zookeeper/trunk/src/contrib/rest/build.xml Tue Sep 22 22:59:34 2009
@@ -42,20 +42,13 @@
     <fail message="ZooKeeper main must first be compiled (toplevel build.xml)"/>
   </target>
 
-  <target name="versionedjarname" if="version">
+  <target name="setjarname">
     <property name="main.jarname"
               value="${zk.root}/build/zookeeper-${version}.jar"/>
     <property name="jarname"
               value="${build.dir}/zookeeper-${version}-${name}.jar"/>
   </target>
 
-  <target name="unversionedjarname" unless="version">
-    <property name="main.jarname"
-              value="${zk.root}/zookeeper-dev.jar"/>
-    <property name="jarname"
-              value="${build.dir}/zookeeper-dev-${name}.jar"/>
-  </target>
-
   <target name="test"
           depends="compile-test,test-init,test-category,test-start,junit.run,test-stop" />
 
@@ -126,8 +119,6 @@
        <fail if="tests.failed">Tests failed!</fail>
     </target>
 
-  <target name="setjarname" depends="versionedjarname, unversionedjarname"/>
-
   <target name="jar" depends="checkMainCompiled, setjarname, compile">
     <echo message="contrib: ${name}"/>
     <jar jarfile="${jarname}">

Modified: hadoop/zookeeper/trunk/src/contrib/rest/src/test/zkServer.sh
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/rest/src/test/zkServer.sh?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/rest/src/test/zkServer.sh (original)
+++ hadoop/zookeeper/trunk/src/contrib/rest/src/test/zkServer.sh Tue Sep 22 22:59:34 2009
@@ -47,16 +47,36 @@
 rm -f ${base_dir}/build/tmp/zk.pid
 fi
 
+if [ "x${base_dir}" == "x" ]	
+then
+zk_base="../../../"
+else
+zk_base="${base_dir}"
+fi
+
+CLASSPATH="$CLASSPATH:${zk_base}/build/classes"
+CLASSPATH="$CLASSPATH:${zk_base}/conf"
+
+for i in "${zk_base}"/build/lib/*.jar
+do
+    CLASSPATH="$CLASSPATH:$i"
+done
+
+for i in "${zk_base}"/src/java/lib/*.jar
+do
+    CLASSPATH="$CLASSPATH:$i"
+done
+
 case $1 in
 start|startClean)
     if [ "x${base_dir}" == "x" ]
         then
         mkdir -p /tmp/zkdata
-        java -cp ../../../zookeeper-dev.jar:../../../src/java/lib/log4j-1.2.15.jar:../../../conf org.apache.zookeeper.server.ZooKeeperServerMain 22182 /tmp/zkdata &> /tmp/zk.log &
+        java -cp $CLASSPATH org.apache.zookeeper.server.ZooKeeperServerMain 22182 /tmp/zkdata &> /tmp/zk.log &
         echo $! > /tmp/zk.pid
         else
         mkdir -p ${base_dir}/build/tmp/zkdata
-        java -cp ${base_dir}/zookeeper-dev.jar:${base_dir}/src/java/lib/log4j-1.2.15.jar:${base_dir}/conf org.apache.zookeeper.server.ZooKeeperServerMain 22182 ${base_dir}/build/tmp/zkdata &> ${base_dir}/build/tmp/zk.log &
+        java -cp $CLASSPATH org.apache.zookeeper.server.ZooKeeperServerMain 22182 ${base_dir}/build/tmp/zkdata &> ${base_dir}/build/tmp/zk.log &
         echo $! > ${base_dir}/build/tmp/zk.pid
     fi
         sleep 5

Modified: hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zkServer.sh
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zkServer.sh?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zkServer.sh (original)
+++ hadoop/zookeeper/trunk/src/contrib/zkpython/src/test/zkServer.sh Tue Sep 22 22:59:34 2009
@@ -32,6 +32,26 @@
     fi
 fi
 
+if [ "x${base_dir}" == "x" ]	
+then
+zk_base="../../../"
+else
+zk_base="${base_dir}"
+fi
+
+CLASSPATH="$CLASSPATH:${zk_base}/build/classes"
+CLASSPATH="$CLASSPATH:${zk_base}/conf"
+
+for i in "${zk_base}"/build/lib/*.jar
+do
+    CLASSPATH="$CLASSPATH:$i"
+done
+
+for i in "${zk_base}"/src/java/lib/*.jar
+do
+    CLASSPATH="$CLASSPATH:$i"
+done
+
 # Make sure nothing is left over from before
 #fuser -skn tcp 22182/tcp
 
@@ -40,10 +60,10 @@
     if [ "x${base_dir}" == "x" ]
         then
         mkdir -p /tmp/zkdata
-        java -cp ../../../zookeeper-dev.jar:../../../src/java/lib/log4j-1.2.15.jar:../../../conf org.apache.zookeeper.server.ZooKeeperServerMain 22182 /tmp/zkdata &> /tmp/zk.log &
+        java -cp $CLASSPATH org.apache.zookeeper.server.ZooKeeperServerMain 22182 /tmp/zkdata &> /tmp/zk.log &
         else
         mkdir -p ${base_dir}/build/tmp/zkdata
-        java -cp ${base_dir}/zookeeper-dev.jar:${base_dir}/src/java/lib/log4j-1.2.15.jar:${base_dir}/conf org.apache.zookeeper.server.ZooKeeperServerMain 22182 ${base_dir}/build/tmp/zkdata &> ${base_dir}/build/tmp/zk.log &
+        java -cp $CLASSPATH org.apache.zookeeper.server.ZooKeeperServerMain 22182 ${base_dir}/build/tmp/zkdata &> ${base_dir}/build/tmp/zk.log &
     fi
         sleep 5
     ;;

Modified: hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperConfig.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperConfig.xml?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperConfig.xml (original)
+++ hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperConfig.xml Tue Sep 22 22:59:34 2009
@@ -100,7 +100,7 @@
  	   </para>
  	   
  	   <para><computeroutput>
-		java -cp .:./zookeeper-dev-bookkeeper.jar:./zookeeper-dev.jar:../log4j/apache-log4j-1.2.15/log4j-1.2.15.jar\
+		java -cp .:./zookeeper-&lt;version&gt;-bookkeeper.jar:./zookeeper-&lt;version&gt;.jar:../log4j/apache-log4j-1.2.15/log4j-1.2.15.jar\
 		-Dlog4j.configuration=log4j.properties org.apache.bookkeeper.proto.BookieServer 3181 /path_to_log_device/\
 		/path_to_ledger_device/
 	   </computeroutput></para>

Modified: hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperStarted.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperStarted.xml?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperStarted.xml (original)
+++ hadoop/zookeeper/trunk/src/docs/src/documentation/content/xdocs/bookkeeperStarted.xml Tue Sep 22 22:59:34 2009
@@ -87,7 +87,7 @@
 		</para>
 		
 		<para><computeroutput>
-		java -cp .:./zookeeper-dev-bookkeeper.jar:./zookeeper-dev.jar:../log4j/apache-log4j-1.2.15/log4j-1.2.15.jar\
+		java -cp .:./zookeeper-&lt;version&gt;-bookkeeper.jar:./zookeeper-&lt;version&gt;.jar:../log4j/apache-log4j-1.2.15/log4j-1.2.15.jar\
 		-Dlog4j.configuration=log4j.properties org.apache.bookkeeper.proto.BookieServer 3181 /path_to_log_device/\
 		/path_to_ledger_device/
 		</computeroutput></para>

Modified: hadoop/zookeeper/trunk/src/java/systest/README.txt
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/systest/README.txt?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/systest/README.txt (original)
+++ hadoop/zookeeper/trunk/src/java/systest/README.txt Tue Sep 22 22:59:34 2009
@@ -30,14 +30,14 @@
 
 4) initiate the system test using the fatjar:
 
-java -jar build/contrib/fatjar/zookeeper-dev-fatjar.jar systest org.apache.zookeeper.test.system.SimpleSysTest
+java -jar build/contrib/fatjar/zookeeper-<version>-fatjar.jar systest org.apache.zookeeper.test.system.SimpleSysTest
 
 by default it will access the zk server started in 2) on localhost:2181 
 
 or you can specify a remote host:port using
   -DsysTest.zkHostPort=<host>:<port>,<host>:<port>,...
 
-java -DsysTest.zkHostPort=hostA:2181  -jar build/contrib/fatjar/zookeeper-dev-fatjar.jar systest org.apache.zookeeper.test.system.SimpleSysTest
+java -DsysTest.zkHostPort=hostA:2181  -jar build/contrib/fatjar/zookeeper-<version>-fatjar.jar systest org.apache.zookeeper.test.system.SimpleSysTest
 
 where hostA is running the zk server started in step 2) above
 
@@ -53,7 +53,7 @@
 
 4) run GenerateLoad using the following
 
-java -jar build/contrib/fatjar/zookeeper-dev-fatjar.jar generateLoad <zkHostPort> <prefix> #servers #clients
+java -jar build/contrib/fatjar/zookeeper-<version>-fatjar.jar generateLoad <zkHostPort> <prefix> #servers #clients
 
 Once GenerateLoad is started, it will read commands from stdin. Usually
 the only command you need to know is "percentage" which sets the percentage

Modified: hadoop/zookeeper/trunk/src/recipes/build-recipes.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/recipes/build-recipes.xml?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/recipes/build-recipes.xml (original)
+++ hadoop/zookeeper/trunk/src/recipes/build-recipes.xml Tue Sep 22 22:59:34 2009
@@ -48,6 +48,9 @@
     <pathelement location="${build.classes}"/>
     <fileset refid="lib.jars"/>
     <pathelement location="${zk.root}/build/classes"/>
+    <fileset dir="${zk.root}/build/lib">
+      <include name="**/*.jar" />
+    </fileset>
     <fileset dir="${zk.root}/src/java/lib">
       <include name="**/*.jar" />
     </fileset>

Modified: hadoop/zookeeper/trunk/src/recipes/lock/build.xml
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/recipes/lock/build.xml?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/recipes/lock/build.xml (original)
+++ hadoop/zookeeper/trunk/src/recipes/lock/build.xml Tue Sep 22 22:59:34 2009
@@ -17,7 +17,7 @@
 
 <project name="lock" default="jar">
   <import file="../build-recipes.xml"/>
-    <property name="test.main.classes" value="${zk.root}/build/testclasses"/>
+    <property name="test.main.classes" value="${zk.root}/build/test/classes"/>
     <property name="test.build.dir" value="${build.test}" />
     <property name="test.src.dir" value="test"/>
     <property name="test.log.dir" value="${test.build.dir}/logs" />
@@ -41,18 +41,11 @@
     <fail message="ZooKeeper main must first be compiled (toplevel build.xml)"/>
   </target>
 
-  <target name="versionedjarname" if="version">
+  <target name="setjarname">
     <property name="jarname"
               value="${build.dir}/zookeeper-${version}-recipes-${name}.jar"/>
   </target>
 
-  <target name="unversionedjarname" unless="version">
-    <property name="jarname"
-              value="${build.dir}/zookeeper-dev-recipes-${name}.jar"/>
-  </target>
-
-  <target name="setjarname" depends="versionedjarname, unversionedjarname"/>
-
   <!-- Override jar target to specify main class -->
   <target name="jar" depends="checkMainCompiled, setjarname, compile">
     <echo message="recipes: ${name}"/>

Modified: hadoop/zookeeper/trunk/src/recipes/lock/src/c/tests/zkServer.sh
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/recipes/lock/src/c/tests/zkServer.sh?rev=817885&r1=817884&r2=817885&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/recipes/lock/src/c/tests/zkServer.sh (original)
+++ hadoop/zookeeper/trunk/src/recipes/lock/src/c/tests/zkServer.sh Tue Sep 22 22:59:34 2009
@@ -36,11 +36,27 @@
 rm -f /tmp/zk.pid
 fi
 
+base_dir = "../../../../.."
+
+CLASSPATH="$CLASSPATH:${base_dir}/build/classes"
+CLASSPATH="$CLASSPATH:${base_dir}/conf"
+
+for i in "${base_dir}"/build/lib/*.jar
+do
+    CLASSPATH="$CLASSPATH:$i"
+done
+
+for i in "${base_dir}"/src/java/lib/*.jar
+do
+    CLASSPATH="$CLASSPATH:$i"
+done
+
+CLASSPATH="$CLASSPATH:${CLOVER_HOME}/lib/clover.jar"
 
 case $1 in
 start|startClean)
 	mkdir -p /tmp/zkdata
-	java -cp ../../../../../zookeeper-dev.jar:../../../../../src/java/lib/log4j-1.2.15.jar:../../../../../conf/ org.apache.zookeeper.server.ZooKeeperServerMain 22181 /tmp/zkdata &> /tmp/zk.log &
+	java -cp $CLASSPATH org.apache.zookeeper.server.ZooKeeperServerMain 22181 /tmp/zkdata &> /tmp/zk.log &
         echo $! > /tmp/zk.pid
         sleep 5
 	;;



Mime
View raw message