Review Board 1.7.22


ZOOKEEPER-999 Create an package integration project

Review Request #1143 - Created July 19, 2011 and updated

Patrick Hunt
trunk
ZOOKEEPER-999
Reviewers
zookeeper
mahadev
zookeeper
This goal of this ticket is to generate a set of RPM/debian package which integrate well with RPM sets created by HADOOP-6255.

 
./build.xml
Revision 1141176 New Change
[20] 147 lines
[+20]
148
    <!-- eclipse property set -->
148
    <!-- eclipse property set -->
149
    <property name="build.dir.eclipse" value=".eclipse"/>
149
    <property name="build.dir.eclipse" value=".eclipse"/>
150
    <property name="build.dir.eclipse-main-classes" value="${build.dir.eclipse}/classes-main"/>
150
    <property name="build.dir.eclipse-main-classes" value="${build.dir.eclipse}/classes-main"/>
151
    <property name="build.dir.eclipse-test-classes" value="${build.dir.eclipse}/classes-test"/>
151
    <property name="build.dir.eclipse-test-classes" value="${build.dir.eclipse}/classes-test"/>
152

    
   
152

   

    
   
153
    <!-- cppunit property set -->

    
   
154
    <property name="cppunit.lib" value="/usr/local/lib"/>

    
   
155
    <property name="cppunit.m4" value="/usr/local/share/aclocal"/>

    
   
156

   

    
   
157
    <!-- packaging property set -->

    
   
158
    <property name="package.release" value="1"/>

    
   
159
    <property name="package.prefix" value="/usr"/>

    
   
160
    <property name="package.conf.dir" value="/etc/zookeeper"/>

    
   
161
    <property name="package.log.dir" value="/var/log/zookeeper"/>

    
   
162
    <property name="package.pid.dir" value="/var/run/zookeeper"/>

    
   
163
    <property name="package.var.dir" value="/var/lib/zookeeper"/>

    
   
164
    <property name="package.share.dir" value="/share/zookeeper"/>

    
   
165
    <property name="package.buildroot" value="/tmp/zookeeper_package_build_${user.name}"/>

    
   
166
    <property name="package.build.dir" value="/tmp/zookeeper_package_build_${user.name}/BUILD"/>
153

    
   
167

   
154
    <!-- ====================================================== -->
168
    <!-- ====================================================== -->
155
    <!-- Macro definitions                                      -->
169
    <!-- Macro definitions                                      -->
156
    <!-- ====================================================== -->
170
    <!-- ====================================================== -->
157
    <macrodef name="macro_tar" description="Worker Macro for tar">
171
    <macrodef name="macro_tar" description="Worker Macro for tar">
[+20] [20] 34 lines
[+20]
192
        <include name="**/*.jar" />
206
        <include name="**/*.jar" />
193
      </fileset>
207
      </fileset>
194
      <path refid="java.classpath"/>
208
      <path refid="java.classpath"/>
195
    </path>
209
    </path>
196

    
   
210

   

    
   
211
    <path id="package.classpath">

    
   
212
      <fileset dir="${ivy.lib}">

    
   
213
        <include name="**/jdeb*.jar" />

    
   
214
      </fileset>

    
   
215
    </path>

    
   
216

   
197
    <!-- ====================================================== -->
217
    <!-- ====================================================== -->
198
    <!-- Generate and compile the Java files                    -->
218
    <!-- Generate and compile the Java files                    -->
199
    <!-- ====================================================== -->
219
    <!-- ====================================================== -->
200
    <target name="init">    
220
    <target name="init">    
201
        <mkdir dir="${build.classes}" />
221
        <mkdir dir="${build.classes}" />
[+20] [20] 142 lines
[+20]
344
             target="${javac.target}" debug="on">
364
             target="${javac.target}" debug="on">
345
        <classpath refid="test.java.classpath"/>
365
        <classpath refid="test.java.classpath"/>
346
      </javac>
