zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Peon Quiros <daniel.peon.qui...@ericsson.com>
Subject RE: Re: Is there a guide to setup the development enviroment with Zookeeper Codebase
Date Mon, 03 Nov 2014 14:50:27 GMT

If you inspect the build.xml file you will find different targets to be taken by Ant. Some
useful commands:

1) ant eclipse --> this will create the needed project files for Eclipse. Import the existing
project then by selecting the Java 1.7.
2) ant compile --> it generates the .jar file.
3) ant test-core-java --> it executes the java regression test.

Kind regards,


-----Original Message-----
From: bit1129@163.com [mailto:bit1129@163.com] 
Sent: lunes, 03 de noviembre de 2014 3:56
To: user@zookeeper.apache.org
Subject: Re: Re: Is there a guide to setup the development enviroment with Zookeeper Codebase

Thanks Wendy and Rob

I have figured out a simple way to debug the zookeeper codebase by starting the zookeeper
with the following code in IDE.
QuarumPeeMain quarum = new QuarumPeeMain (); quarum.main(new String[]{"zookeeper configuration
file path"});

In the meanwhile, If I need, I will try the way to setup the zookeeper codebase following
your guide, @Rob, thanks!

From: Rob Lally
Date: 2014-11-01 12:11
To: user
Subject: Re: Is there a guide to setup the development enviroment with Zookeeper Codebase
If you run:
ant eclipse
in the project root directory, it will produce an Eclipse project for you. You'll also be
able to open the eclipse project in IDEA if you'd prefer that.
On 31 Oct 2014, at 17:15, Tom <bit1129@163.com> wrote:
> Thanks Wendy.
> The problem that blocks me is when I fetch the codebase from zookeeper SVN, there is
no .classpath/.project information (For eclipse)in it,and also it is not a maven project.
> So,did you configure the classpath by yourself when you accept the codebase? what IDE
did you use?Thanks!
> At 2014-10-31 22:24:21, "Wendy Smoak" <wsmoak@gmail.com> wrote:
>> http://zookeeper.apache.org links to
>> https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute
>> which has instructions on how to build the project with Ant.
>> I'm trying it now -- initial observations are that the tests take a 
>> LONG time and it's difficult to work on anything else while they are 
>> running because the terminal window keeps stealing focus. (?) Not 
>> sure what that's about, I don't remember it happening with other Java 
>> projects.
>> (If you need more help getting set up to build it, the dev list is 
>> probably a better place to ask.)
>> -Wendy
>> On Fri, Oct 31, 2014 at 9:37 AM, bit1129@163.com <bit1129@163.com> wrote:
>>> I would like to fetch the zookeeper codebase,and compile/run/debug it in local
dev environment to get familiar with zookeeper from the code level.
>>> Thanks.
>>> -Todd

View raw message