Blame zookeeper-3.4.6-ivy-build.patch

Timothy St. Clair da2547b
diff --git a/build.xml b/build.xml
Timothy St. Clair da2547b
index 442d52e..bc1f4a2 100644
Timothy St. Clair da2547b
--- a/build.xml
Timothy St. Clair da2547b
+++ b/build.xml
Timothy St. Clair da2547b
@@ -257,7 +257,7 @@ xmlns:maven="antlib:org.apache.maven.artifact.ant">
Timothy St. Clair da2547b
         <mkdir dir="${ivy.package.lib}"/>
Timothy St. Clair da2547b
         <mkdir dir="${ivy.test.lib}"/>
Timothy St. Clair da2547b
         <condition property="ivy.jar.exists">
Timothy St. Clair da2547b
-          <available file="${lib.dir}/ivy-${ivy.version}.jar"/>
Timothy St. Clair da2547b
+          <available file="/usr/share/java/ivy.jar"/>
Timothy St. Clair da2547b
         </condition>
Timothy St. Clair da2547b
 
Timothy St. Clair da2547b
         <tstamp>
Timothy St. Clair da2547b
@@ -343,9 +343,9 @@ xmlns:maven="antlib:org.apache.maven.artifact.ant">
Timothy St. Clair da2547b
     
Timothy St. Clair da2547b
     <target name="ivy-download" unless="ivy.jar.exists" depends="init">
Timothy St. Clair da2547b
       
Timothy St. Clair da2547b
-              includes="ivy-*.jar" excludes="ivy-${ivy.version}.jar"/>
Timothy St. Clair da2547b
-      
Timothy St. Clair da2547b
-           dest="${lib.dir}/ivy-${ivy.version}.jar" usetimestamp="true"/>
Timothy St. Clair da2547b
+              includes="ivy.jar" excludes="ivy.jar"/>
Timothy St. Clair da2547b
+      
Timothy St. Clair da2547b
+           dest="${lib.dir}/ivy.jar" usetimestamp="true"/>
Timothy St. Clair da2547b
     </target>
Timothy St. Clair da2547b
 
Timothy St. Clair da2547b
     <target name="ivy-taskdef" unless="ivy.initialized">
Timothy St. Clair 4ae4bc6
diff --git a/ivy.xml b/ivy.xml
Timothy St. Clair fb05f8b
index 561832a..93176d5 100644
Timothy St. Clair 4ae4bc6
--- a/ivy.xml
Timothy St. Clair 4ae4bc6
+++ b/ivy.xml
Timothy St. Clair fb05f8b
@@ -46,10 +46,10 @@
Timothy St. Clair fb05f8b
     <dependency org="org.apache.maven.wagon" name="wagon-http" rev="2.4" conf="mvn-ant-task->default"/>
Timothy St. Clair fb05f8b
     <dependency org="org.apache.maven" name="maven-ant-tasks" rev="2.1.3" conf="mvn-ant-task->default"/>
Timothy St. Clair fb05f8b
     
Timothy St. Clair fb05f8b
-    <dependency org="log4j" name="log4j" rev="1.2.16" transitive="false" conf="default"/>
Timothy St. Clair fb05f8b
-    <dependency org="jline" name="jline" rev="0.9.94" transitive="false" conf="default"/>
Timothy St. Clair fb05f8b
+    <dependency org="log4j" name="log4j" rev="1.2.17" transitive="false" conf="default"/>
Timothy St. Clair fb05f8b
+    <dependency org="jline" name="jline" rev="1.0" transitive="false" conf="default"/>
Timothy St. Clair fb05f8b
 
Timothy St. Clair fb05f8b
-    <dependency org="io.netty" name="netty" conf="default" rev="3.7.0.Final">
491a576
+    <dependency org="io.netty" name="netty" conf="default" rev="3.9.3.Final">
Timothy St. Clair fb05f8b
       <artifact name="netty" type="jar" conf="default"/>
Timothy St. Clair fb05f8b
     </dependency>
Timothy St. Clair fb05f8b
 
Timothy St. Clair 4ae4bc6
@@ -58,12 +58,12 @@
Timothy St. Clair 4ae4bc6
     <dependency org="junit" name="junit" rev="4.8.1" conf="test->default"/>
Timothy St. Clair 4ae4bc6
      
Timothy St. Clair 4ae4bc6
                conf="test->default"/>
Timothy St. Clair 4ae4bc6
-    
Timothy St. Clair 4ae4bc6
+    
Timothy St. Clair 4ae4bc6
                 conf="test->default"/>
Timothy St. Clair 4ae4bc6
 
Timothy St. Clair fb05f8b
-    
Timothy St. Clair fb05f8b
+    
Timothy St. Clair 4ae4bc6
                 conf="jdiff->default"/>
Timothy St. Clair 4ae4bc6
-    
Timothy St. Clair 4ae4bc6
+    
Timothy St. Clair 4ae4bc6
                 conf="jdiff->default"/>
Timothy St. Clair 4ae4bc6
 
Timothy St. Clair 4ae4bc6
     
Timothy St. Clair 4ae4bc6
diff --git a/ivysettings.xml b/ivysettings.xml
Timothy St. Clair fb05f8b
index 52cfa52..595dd4c 100644
Timothy St. Clair 4ae4bc6
--- a/ivysettings.xml
Timothy St. Clair 4ae4bc6
+++ b/ivysettings.xml
Timothy St. Clair 4ae4bc6
@@ -17,29 +17,14 @@
Timothy St. Clair 4ae4bc6
    limitations under the License.