366
      </javac>
347
    </target>
367
    </target>
348

    
   
368

   

    
   
369
    <target name="compile-native" depends="compile_jute" description="Make C binding">

    
   
370
      <exec executable="autoreconf" dir="${c.src.dir}" searchpath="yes"

    
   
371
            failonerror="yes">

    
   
372
        <arg value="-if"/>

    
   
373
        <env key="ACLOCAL" value="aclocal -I ${cppunit.m4}"/>

    
   
374
      </exec>

    
   
375
      <mkdir dir="${build.dir}/c" />

    
   
376
      <exec executable="${c.src.dir}/configure" dir="${build.dir}/c"

    
   
377
            failonerror="yes">

    
   
378
        <env key="base_dir" value="${basedir}"/>

    
   
379
        <env key="CALLER" value="ANT"/>

    
   
380
        <arg value="--prefix=${build.dir}/c/build/${package.prefix}"/>

    
   
381
      </exec>

    
   
382
      <property name="c.build" value="${build.dir}/c/build"/>

    
   
383
      <exec dir="${build.dir}/c" executable="make" failonerror="true">

    
   
384
        <arg value="install"/>

    
   
385
        <env key="LD_LIBRARY_PATH" value="${c.build}"/>

    
   
386
        <env key="PATH" path="${env.PATH};${c.src.dir};"/>

    
   
387
        <env key="CALLER" value="ANT"/>

    
   
388
        <env key="base_dir" value="${basedir}"/>

    
   
389
      </exec>

    
   
390
    </target>

    
   
391

   
349
    <!-- ====================================================== -->
392
    <!-- ====================================================== -->
350
    <!-- Documentation                                          -->
393
    <!-- Documentation                                          -->
351
    <!-- ====================================================== -->
394
    <!-- ====================================================== -->
352
    <target name="docs" depends="forrest.check" description="Generate forrest-based documentation. To use, specify -Dforrest.home=&lt;base of Apache Forrest installation&gt; on the command line." if="forrest.home">
395
    <target name="docs" depends="forrest.check" description="Generate forrest-based documentation. To use, specify -Dforrest.home=&lt;base of Apache Forrest installation&gt; on the command line." if="forrest.home">
353
      <condition property="forrest.exec" value="forrest.bat" else="forrest">
396
      <condition property="forrest.exec" value="forrest.bat" else="forrest">
[+20] [20] 225 lines
[+20]
579
    <!-- D I S T R I B U T I O N                                            -->
622
    <!-- D I S T R I B U T I O N                                            -->
580
    <!-- ================================================================== -->
623
    <!-- ================================================================== -->
581
    <!--                                                                    -->
624
    <!--                                                                    -->
582
    <!-- ================================================================== -->
625
    <!-- ================================================================== -->
583
    <target name="package"
626
    <target name="package"
584
            depends="jar,bin-jar,src-jar,javadoc-jar,test-jar,api-report,create-cppunit-configure,compile-test"
627
            depends="jar,bin-jar,src-jar,javadoc-jar,test-jar,api-report,create-cppunit-configure,compile-native,compile-test"
585
            description="Build distribution">
628
            description="Build distribution">
586
      <mkdir dir="${dist.dir}"/>
629
      <mkdir dir="${dist.dir}"/>
587
      <mkdir dir="${dist.dir}/lib"/>
630
      <mkdir dir="${dist.dir}/lib"/>
588
      <mkdir dir="${dist.dir}/contrib"/>
631
      <mkdir dir="${dist.dir}/libexec"/>
589
      <mkdir dir="${dist.dir}/recipes"/>
632
      <mkdir dir="${dist.dir}/share/zookeeper/contrib"/>

    
   
633
      <mkdir dir="${dist.dir}/share/zookeeper/recipes"/>
590
      <mkdir dir="${dist.dir}/bin"/>
634
      <mkdir dir="${dist.dir}/bin"/>
