...
Get Source Code
Code Block |
---|
|
git clone https://git.apache.org/zookeeper.git |
...
svn checkout https://svn.apache.org/repos/asf/zookeeper/trunk/ |
Prepare for building
JDK:
Code Block |
---|
|
$java -version
openjdk version "1.8.0_91" |
...
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14) |
Software dependency:
Code Block |
---|
|
sudo apt-get install doxygen
sudo apt-get install perl
sudo apt-get install shtool
sudo apt-get install graphviz
Ant: Apache Ant(TM) version 1.9.6 |
...
Modify the config file: build.xml
Code Block |
---|
|
--- a/build.xml |
...
+++ b/build.xml @@ -40,8 +40,8 @@ xmlns:cs="antlib:com.puppycrawl.tools.checkstyle.ant"> |
...
<property name="revision.properties" value="revision.properties" /> |
...
<property file="${basedir}/src/java/${revision.properties}" /> |
...
- <property name="javac.target" value="1.7" /> |
...
- <property name="javac.source" value="1.7" /> |
...
+ <property name="javac.target" value="1.8" /> |
...
+ <property name="javac.source" value="1.8" /> |
...
<property name="build.encoding" value="utf8" /> |
Building & UT using ant
Code Block |
---|
|
$ ant
$ ant -Djavac.args="-Xlint -Xmaxwarns 1000 " clean test tar |
...