ant -Djavac.args="-Xlint -Xmaxwarns 1000" clean test tar
Troubleshooting
1.在运行 unit test 的时候出现
create-cppunit-configure: [exec] configure.ac:37: warning: macro 'AM_PATH_CPPUNIT' not found in library [exec] configure.ac:37: error: possibly undefined macro: AM_PATH_CPPUNIT [exec] If this token and others are legitimate, please use m4_pattern_allow. [exec] See the Autoconf documentation. [exec] configure.ac:57: error: possibly undefined macro: AC_PROG_LIBTOOL [exec] autoreconf: /usr/bin/autoconf failed with exit status: 1
解决方法:
sudo apt-get install libtool
2.在运行 unit test 的时候出现
create-cppunit-configure: [mkdir] Createddir: /home/killua/Workspace/zookeeper/build/test/test-cppunit [exec] checkingfordoxygen... no [exec] checkingforperl... /usr/bin/perl [exec] checkingfordot... no [exec] configure: error: cannotfindinstall-sh, install.sh, orshtoolin"/home/killua/Workspace/zookeeper/src/c""/home/killua/Workspace/zookeeper/src/c/..""/home/killua/Workspace/zookeeper/src/c/../.."