591
      <mkdir dir="${dist.dir}/docs"/>
635
      <mkdir dir="${dist.dir}/docs"/>
592
      <mkdir dir="${dist.dir}/docs/jdiff"/>
636
      <mkdir dir="${dist.dir}/docs/jdiff"/>
593
      <mkdir dir="${dist.dir}/docs/api"/>
637
      <mkdir dir="${dist.dir}/docs/api"/>

    
   
638
      <mkdir dir="${dist.dir}/share/zookeeper/templates/conf"/>

    
   
639
      <mkdir dir="${dist.dir}/sbin"/>
594

    
   
640

   
595
      <copy todir="${dist.dir}/lib" includeEmptyDirs="false">
641
      <copy todir="${dist.dir}/share/zookeeper" includeEmptyDirs="false">
596
        <fileset dir="${lib.dir}">
642
        <fileset dir="${lib.dir}">
597
          <exclude name="**/ivy*.jar" />
643
          <exclude name="**/ivy*.jar" />

    
   
644
          <exclude name="**/deb*.jar" />
598
        </fileset>
645
        </fileset>
599
        <fileset dir="${ivy.lib}"/>
646
        <fileset dir="${ivy.lib}"/>
600
      </copy>
647
      </copy>
601

    
   
648

   

    
   
649
      <copy file="${basedir}/src/packages/update-zookeeper-env.sh" tofile="${dist.dir}/sbin/update-zookeeper-env.sh"/>
602
      <subant target="package">
650
      <subant target="package">
603
        <!--Pass down the version in case its needed again and the target
651
        <!--Pass down the version in case its needed again and the target
604
            distribution directory so contribs know where to install to.-->
652
            distribution directory so contribs know where to install to.-->
605
        <property name="version" value="${version}"/>
653
        <property name="version" value="${version}"/>
606
        <property name="dist.dir" value="${dist.dir}"/>
654
        <property name="dist.dir" value="${dist.dir}"/>
607
        <fileset file="${contrib.dir}/build.xml"/>
655
        <fileset file="${contrib.dir}/build.xml"/>
608
        <fileset file="${recipes.dir}/build.xml"/>
656
        <fileset file="${recipes.dir}/build.xml"/>
609
      </subant>  	
657
      </subant>  	
610

    
   
658

   
611
      <copy todir="${dist.dir}"> 
659
      <copy todir="${dist.dir}/share/zookeeper"> 
612
        <fileset file="${build.dir}/${final.name}.jar"/>
660
        <fileset file="${build.dir}/${final.name}.jar"/>
613
      </copy>
661
      </copy>
614

    
   
662

   
615
      <checksum file="${dist.dir}/${final.name}.jar" algorithm="md5"/>
663
      <checksum file="${dist.dir}/share/zookeeper/${final.name}.jar" algorithm="md5"/>
616
      <checksum file="${dist.dir}/${final.name}.jar" algorithm="sha1"/>
664
      <checksum file="${dist.dir}/share/zookeeper/${final.name}.jar" algorithm="sha1"/>
617

    
   
665

   
618
      <mkdir dir="${dist.maven.dir}"/>
666
      <mkdir dir="${dist.maven.dir}"/>
619

    
   
667

   
620
      <copy file="${build.dir}/${final.name}-bin.jar"
668
      <copy file="${build.dir}/${final.name}-bin.jar"
621
            tofile="${dist.maven.dir}/${final.name}.jar"/> 
669
            tofile="${dist.maven.dir}/${final.name}.jar"/> 
[+20] [20] 31 lines
[+20]
653
      <checksum file="${dist.maven.dir}/${final.name}-test.pom" algorithm="md5"/>
701
      <checksum file="${dist.maven.dir}/${final.name}-test.pom" algorithm="md5"/>
654
      <checksum file="${dist.maven.dir}/${final.name}-test.pom" algorithm="sha1"/>