Timothy St. Clair 4ae4bc6
 -->
Timothy St. Clair 4ae4bc6
 
Timothy St. Clair 4ae4bc6
-  
Timothy St. Clair 4ae4bc6
-    value="http://repo1.maven.org/maven2/" override="false"/>
Timothy St. Clair 4ae4bc6
-  
Timothy St. Clair 4ae4bc6
-    value="http://repository.jboss.org/nexus/content/groups/public/" override="false"/>
Timothy St. Clair 4ae4bc6
-  
Timothy St. Clair 4ae4bc6
-    value="http://download.java.net/maven/2/" override="false"/>
Timothy St. Clair 4ae4bc6
-  
Timothy St. Clair 4ae4bc6
-    value="[organisation]/[module]/[revision]/[module]-[revision]"/>
Timothy St. Clair 4ae4bc6
-  <property name="maven2.pattern.ext" value="${maven2.pattern}.[ext]"/>
Timothy St. Clair 4ae4bc6
   <include url="${ivy.default.conf.dir}/ivyconf-local.xml"/>
Timothy St. Clair 4ae4bc6
   <settings defaultResolver="default"/>
Timothy St. Clair fb05f8b
+  <typedef name="xmvn" classname="org.fedoraproject.xmvn.connector.ivy.IvyResolver"/>
Timothy St. Clair 4ae4bc6
   <resolvers>
Timothy St. Clair 4ae4bc6
-    
Timothy St. Clair 4ae4bc6
-      pattern="${maven2.pattern.ext}" m2compatible="true"/>
Timothy St. Clair 4ae4bc6
-    
Timothy St. Clair 4ae4bc6
-      pattern="${maven2.pattern.ext}" m2compatible="true"/>
Timothy St. Clair 4ae4bc6
-    
Timothy St. Clair 4ae4bc6
-      pattern="${maven2.pattern.ext}" m2compatible="true"/>
Timothy St. Clair 4ae4bc6
+    <xmvn name="XMvn"/>
Timothy St. Clair 4ae4bc6
 
Timothy St. Clair 4ae4bc6
     <chain name="default" dual="true">
Timothy St. Clair 4ae4bc6
-      <resolver ref="maven2"/>
Timothy St. Clair 4ae4bc6
-      <resolver ref="jboss-maven2"/>
Timothy St. Clair 4ae4bc6
-      <resolver ref="sun-maven2"/>
Timothy St. Clair 4ae4bc6
+      <resolver ref="XMvn"/>
Timothy St. Clair 4ae4bc6
     </chain>
Timothy St. Clair 4ae4bc6
 
Timothy St. Clair 4ae4bc6
   </resolvers>
Timothy St. Clair da2547b
diff --git a/src/contrib/build-contrib.xml b/src/contrib/build-contrib.xml
Timothy St. Clair da2547b
index 0e57d08..708f64f 100644
Timothy St. Clair da2547b
--- a/src/contrib/build-contrib.xml
Timothy St. Clair da2547b
+++ b/src/contrib/build-contrib.xml
Timothy St. Clair da2547b
@@ -103,7 +103,7 @@
Timothy St. Clair da2547b
     <mkdir dir="${ivy.lib}"/>
Timothy St. Clair da2547b
     <mkdir dir="${ivy.test.lib}"/>
Timothy St. Clair da2547b
     <condition property="ivy.jar.exists">
Timothy St. Clair da2547b
-      <available file="${lib.dir}/ivy-${ivy.version}.jar"/>
Timothy St. Clair da2547b
+      <available file="/usr/share/java/ivy.jar"/>
Timothy St. Clair da2547b
     </condition>
Timothy St. Clair da2547b
 
Timothy St. Clair da2547b
     <antcall target="init-contrib"/>
Timothy St. Clair da2547b
@@ -219,9 +219,9 @@
Timothy St. Clair da2547b
   
Timothy St. Clair da2547b
   <target name="ivy-download" unless="ivy.jar.exists" depends="init">
Timothy St. Clair da2547b
     
Timothy St. Clair da2547b
-            includes="ivy-*.jar" excludes="ivy-${ivy.version}.jar"/>
Timothy St. Clair da2547b
-    
Timothy St. Clair da2547b
-         dest="${lib.dir}/ivy-${ivy.version}.jar" usetimestamp="true"/>
Timothy St. Clair da2547b
+            includes="ivy.jar" excludes="ivy.jar"/>
Timothy St. Clair da2547b
+    
Timothy St. Clair da2547b
+         dest="${lib.dir}/ivy.jar" usetimestamp="true"/>
Timothy St. Clair da2547b
   </target>
Timothy St. Clair da2547b
 
Timothy St. Clair da2547b
   <target name="ivy-init" depends="ivy-download" unless="ivy.initialized">
Timothy St. Clair 4ae4bc6
diff --git a/src/contrib/build.xml b/src/contrib/build.xml
Timothy St. Clair 4ae4bc6
index 7f7ba4f..701dfea 100644
Timothy St. Clair 4ae4bc6
--- a/src/contrib/build.xml
Timothy St. Clair 4ae4bc6
+++ b/src/contrib/build.xml
Timothy St. Clair 4ae4bc6
@@ -20,7 +20,7 @@
Timothy St. Clair 4ae4bc6
 <project name="zookeepercontrib" default="compile" basedir=".">
Timothy St. Clair 4ae4bc6
 
Timothy St. Clair 4ae4bc6
   <property name="contribfilesetincludes" value="*/build.xml" />
