how to use the bzr-java-lib BazaarClient class

Asked by Jesse Greenslade

I'm trying to write java code which works with our bzr repository, I am just checking out and building stuff from it. How do I implement a BazaarClientImplementation class which works with our repo?

I've created a
public class BazaarClientImpl extends BazaarClient
but there are now about 30 methods I need to implement and I do not know how?

I also cannot figure out how to implement the BazaarClientFactory

Question information

Language:
English Edit question
Status:
Solved
For:
Java library for Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Adrian Wilkins
Solved:
Last query:
Last reply:
Revision history for this message
Best Adrian Wilkins (adrian-wilkins) said :
#1

You don't need to implement BazaarClient ; there are two implementations provided. Use BazaarClientFactory to create an instance of a BazaarClient.

If you aren't doing anything heavy, the command-line client is probably the easiest choice as it has the fewest dependencies.

Example :

BazaarClientPreferences.getInstance().set(BazaarPreference.EXECUTABLE, "c:\\Program Files\\Bazaar\\bzr.exe");
BazaarClientFactory.setupBestAvailableBackend();

IBazaarClient client = BazaarClientFactory.createClient(CommandLineClientFactory.CLIENT_TYPE);

Revision history for this message
Jesse Greenslade (bboyjesse) said :
#2

Thanks for quick response, I think that is what I was looking for. Does this library have documentation somewhere?

Revision history for this message
Jesse Greenslade (bboyjesse) said :
#3

Thanks Adrian Wilkins, that solved my question.