702
      <checksum file="${dist.maven.dir}/${final.name}-test.pom" algorithm="sha1"/>
655

    
   
703

   
656

    
   
704

   
657
      <copy todir="${dist.dir}/bin">
705
      <copy todir="${dist.dir}/bin">
658
        <fileset dir="bin"/>
706
        <fileset dir="bin" includes="zkCli*"/>

    
   
707
      </copy>

    
   
708

   

    
   
709
      <copy todir="${dist.dir}/libexec">

    
   
710
        <fileset dir="bin" includes="zkEnv*"/>

    
   
711
      </copy>

    
   
712

   

    
   
713
      <copy todir="${dist.dir}/sbin">

    
   
714
        <fileset dir="bin" includes="zkServer*"/>
659
      </copy>
715
      </copy>
660

    
   
716

   
661
      <copy todir="${dist.dir}/conf">
717
      <copy todir="${dist.dir}/conf">
662
        <fileset dir="${conf.dir}" excludes="**/*.template"/>
718
        <fileset dir="${conf.dir}" excludes="**/*.template"/>
663
      </copy>
719
      </copy>
[+20] [20] 13 lines
[+20]
677
      </copy>
733
      </copy>
678

    
   
734

   
679
      <copy todir="${dist.dir}/src" includeEmptyDirs="true">
735
      <copy todir="${dist.dir}/src" includeEmptyDirs="true">
680
        <fileset dir="src" excludes="**/*.template **/docs/build/**/* **/ivy*.jar"/>
736
        <fileset dir="src" excludes="**/*.template **/docs/build/**/* **/ivy*.jar"/>
681
      </copy>
737
      </copy>

    
   
738

   

    
   
739
      <copy todir="${dist.dir}/${package.share.dir}/templates/conf">

    
   
740
        <fileset dir="${basedir}/src/packages/templates/conf" includes="*"/>

    
   
741
      </copy>
682
  	  
742
  	  
683
      <chmod perm="ugo+x" type="file" parallel="false">
743
      <chmod perm="ugo+x" type="file" parallel="false">
684
        <fileset dir="${dist.dir}/bin"/>
744
        <fileset dir="${dist.dir}/bin"/>

    
   
745
        <fileset dir="${dist.dir}/sbin"/>
685
        <fileset dir="${dist.dir}/src/contrib/">
746
        <fileset dir="${dist.dir}/src/contrib/">
686
          <include name="*/bin/*" />
747
          <include name="*/bin/*" />
687
        </fileset>
748
        </fileset>
688
      </chmod>
749
      </chmod>
689
    </target>
750
    </target>
[+20] [20] 64 lines
[+20]
754
          </tarfileset>
815
          </tarfileset>
755
        </param.listofitems>
816
        </param.listofitems>
756
      </macro_tar>
817
      </macro_tar>
757
    </target>
818
    </target>
758

    
   
819

   

    
   
820
    <target name="package-native" depends="compile-native" description="Make C binding tarball">

    
   
821
      <!-- For Unix platforms only, use OS native tar to preserve symlinks -->

    
   
822
      <exec executable="tar" dir="${build.dir}/c/build">

    
   
823
        <arg value="cfzv" />

    
   
824
        <arg value="${build.dir}/${final.name}-lib.tar.gz" />

    
   
825
        <arg value="." />

    
   
826
      </exec>

    
   
827
    </target>

    
   
828

   

    
   
829
    <target name="rpm" depends="package-native, tar" description="Make rpm package">

    
   
830
      <subant target="rpm">

    
   
831
        <!--Pass down the version in case its needed again and the target

    
   
832
            distribution directory so contribs know where to install to.-->

    
   
833
        <property name="version" value="${version}"/>

    
   
834
        <property name="dist.dir" value="${dist.dir}"/>

    
   
835
        <fileset file="${contrib.dir}/build.xml"/>

    
   
836
        <fileset file="${recipes.dir}/build.xml"/>

    
   