Timothy St. Clair 4ae4bc6
-  <property name="contribfilesetexcludes" value="" />
Timothy St. Clair 4ae4bc6
+  <property name="contribfilesetexcludes" value="rest/build.xml" />
Timothy St. Clair 4ae4bc6
 
Timothy St. Clair 4ae4bc6
   <fileset id="contribfileset" dir=".">
Timothy St. Clair 4ae4bc6
     <include name="${contribfilesetincludes}"/>
Timothy St. Clair fb05f8b
diff --git a/src/contrib/rest/build.xml b/src/contrib/rest/build.xml
Timothy St. Clair fb05f8b
deleted file mode 100644
Timothy St. Clair fb05f8b
index 649dff7..0000000
Timothy St. Clair fb05f8b
--- a/src/contrib/rest/build.xml
Timothy St. Clair fb05f8b
+++ /dev/null
Timothy St. Clair fb05f8b
@@ -1,167 +0,0 @@
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-   Licensed to the Apache Software Foundation (ASF) under one or more
Timothy St. Clair fb05f8b
-   contributor license agreements.  See the NOTICE file distributed with
Timothy St. Clair fb05f8b
-   this work for additional information regarding copyright ownership.
Timothy St. Clair fb05f8b
-   The ASF licenses this file to You under the Apache License, Version 2.0
Timothy St. Clair fb05f8b
-   (the "License"); you may not use this file except in compliance with
Timothy St. Clair fb05f8b
-   the License.  You may obtain a copy of the License at
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-       http://www.apache.org/licenses/LICENSE-2.0
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-   Unless required by applicable law or agreed to in writing, software
Timothy St. Clair fb05f8b
-   distributed under the License is distributed on an "AS IS" BASIS,
Timothy St. Clair fb05f8b
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Timothy St. Clair fb05f8b
-   See the License for the specific language governing permissions and
Timothy St. Clair fb05f8b
-   limitations under the License.
Timothy St. Clair fb05f8b
--->
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-<project name="rest" default="jar">
Timothy St. Clair fb05f8b
-  <import file="../build-contrib.xml"/>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-	<property name="test.build.dir" value="${build.test}" />
Timothy St. Clair fb05f8b
-    <property name="test.src.dir" value="src/test"/>
Timothy St. Clair fb05f8b
-    <property name="test.log.dir" value="${test.build.dir}/logs" />
Timothy St. Clair fb05f8b
-    <property name="test.data.dir" value="${test.build.dir}/data" />
Timothy St. Clair fb05f8b
-    <property name="test.data.upgrade.dir" value="${test.data.dir}/upgrade" />
Timothy St. Clair fb05f8b
-    <property name="test.tmp.dir" value="${test.build.dir}/tmp" />
Timothy St. Clair fb05f8b
-    <property name="test.output" value="no" />
Timothy St. Clair fb05f8b
-    <property name="test.timeout" value="900000" />
Timothy St. Clair fb05f8b
-    <property name="test.junit.output.format" value="plain" />
Timothy St. Clair fb05f8b
-    <property name="test.junit.fork.mode" value="perTest" />
Timothy St. Clair fb05f8b
-    <property name="test.junit.printsummary" value="yes" />
Timothy St. Clair fb05f8b
-    <property name="test.junit.haltonfailure" value="no" />
Timothy St. Clair fb05f8b
-    <property name="test.junit.maxmem" value="512m" />
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-    
Timothy St. Clair fb05f8b
-    
Timothy St. Clair fb05f8b
-    
Timothy St. Clair fb05f8b
-    <macrodef name="macro_tar" description="Worker Macro for tar">
Timothy St. Clair fb05f8b
-      <attribute name="param.destfile"/>
Timothy St. Clair fb05f8b
-      <element name="param.listofitems"/>
Timothy St. Clair fb05f8b
-      <sequential>
Timothy St. Clair fb05f8b
-        
Timothy St. Clair fb05f8b
-             destfile="@{param.destfile}">
Timothy St. Clair fb05f8b
-          <param.listofitems/>
Timothy St. Clair fb05f8b
-        </tar>
Timothy St. Clair fb05f8b
-      </sequential>
Timothy St. Clair fb05f8b
-    </macrodef>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-  <target name="setjarname">
Timothy St. Clair fb05f8b
-    
Timothy St. Clair fb05f8b
-              value="${build.dir}/zookeeper-${version}-${name}.jar"/>
Timothy St. Clair fb05f8b
-  </target>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-  <target name="compile" depends="ivy-retrieve,zookeeperbuildcontrib.compile"/>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-  
Timothy St. Clair fb05f8b
-          depends="compile-test,test-init,test-category,test-start,junit.run,test-stop" />
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-	<target name="compile-test" depends="ivy-retrieve-test,compile">
Timothy St. Clair fb05f8b
-  		<property name="target.jdk" value="${ant.java.version}" />	
Timothy St. Clair fb05f8b
-		<property name="src.test.local" location="${basedir}/src/test" />
Timothy St. Clair fb05f8b
-		<mkdir dir="${build.test}"/>
Timothy St. Clair fb05f8b
-		
Timothy St. Clair fb05f8b
-			destdir="${build.test}" 
Timothy St. Clair fb05f8b
-			target="${target.jdk}" 
Timothy St. Clair fb05f8b
-			debug="on" >
Timothy St. Clair fb05f8b
-			<classpath refid="classpath" />
Timothy St. Clair fb05f8b
-		</javac>
Timothy St. Clair fb05f8b
-	</target>
Timothy St. Clair fb05f8b
-	
Timothy St. Clair fb05f8b
-    <target name="test-init" depends="jar,compile-test">
Timothy St. Clair fb05f8b
-        <delete dir="${test.log.dir}" />
Timothy St. Clair fb05f8b
-        <delete dir="${test.tmp.dir}" />
Timothy St. Clair fb05f8b
-        <delete dir="${test.data.dir}" />
Timothy St. Clair fb05f8b
-        <mkdir dir="${test.log.dir}" />
Timothy St. Clair fb05f8b
-        <mkdir dir="${test.tmp.dir}" />
Timothy St. Clair fb05f8b
-        <mkdir dir="${test.data.dir}" />
Timothy St. Clair fb05f8b
-    </target>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-    <target name="test-start">
Timothy St. Clair fb05f8b
-      <exec executable="${test.src.dir}/zkServer.sh">
Timothy St. Clair fb05f8b
-        <arg value="startClean"/>
Timothy St. Clair fb05f8b
-      </exec>
Timothy St. Clair fb05f8b
-    </target>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-    <target name="test-stop">
Timothy St. Clair fb05f8b
-      <exec executable="${test.src.dir}/zkServer.sh">
Timothy St. Clair fb05f8b
-        <arg value="stop"/>
Timothy St. Clair fb05f8b
-      </exec>
Timothy St. Clair fb05f8b
-    </target>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-	<target name="test-category">
Timothy St. Clair fb05f8b
-         <property name="test.category" value=""/>
Timothy St. Clair fb05f8b
-    </target>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-	<target name="junit.run">
Timothy St. Clair fb05f8b
-		<echo message="${test.src.dir}" />
Timothy St. Clair fb05f8b
-        
Timothy St. Clair fb05f8b
-               printsummary="${test.junit.printsummary}"
Timothy St. Clair fb05f8b
-               haltonfailure="${test.junit.haltonfailure}"
Timothy St. Clair fb05f8b
-               fork="yes"
Timothy St. Clair fb05f8b
-               forkmode="${test.junit.fork.mode}"
Timothy St. Clair fb05f8b
-               maxmemory="${test.junit.maxmem}"
Timothy St. Clair fb05f8b
-               dir="${basedir}" timeout="${test.timeout}"
Timothy St. Clair fb05f8b
-               errorProperty="tests.failed" failureProperty="tests.failed">
Timothy St. Clair fb05f8b
-          <sysproperty key="build.test.dir" value="${test.tmp.dir}" />
Timothy St. Clair fb05f8b
-          <sysproperty key="test.data.dir" value="${test.data.dir}" />
Timothy St. Clair fb05f8b
-          
Timothy St. Clair fb05f8b
-                    value="file:${basedir}/conf/log4j.properties" />
Timothy St. Clair fb05f8b
-          <classpath refid="classpath"/>
Timothy St. Clair fb05f8b
-          <classpath>
Timothy St. Clair fb05f8b
-             <pathelement path="${build.test}" />
Timothy St. Clair fb05f8b
-          </classpath>
Timothy St. Clair fb05f8b
-          <formatter type="${test.junit.output.format}" />
Timothy St. Clair fb05f8b
-          <batchtest todir="${test.log.dir}" unless="testcase">
Timothy St. Clair fb05f8b
-              
Timothy St. Clair fb05f8b
-                     includes="**/*${test.category}Test.java"/>
Timothy St. Clair fb05f8b
-          </batchtest>
Timothy St. Clair fb05f8b
-          <batchtest todir="${test.log.dir}" if="testcase">
Timothy St. Clair fb05f8b
-              <fileset dir="${test.src.dir}" includes="**/${testcase}.java"/>
Timothy St. Clair fb05f8b
-          </batchtest>
Timothy St. Clair fb05f8b
-       </junit>
Timothy St. Clair fb05f8b
-       <fail if="tests.failed">Tests failed!</fail>
Timothy St. Clair fb05f8b
-    </target>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-  <target name="jar" depends="checkMainCompiled, setjarname, compile">
Timothy St. Clair fb05f8b
-    <echo message="contrib: ${name}"/>
Timothy St. Clair fb05f8b
-    <jar jarfile="${jarname}">
Timothy St. Clair fb05f8b
-      <fileset file="${zk.root}/LICENSE.txt" />
Timothy St. Clair fb05f8b
-      <fileset dir="${build.classes}"/>
Timothy St. Clair fb05f8b
-      <fileset dir="${build.test}"/>
Timothy St. Clair fb05f8b
-    </jar>
Timothy St. Clair fb05f8b
-  </target>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-  <target name="run" depends="jar">
Timothy St. Clair fb05f8b
-    <echo message="contrib: ${name}"/>
Timothy St. Clair fb05f8b
-    <java classname="org.apache.zookeeper.server.jersey.RestMain" fork="true">
Timothy St. Clair fb05f8b
-      <classpath>
Timothy St. Clair fb05f8b
-        <pathelement path="${jarname}" />
Timothy St. Clair fb05f8b
-        <fileset dir="${build.dir}/lib" includes="*.jar"/>
Timothy St. Clair fb05f8b
-        <fileset dir="${zk.root}/build" includes="zookeeper-*.jar"/>
Timothy St. Clair fb05f8b
-        <pathelement path="${zk.root}/src/contrib/${name}/conf" />
Timothy St. Clair fb05f8b
-        <fileset dir="${zk.root}/src/java/lib">
Timothy St. Clair fb05f8b
-          <include name="**/*.jar" />
Timothy St. Clair fb05f8b
-        </fileset>
Timothy St. Clair fb05f8b
-      </classpath>
Timothy St. Clair fb05f8b
-    </java>
Timothy St. Clair fb05f8b
-  </target>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-  <target name="tar" depends="clean, jar">
Timothy St. Clair fb05f8b
-    <echo message="building tar.gz: ${name}" />
Timothy St. Clair fb05f8b
-    <macro_tar param.destfile="${build.dir}/zookeeper-${version}-${name}.tar.gz">
Timothy St. Clair fb05f8b
-      <param.listofitems>
Timothy St. Clair fb05f8b
-        <tarfileset dir="${build.dir}/lib" prefix="lib" includes="**/*.jar" />
Timothy St. Clair fb05f8b
-        <tarfileset file="${build.dir}/zookeeper-*-rest.jar" />
Timothy St. Clair fb05f8b
-        <tarfileset dir="${zk.root}/build" includes="zookeeper-*.jar" prefix="lib" />
Timothy St. Clair fb05f8b
-        <tarfileset dir="${zk.root}/src/contrib/${name}/conf" prefix="conf" />
Timothy St. Clair fb05f8b
-        <tarfileset dir="${zk.root}/src/java/lib" prefix="lib" includes="**/*.jar" />
Timothy St. Clair fb05f8b
-        <tarfileset file="${zk.root}/src/contrib/${name}/rest.sh" />
Timothy St. Clair fb05f8b
-      </param.listofitems>
Timothy St. Clair fb05f8b
-    </macro_tar>
Timothy St. Clair fb05f8b
-  </target>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-</project>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
diff --git a/src/contrib/rest/ivy.xml b/src/contrib/rest/ivy.xml
Timothy St. Clair fb05f8b
deleted file mode 100644
Timothy St. Clair fb05f8b
index 903d390..0000000
Timothy St. Clair fb05f8b
--- a/src/contrib/rest/ivy.xml
Timothy St. Clair fb05f8b
+++ /dev/null
Timothy St. Clair fb05f8b
@@ -1,48 +0,0 @@
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-   Licensed to the Apache Software Foundation (ASF) under one or more
Timothy St. Clair fb05f8b
-   contributor license agreements.  See the NOTICE file distributed with
Timothy St. Clair fb05f8b
-   this work for additional information regarding copyright ownership.
Timothy St. Clair fb05f8b
-   The ASF licenses this file to You under the Apache License, Version 2.0
Timothy St. Clair fb05f8b
-   (the "License"); you may not use this file except in compliance with
Timothy St. Clair fb05f8b
-   the License.  You may obtain a copy of the License at
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-       http://www.apache.org/licenses/LICENSE-2.0
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-   Unless required by applicable law or agreed to in writing, software
Timothy St. Clair fb05f8b
-   distributed under the License is distributed on an "AS IS" BASIS,
Timothy St. Clair fb05f8b
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Timothy St. Clair fb05f8b
-   See the License for the specific language governing permissions and
Timothy St. Clair fb05f8b
-   limitations under the License.
Timothy St. Clair fb05f8b
--->
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-            xmlns:e="http://ant.apache.org/ivy/extra">
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-  
Timothy St. Clair fb05f8b
-        module="${name}" revision="${version}">
Timothy St. Clair fb05f8b
-    <license name="Apache 2.0"/>
Timothy St. Clair fb05f8b
-    <ivyauthor name="Apache ZooKeeper" url="http://zookeeper.apache.org"/>
Timothy St. Clair fb05f8b
-    <description>ZooKeeper REST</description>
Timothy St. Clair fb05f8b
-  </info>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-  <configurations defaultconfmapping="default">
Timothy St. Clair fb05f8b
-    <conf name="default"/>
Timothy St. Clair fb05f8b
-    <conf name="test"/>
Timothy St. Clair fb05f8b
-  </configurations>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-  <dependencies>
Timothy St. Clair fb05f8b
-    <dependency org="org.slf4j" name="slf4j-api" rev="1.6.1"/>
Timothy St. Clair fb05f8b
-    <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.1" transitive="false"/>
Timothy St. Clair fb05f8b
-  
Timothy St. Clair fb05f8b
-    
Timothy St. Clair fb05f8b
-    <dependency org="log4j" name="log4j" rev="1.2.15" transitive="false"/>
Timothy St. Clair fb05f8b
-    <dependency org="asm" name="asm" rev="3.1" />
Timothy St. Clair fb05f8b
-    <dependency org="com.sun.grizzly" name="grizzly-servlet-webserver" rev="1.9.8" />
Timothy St. Clair fb05f8b
-    <dependency org="com.sun.jersey" name="jersey-server" rev="1.1.5.1" />
Timothy St. Clair fb05f8b
-    <dependency org="com.sun.jersey" name="jersey-json" rev="1.1.5.1" />
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-    <dependency org="junit" name="junit" rev="4.8.1" conf="test->default"/>
Timothy St. Clair fb05f8b
-    <dependency org="com.sun.jersey" name="jersey-client" rev="1.1.5.1" conf="test->default"/>
Timothy St. Clair fb05f8b
-  </dependencies>
Timothy St. Clair fb05f8b
-
Timothy St. Clair fb05f8b
-</ivy-module>
Timothy St. Clair fb05f8b
diff --git a/src/contrib/rest/oldbuild._xml b/src/contrib/rest/oldbuild._xml
Timothy St. Clair fb05f8b
new file mode 100644
Timothy St. Clair fb05f8b
index 0000000..649dff7
Timothy St. Clair fb05f8b
--- /dev/null
Timothy St. Clair fb05f8b
+++ b/src/contrib/rest/oldbuild._xml
Timothy St. Clair fb05f8b
@@ -0,0 +1,167 @@
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+   Licensed to the Apache Software Foundation (ASF) under one or more
Timothy St. Clair fb05f8b
+   contributor license agreements.  See the NOTICE file distributed with
Timothy St. Clair fb05f8b
+   this work for additional information regarding copyright ownership.
Timothy St. Clair fb05f8b
+   The ASF licenses this file to You under the Apache License, Version 2.0
Timothy St. Clair fb05f8b
+   (the "License"); you may not use this file except in compliance with
Timothy St. Clair fb05f8b
+   the License.  You may obtain a copy of the License at
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+       http://www.apache.org/licenses/LICENSE-2.0
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+   Unless required by applicable law or agreed to in writing, software
Timothy St. Clair fb05f8b
+   distributed under the License is distributed on an "AS IS" BASIS,
Timothy St. Clair fb05f8b
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Timothy St. Clair fb05f8b
+   See the License for the specific language governing permissions and
Timothy St. Clair fb05f8b
+   limitations under the License.
Timothy St. Clair fb05f8b
+-->
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+<project name="rest" default="jar">
Timothy St. Clair fb05f8b
+  <import file="../build-contrib.xml"/>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+	<property name="test.build.dir" value="${build.test}" />
Timothy St. Clair fb05f8b
+    <property name="test.src.dir" value="src/test"/>
Timothy St. Clair fb05f8b
+    <property name="test.log.dir" value="${test.build.dir}/logs" />
Timothy St. Clair fb05f8b
+    <property name="test.data.dir" value="${test.build.dir}/data" />
Timothy St. Clair fb05f8b
+    <property name="test.data.upgrade.dir" value="${test.data.dir}/upgrade" />
Timothy St. Clair fb05f8b
+    <property name="test.tmp.dir" value="${test.build.dir}/tmp" />
Timothy St. Clair fb05f8b
+    <property name="test.output" value="no" />
Timothy St. Clair fb05f8b
+    <property name="test.timeout" value="900000" />
Timothy St. Clair fb05f8b
+    <property name="test.junit.output.format" value="plain" />
Timothy St. Clair fb05f8b
+    <property name="test.junit.fork.mode" value="perTest" />
Timothy St. Clair fb05f8b
+    <property name="test.junit.printsummary" value="yes" />
Timothy St. Clair fb05f8b
+    <property name="test.junit.haltonfailure" value="no" />
Timothy St. Clair fb05f8b
+    <property name="test.junit.maxmem" value="512m" />
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+    
Timothy St. Clair fb05f8b
+    
Timothy St. Clair fb05f8b
+    
Timothy St. Clair fb05f8b
+    <macrodef name="macro_tar" description="Worker Macro for tar">
Timothy St. Clair fb05f8b
+      <attribute name="param.destfile"/>
Timothy St. Clair fb05f8b
+      <element name="param.listofitems"/>
Timothy St. Clair fb05f8b
+      <sequential>
Timothy St. Clair fb05f8b
+        
Timothy St. Clair fb05f8b
+             destfile="@{param.destfile}">
Timothy St. Clair fb05f8b
+          <param.listofitems/>
Timothy St. Clair fb05f8b
+        </tar>
Timothy St. Clair fb05f8b
+      </sequential>
Timothy St. Clair fb05f8b
+    </macrodef>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+  <target name="setjarname">
Timothy St. Clair fb05f8b
+    
Timothy St. Clair fb05f8b
+              value="${build.dir}/zookeeper-${version}-${name}.jar"/>
Timothy St. Clair fb05f8b
+  </target>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+  <target name="compile" depends="ivy-retrieve,zookeeperbuildcontrib.compile"/>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+  
Timothy St. Clair fb05f8b
+          depends="compile-test,test-init,test-category,test-start,junit.run,test-stop" />
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+	<target name="compile-test" depends="ivy-retrieve-test,compile">
Timothy St. Clair fb05f8b
+  		<property name="target.jdk" value="${ant.java.version}" />	
Timothy St. Clair fb05f8b
+		<property name="src.test.local" location="${basedir}/src/test" />
Timothy St. Clair fb05f8b
+		<mkdir dir="${build.test}"/>
Timothy St. Clair fb05f8b
+		
Timothy St. Clair fb05f8b
+			destdir="${build.test}" 
Timothy St. Clair fb05f8b
+			target="${target.jdk}" 
Timothy St. Clair fb05f8b
+			debug="on" >
Timothy St. Clair fb05f8b
+			<classpath refid="classpath" />
Timothy St. Clair fb05f8b
+		</javac>
Timothy St. Clair fb05f8b
+	</target>
Timothy St. Clair fb05f8b
+	
Timothy St. Clair fb05f8b
+    <target name="test-init" depends="jar,compile-test">
Timothy St. Clair fb05f8b
+        <delete dir="${test.log.dir}" />
Timothy St. Clair fb05f8b
+        <delete dir="${test.tmp.dir}" />
Timothy St. Clair fb05f8b
+        <delete dir="${test.data.dir}" />
Timothy St. Clair fb05f8b
+        <mkdir dir="${test.log.dir}" />
Timothy St. Clair fb05f8b
+        <mkdir dir="${test.tmp.dir}" />
Timothy St. Clair fb05f8b
+        <mkdir dir="${test.data.dir}" />
Timothy St. Clair fb05f8b
+    </target>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+    <target name="test-start">
Timothy St. Clair fb05f8b
+      <exec executable="${test.src.dir}/zkServer.sh">
Timothy St. Clair fb05f8b
+        <arg value="startClean"/>
Timothy St. Clair fb05f8b
+      </exec>
Timothy St. Clair fb05f8b
+    </target>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+    <target name="test-stop">
Timothy St. Clair fb05f8b
+      <exec executable="${test.src.dir}/zkServer.sh">
Timothy St. Clair fb05f8b
+        <arg value="stop"/>
Timothy St. Clair fb05f8b
+      </exec>
Timothy St. Clair fb05f8b
+    </target>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+	<target name="test-category">
Timothy St. Clair fb05f8b
+         <property name="test.category" value=""/>
Timothy St. Clair fb05f8b
+    </target>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+	<target name="junit.run">
Timothy St. Clair fb05f8b
+		<echo message="${test.src.dir}" />
Timothy St. Clair fb05f8b
+        
Timothy St. Clair fb05f8b
+               printsummary="${test.junit.printsummary}"
Timothy St. Clair fb05f8b
+               haltonfailure="${test.junit.haltonfailure}"
Timothy St. Clair fb05f8b
+               fork="yes"
Timothy St. Clair fb05f8b
+               forkmode="${test.junit.fork.mode}"
Timothy St. Clair fb05f8b
+               maxmemory="${test.junit.maxmem}"
Timothy St. Clair fb05f8b
+               dir="${basedir}" timeout="${test.timeout}"
Timothy St. Clair fb05f8b
+               errorProperty="tests.failed" failureProperty="tests.failed">
Timothy St. Clair fb05f8b
+          <sysproperty key="build.test.dir" value="${test.tmp.dir}" />
Timothy St. Clair fb05f8b
+          <sysproperty key="test.data.dir" value="${test.data.dir}" />
Timothy St. Clair fb05f8b
+          
Timothy St. Clair fb05f8b
+                    value="file:${basedir}/conf/log4j.properties" />
Timothy St. Clair fb05f8b
+          <classpath refid="classpath"/>
Timothy St. Clair fb05f8b
+          <classpath>
Timothy St. Clair fb05f8b
+             <pathelement path="${build.test}" />
Timothy St. Clair fb05f8b
+          </classpath>
Timothy St. Clair fb05f8b
+          <formatter type="${test.junit.output.format}" />
Timothy St. Clair fb05f8b
+          <batchtest todir="${test.log.dir}" unless="testcase">
Timothy St. Clair fb05f8b
+              
Timothy St. Clair fb05f8b
+                     includes="**/*${test.category}Test.java"/>
Timothy St. Clair fb05f8b
+          </batchtest>
Timothy St. Clair fb05f8b
+          <batchtest todir="${test.log.dir}" if="testcase">
Timothy St. Clair fb05f8b
+              <fileset dir="${test.src.dir}" includes="**/${testcase}.java"/>
Timothy St. Clair fb05f8b
+          </batchtest>
Timothy St. Clair fb05f8b
+       </junit>
Timothy St. Clair fb05f8b
+       <fail if="tests.failed">Tests failed!</fail>
Timothy St. Clair fb05f8b
+    </target>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+  <target name="jar" depends="checkMainCompiled, setjarname, compile">
Timothy St. Clair fb05f8b
+    <echo message="contrib: ${name}"/>
Timothy St. Clair fb05f8b
+    <jar jarfile="${jarname}">
Timothy St. Clair fb05f8b
+      <fileset file="${zk.root}/LICENSE.txt" />
Timothy St. Clair fb05f8b
+      <fileset dir="${build.classes}"/>
Timothy St. Clair fb05f8b
+      <fileset dir="${build.test}"/>
Timothy St. Clair fb05f8b
+    </jar>
Timothy St. Clair fb05f8b
+  </target>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+  <target name="run" depends="jar">
Timothy St. Clair fb05f8b
+    <echo message="contrib: ${name}"/>
Timothy St. Clair fb05f8b
+    <java classname="org.apache.zookeeper.server.jersey.RestMain" fork="true">
Timothy St. Clair fb05f8b
+      <classpath>
Timothy St. Clair fb05f8b
+        <pathelement path="${jarname}" />
Timothy St. Clair fb05f8b
+        <fileset dir="${build.dir}/lib" includes="*.jar"/>
Timothy St. Clair fb05f8b
+        <fileset dir="${zk.root}/build" includes="zookeeper-*.jar"/>
Timothy St. Clair fb05f8b
+        <pathelement path="${zk.root}/src/contrib/${name}/conf" />
Timothy St. Clair fb05f8b
+        <fileset dir="${zk.root}/src/java/lib">
Timothy St. Clair fb05f8b
+          <include name="**/*.jar" />
Timothy St. Clair fb05f8b
+        </fileset>
Timothy St. Clair fb05f8b
+      </classpath>
Timothy St. Clair fb05f8b
+    </java>
Timothy St. Clair fb05f8b
+  </target>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+  <target name="tar" depends="clean, jar">
Timothy St. Clair fb05f8b
+    <echo message="building tar.gz: ${name}" />
Timothy St. Clair fb05f8b
+    <macro_tar param.destfile="${build.dir}/zookeeper-${version}-${name}.tar.gz">
Timothy St. Clair fb05f8b
+      <param.listofitems>
Timothy St. Clair fb05f8b
+        <tarfileset dir="${build.dir}/lib" prefix="lib" includes="**/*.jar" />
Timothy St. Clair fb05f8b
+        <tarfileset file="${build.dir}/zookeeper-*-rest.jar" />
Timothy St. Clair fb05f8b
+        <tarfileset dir="${zk.root}/build" includes="zookeeper-*.jar" prefix="lib" />
Timothy St. Clair fb05f8b
+        <tarfileset dir="${zk.root}/src/contrib/${name}/conf" prefix="conf" />
Timothy St. Clair fb05f8b
+        <tarfileset dir="${zk.root}/src/java/lib" prefix="lib" includes="**/*.jar" />
Timothy St. Clair fb05f8b
+        <tarfileset file="${zk.root}/src/contrib/${name}/rest.sh" />
Timothy St. Clair fb05f8b
+      </param.listofitems>
Timothy St. Clair fb05f8b
+    </macro_tar>
Timothy St. Clair fb05f8b
+  </target>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+</project>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
diff --git a/src/contrib/rest/oldivy._xml b/src/contrib/rest/oldivy._xml
Timothy St. Clair fb05f8b
new file mode 100644
Timothy St. Clair fb05f8b
index 0000000..903d390
Timothy St. Clair fb05f8b
--- /dev/null
Timothy St. Clair fb05f8b
+++ b/src/contrib/rest/oldivy._xml
Timothy St. Clair fb05f8b
@@ -0,0 +1,48 @@
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+   Licensed to the Apache Software Foundation (ASF) under one or more
Timothy St. Clair fb05f8b
+   contributor license agreements.  See the NOTICE file distributed with
Timothy St. Clair fb05f8b
+   this work for additional information regarding copyright ownership.
Timothy St. Clair fb05f8b
+   The ASF licenses this file to You under the Apache License, Version 2.0
Timothy St. Clair fb05f8b
+   (the "License"); you may not use this file except in compliance with
Timothy St. Clair fb05f8b
+   the License.  You may obtain a copy of the License at
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+       http://www.apache.org/licenses/LICENSE-2.0
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+   Unless required by applicable law or agreed to in writing, software
Timothy St. Clair fb05f8b
+   distributed under the License is distributed on an "AS IS" BASIS,
Timothy St. Clair fb05f8b
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Timothy St. Clair fb05f8b
+   See the License for the specific language governing permissions and
Timothy St. Clair fb05f8b
+   limitations under the License.
Timothy St. Clair fb05f8b
+-->
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+            xmlns:e="http://ant.apache.org/ivy/extra">
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+  
Timothy St. Clair fb05f8b
+        module="${name}" revision="${version}">
Timothy St. Clair fb05f8b
+    <license name="Apache 2.0"/>
Timothy St. Clair fb05f8b
+    <ivyauthor name="Apache ZooKeeper" url="http://zookeeper.apache.org"/>
Timothy St. Clair fb05f8b
+    <description>ZooKeeper REST</description>
Timothy St. Clair fb05f8b
+  </info>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+  <configurations defaultconfmapping="default">
Timothy St. Clair fb05f8b
+    <conf name="default"/>
Timothy St. Clair fb05f8b
+    <conf name="test"/>
Timothy St. Clair fb05f8b
+  </configurations>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+  <dependencies>
Timothy St. Clair fb05f8b
+    <dependency org="org.slf4j" name="slf4j-api" rev="1.6.1"/>
Timothy St. Clair fb05f8b
+    <dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.1" transitive="false"/>
Timothy St. Clair fb05f8b
+  
Timothy St. Clair fb05f8b
+    
Timothy St. Clair fb05f8b
+    <dependency org="log4j" name="log4j" rev="1.2.15" transitive="false"/>
Timothy St. Clair fb05f8b
+    <dependency org="asm" name="asm" rev="3.1" />
Timothy St. Clair fb05f8b
+    <dependency org="com.sun.grizzly" name="grizzly-servlet-webserver" rev="1.9.8" />
Timothy St. Clair fb05f8b
+    <dependency org="com.sun.jersey" name="jersey-server" rev="1.1.5.1" />
Timothy St. Clair fb05f8b
+    <dependency org="com.sun.jersey" name="jersey-json" rev="1.1.5.1" />
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+    <dependency org="junit" name="junit" rev="4.8.1" conf="test->default"/>
Timothy St. Clair fb05f8b
+    <dependency org="com.sun.jersey" name="jersey-client" rev="1.1.5.1" conf="test->default"/>
Timothy St. Clair fb05f8b
+  </dependencies>
Timothy St. Clair fb05f8b
+
Timothy St. Clair fb05f8b
+</ivy-module>
Timothy St. Clair fb05f8b
diff --git a/src/contrib/zooinspector/ivy.xml b/src/contrib/zooinspector/ivy.xml
Timothy St. Clair fb05f8b
index 4e5107e..ac71a9b 100644
Timothy St. Clair fb05f8b
--- a/src/contrib/zooinspector/ivy.xml
Timothy St. Clair fb05f8b
+++ b/src/contrib/zooinspector/ivy.xml
Timothy St. Clair fb05f8b
@@ -42,7 +42,7 @@
Timothy St. Clair fb05f8b
     
Timothy St. Clair fb05f8b
                 rev="2.4" conf="releaseaudit->default"/>
Timothy St. Clair fb05f8b
     
Timothy St. Clair fb05f8b
-                rev="3.1" conf="releaseaudit->default"/>
Timothy St. Clair fb05f8b
+                rev="3.2.1" conf="releaseaudit->default"/>
Timothy St. Clair fb05f8b
   </dependencies>
Timothy St. Clair fb05f8b
 
Timothy St. Clair fb05f8b
-</ivy-module>
Timothy St. Clair fb05f8b
\ No newline at end of file
Timothy St. Clair fb05f8b
+</ivy-module>