837
      </subant>  	

    
   
838
      <path id="c.lib">

    
   
839
        <fileset dir="${build.dir}">

    
   
840
          <include name="${final.name}-lib.tar.gz"/>

    
   
841
        </fileset>

    
   
842
      </path>

    
   
843
      <property name="c.lib" refid="c.lib"/>

    
   
844
      <mkdir dir="${package.buildroot}/BUILD" />

    
   
845
      <mkdir dir="${package.buildroot}/RPMS" />

    
   
846
      <mkdir dir="${package.buildroot}/SRPMS" />

    
   
847
      <mkdir dir="${package.buildroot}/SOURCES" />

    
   
848
      <mkdir dir="${package.buildroot}/SPECS" />

    
   
849
      <copy todir="${package.buildroot}/SOURCES">

    
   
850
        <fileset dir="${build.dir}">

    
   
851
          <include name="${final.name}.tar.gz" />

    
   
852
        </fileset>

    
   
853
        <fileset file="${c.lib}" />

    
   
854
      </copy>

    
   
855
      <copy file="${src.dir}/packages/rpm/spec/zookeeper.spec" todir="${package.buildroot}/SPECS">

    
   
856
        <filterchain>

    
   
857
          <replacetokens>

    
   
858
            <token key="final.name" value="${final.name}" />

    
   
859
            <token key="version" value="${version}" />

    
   
860
            <token key="package.release" value="${package.release}" />

    
   
861
            <token key="package.build.dir" value="${package.build.dir}" />

    
   
862
            <token key="package.prefix" value="${package.prefix}" />

    
   
863
            <token key="package.conf.dir" value="${package.conf.dir}" />

    
   
864
            <token key="package.log.dir" value="${package.log.dir}" />

    
   
865
            <token key="package.pid.dir" value="${package.pid.dir}" />

    
   
866
            <token key="package.var.dir" value="${package.var.dir}" />

    
   
867
            <token key="c.lib" value="${c.lib}" />

    
   
868
          </replacetokens>

    
   
869
        </filterchain>

    
   
870
      </copy>

    
   
871
      <rpm specFile="zookeeper.spec" command="-ba" topDir="${package.buildroot}" cleanBuildDir="true" failOnError="true"

    
   
872
/>

    
   
873
      <copy todir="${build.dir}/" flatten="true">

    
   
874
        <fileset dir="${package.buildroot}/RPMS">

    
   
875
          <include name="**/${name}*.rpm" />

    
   
876
        </fileset>

    
   
877
        <fileset dir="${package.buildroot}/SRPMS">

    
   
878
          <include name="**/${name}*.rpm" />

    
   
879
        </fileset>

    
   
880
      </copy>

    
   
881
      <delete dir="${package.buildroot}" quiet="true" verbose="false"/>

    
   
882
    </target>

    
   
883

   

    
   
884
    <target name="deb" depends="compile-native, tar" description="Make deb package">

    
   
885
      <subant target="deb">

    
   
886
        <!--Pass down the version in case its needed again and the target

    
   
887
            distribution directory so contribs know where to install to.-->

    
   
888
        <property name="version" value="${version}"/>

    
   
889
        <property name="dist.dir" value="${dist.dir}"/>

    
   
890
        <fileset file="${contrib.dir}/build.xml"/>

    
   
891
        <fileset file="${recipes.dir}/build.xml"/>

    
   
892
      </subant>

    
   
893
      <taskdef name="deb" classname="org.vafer.jdeb.ant.DebAntTask">

    
   
894
        <classpath refid="java.classpath"/>

    
   
895
        <classpath refid="package.classpath"/>

    
   
896
      </taskdef>

    
   
897

   

    
   
898
      <mkdir dir="${package.build.dir}/zookeeper.control" />

    
   
899
      <copy todir="${package.buildroot}/${package.prefix}">

    
   
900
        <fileset dir="${build.dir}/${final.name}">

    
   
901
          <include name="bin/**" />

    
   
902
          <include name="conf/**" />

    
   
903
          <include name="sbin/**" />

    
   
904
          <include name="share/**" />

    
   
905
        </fileset>

    
   
906
      </copy>

    
   
907
      <copy todir="${package.build.dir}/zookeeper.control">

    
   
908
        <fileset dir="${src.dir}/packages/deb/zookeeper.control">

    
   
909
          <exclude name="control" />

    
   
910
        </fileset>

    
   
911
      </copy>

    
   
912
      <copy file="${src.dir}/packages/deb/zookeeper.control/control" todir="${package.build.dir}/zookeeper.control">

    
   
913
        <filterchain>

    
   
914
          <replacetokens>

    
   
915
            <token key="final.name" value="${final.name}" />

    
   
916
            <token key="version" value="${version}" />

    
   
917
            <token key="package.release" value="${package.release}" />

    
   
918
            <token key="package.build.dir" value="${package.build.dir}" />

    
   
919
            <token key="package.prefix" value="${package.prefix}" />

    
   
920
            <token key="package.conf.dir" value="${package.conf.dir}" />

    
   
921
            <token key="package.log.dir" value="${package.log.dir}" />

    
   
922
            <token key="package.pid.dir" value="${package.pid.dir}" />

    
   
923
            <token key="package.var.dir" value="${package.var.dir}" />

    
   
924
          </replacetokens>

    
   
925
        </filterchain>

    
   
926
      </copy>

    
   
927
      <deb destfile="${package.buildroot}/${name}_${version}-${package.release}_${os.arch}.deb" control="${package.build.dir}/zookeeper.control">

    
   
928
        <tarfileset dir="${build.dir}/${final.name}/share/zookeeper" filemode="644" prefix="${package.prefix}/share/zookeeper">

    
   
929
          <include name="**" />

    
   
930
        </tarfileset>

    
   
931
        <tarfileset dir="${build.dir}/${final.name}/bin" filemode="755" prefix="${package.prefix}/bin">

    
   
932
          <include name="zkCli.sh" />

    
   
933
        </tarfileset>

    
   
934
        <tarfileset dir="${build.dir}/${final.name}/sbin" filemode="755" prefix="${package.prefix}/sbin">

    
   
935
          <include name="**.sh" />

    
   
936
        </tarfileset>

    
   
937
        <tarfileset dir="${build.dir}/${final.name}/libexec" filemode="755" prefix="${package.prefix}/libexec">

    
   
938
          <include name="zkEnv.sh" />

    
   
939
        </tarfileset>

    
   
940
        <tarfileset dir="${build.dir}/c/build/${package.prefix}/include" prefix="${package.prefix}/include">

    
   
941
          <include name="**" />

    
   
942
        </tarfileset> 

    
   
943
        <tarfileset dir="${build.dir}/c/build/${package.prefix}/lib" filemode="755" prefix="${package.prefix}/lib">

    
   
944
          <include name="**" />

    
   
945
        </tarfileset> 

    
   
946
        <tarfileset dir="${build.dir}/${final.name}/conf" filemode="644" prefix="${package.conf.dir}">

    
   
947
          <include name="**" />

    
   
948
        </tarfileset>

    
   
949
        <tarfileset dir="${build.dir}/${final.name}/src/packages/deb/init.d" filemode="755" prefix="/etc/init.d">

    
   
950
          <include name="**" />

    
   
951
        </tarfileset>

    
   
952
      </deb>

    
   
953

   

    
   
954
      <copy todir="${build.dir}/" flatten="true">

    
   
955
        <fileset dir="${package.buildroot}">

    
   
956
          <include name="**/${name}*.deb" />

    
   
957
        </fileset>

    
   
958
      </copy>

    
   
959
      <delete dir="${package.buildroot}" quiet="true" verbose="false"/>

    
   
960

   

    
   
961
    </target>

    
   
962

   
759
    <!-- ====================================================== -->
963
    <!-- ====================================================== -->
760
    <!-- Clean.  Delete the build files, and their directories  -->
964
    <!-- Clean.  Delete the build files, and their directories  -->
761
    <!-- ====================================================== -->
965
    <!-- ====================================================== -->
762
    <target name="clean" depends="clean-contrib,clean-recipes"
966
    <target name="clean" depends="clean-contrib,clean-recipes"
763
            description="Clean.  Delete the build files, and their directories">
967
            description="Clean.  Delete the build files, and their directories">
[+20] [20] 8 lines
[+20]
772
      <delete dir="${distribution}"/>
976
      <delete dir="${distribution}"/>
773
      <delete dir="${revision.dir}"/>
977
      <delete dir="${revision.dir}"/>
774
      <delete>
978
      <delete>
775
        <fileset dir="${basedir}" includes="*.jar,*.tar.gz"/>
979
        <fileset dir="${basedir}" includes="*.jar,*.tar.gz"/>
776
      </delete>
980
      </delete>

    
   
981
      <delete dir="${package.buildroot}" />
777
    </target>
982
    </target>
778

    
   
983

   
779
    <target name="clean-contrib">
984
    <target name="clean-contrib">
780
      <subant target="clean">        
985
      <subant target="clean">        
781
        <fileset file="${contrib.dir}/build.xml"/>
986
        <fileset file="${contrib.dir}/build.xml"/>
[+20] [20] 112 lines
[+20]
894
    <target name="create-cppunit-configure" depends="check-cppunit-configure"
1099
    <target name="create-cppunit-configure" depends="check-cppunit-configure"
895
            if="need.cppunit.configure">
1100
            if="need.cppunit.configure">
896
      <exec executable="autoreconf" dir="${c.src.dir}" searchpath="yes"
1101
      <exec executable="autoreconf" dir="${c.src.dir}" searchpath="yes"
897
            failonerror="yes">
1102
            failonerror="yes">
898
        <arg value="-if"/>
1103
        <arg value="-if"/>

    
   
1104
        <env key="ACLOCAL" value="aclocal -I ${cppunit.m4}"/>
899
      </exec>
1105
      </exec>
900
    </target>
1106
    </target>
901

    
   
1107

   
902
    <target name="create-cppunit-makefile" depends="check-cppunit-makefile" 
1108
    <target name="create-cppunit-makefile" depends="check-cppunit-makefile" 
903
                                           if="need.cppunit.makefile">
1109
                                           if="need.cppunit.makefile">
[+20] [20] 19 lines
[+20]
923

    
   
1129

   
924
    <target name="test-cppunit"
1130
    <target name="test-cppunit"
925
            depends="compile_jute, jar, create-cppunit-makefile"
1131
            depends="compile_jute, jar, create-cppunit-makefile"
926
            if="cppunit"
1132
            if="cppunit"
927
		description="to run cppunit test cases">
1133
		description="to run cppunit test cases">
928
        <property name="lib.cppunit" value="/usr/local/lib"/>

   
929
        <exec dir="${test.cppunit.dir}" executable="make" failonerror="true">
1134
        <exec dir="${test.cppunit.dir}" executable="make" failonerror="true">
930
		<env key="LD_LIBRARY_PATH" value="${lib.cppunit}"/>
1135
		<env key="LD_LIBRARY_PATH" value="${cppunit.lib}"/>
931
		<env key="PATH" path="${env.PATH};${c.src.dir};"/>
1136
		<env key="PATH" path="${env.PATH};${c.src.dir};"/>
932
                <env key="CALLER" value="ANT"/>
1137
                <env key="CALLER" value="ANT"/>
933
                <env key="CLOVER_HOME" value="${clover.home}"/>
1138
                <env key="CLOVER_HOME" value="${clover.home}"/>
934
                <env key="base_dir" value="${basedir}"/>
1139
                <env key="base_dir" value="${basedir}"/>
935
		<arg line="clean run-check"/>
1140
		<arg line="clean run-check"/>
[+20] [20] 430 lines
./ivy.xml
Revision 1141173 New Change
 
./bin/zkCleanup.sh
Revision 1141173 New Change
 
./bin/zkCli.sh
Revision 1141173 New Change
 
./bin/zkEnv.sh
Revision 1141173 New Change
 
./bin/zkServer.sh
Revision 1141173 New Change
 
./src/contrib/build.xml
Revision 1141173 New Change
 
./src/contrib/build-contrib.xml
Revision 1141173 New Change
 
./src/contrib/zkpython/build.xml
Revision 1141173 New Change
 
./src/contrib/zkpython/ivy.xml
New File
 
./src/contrib/zkpython/src/packages/deb/zkpython.control/control
New File
 
./src/contrib/zkpython/src/packages/rpm/spec/zkpython.spec
New File
 
./src/contrib/zkpython/src/python/setup.py
Revision 1141173 New Change
 
./src/packages/update-zookeeper-env.sh
New File
 
./src/packages/deb/init.d/zookeeper
New File
 
./src/packages/deb/zookeeper.control/conffile
New File
 
./src/packages/deb/zookeeper.control/control
New File
 
./src/packages/deb/zookeeper.control/postinst
New File
 
./src/packages/deb/zookeeper.control/postrm
New File
 
./src/packages/deb/zookeeper.control/preinst
New File
 
./src/packages/deb/zookeeper.control/prerm
New File
 
./src/packages/rpm/init.d/zookeeper
New File
 
./src/packages/rpm/spec/zookeeper.spec
New File
 
./src/packages/templates/conf/zoo.cfg
New File
 
./src/recipes/build.xml
Revision 1141173 New Change
 
./src/recipes/build-recipes.xml
Revision 1141173 New Change
 
./src/recipes/lock/build.xml
Revision 1141173 New Change
 
./src/recipes/queue/build.xml
Revision 1141173 New Change
 
  1. ./build.xml: Loading...
  2. ./ivy.xml: Loading...
  3. ./bin/zkCleanup.sh: Loading...
  4. ./bin/zkCli.sh: Loading...
  5. ./bin/zkEnv.sh: Loading...
  6. ./bin/zkServer.sh: Loading...
  7. ./src/contrib/build.xml: Loading...
  8. ./src/contrib/build-contrib.xml: Loading...
  9. ./src/contrib/zkpython/build.xml: Loading...
  10. ./src/contrib/zkpython/ivy.xml: Loading...
  11. ./src/contrib/zkpython/src/packages/deb/zkpython.control/control: Loading...
  12. ./src/contrib/zkpython/src/packages/rpm/spec/zkpython.spec: Loading...
  13. ./src/contrib/zkpython/src/python/setup.py: Loading...
  14. ./src/packages/update-zookeeper-env.sh: Loading...
  15. ./src/packages/deb/init.d/zookeeper: Loading...
  16. ./src/packages/deb/zookeeper.control/conffile: Loading...
  17. ./src/packages/deb/zookeeper.control/control: Loading...
  18. ./src/packages/deb/zookeeper.control/postinst: Loading...
  19. ./src/packages/deb/zookeeper.control/postrm: Loading...
  20. ./src/packages/deb/zookeeper.control/preinst: Loading...
  21. ./src/packages/deb/zookeeper.control/prerm: Loading...
  22. ./src/packages/rpm/init.d/zookeeper: Loading...
  23. ./src/packages/rpm/spec/zookeeper.spec: Loading...
  24. ./src/packages/templates/conf/zoo.cfg: Loading...
  25. ./src/recipes/build.xml: Loading...
  26. ./src/recipes/build-recipes.xml: Loading...
  27. ./src/recipes/lock/build.xml: Loading...
  28. ./src/recipes/queue/build.xml: Loading...