Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomly selection of Repository in Eclipse #145

Open
ruchithakur639 opened this issue Apr 9, 2015 · 5 comments
Open

Randomly selection of Repository in Eclipse #145

ruchithakur639 opened this issue Apr 9, 2015 · 5 comments

Comments

@ruchithakur639
Copy link

Hi,
Repository is getting selected by default randomly in my Eclipse. Please let me know about the logic by which Repository is coming while creating review request.

Please help me out to choose the correct repository.

@rombert
Copy link
Owner

rombert commented Apr 9, 2015

Not sure if you asked for the implementation details, but here they are

for ( Repository repository : client.getClientData().getRepositories() ) {
Activator.getDefault().trace(TraceLocation.MAIN, "Considering repository of type " + repository.getTool() + " and path " + repository.getPath());
if ( repository.getTool() != RepositoryType.Subversion )
continue;
hasSvnRepos = true;
if ( localRepositoryUuid.equals(repository.getRepositoryInfo().get(Repository.PN_UUID)) ) {
reviewBoardRepository = repository;
taskRepository = repositoryCandidate;
rbClient = client;
break;
}
}
}

It matches the remote (ReviewBoard) repository with a local (Eclipse) repository based on UUID values.

@ruchithakur639
Copy link
Author

Hi,
Thanks a lot for the code details.
I feel, ereviewboard is the future. Here. all are following it.
I want to set up configuration to build the code present in github and contribute.

Please let me know if some reference documents are present. So that, I can follow to build in my machine. I am using Windows7 OS.

@rombert
Copy link
Owner

rombert commented Apr 10, 2015

I want to set up configuration to build the code present in github and contribute.

Great! As prerequisites, you need to have a recent version of Eclipse with m2e integration, Maven and git installed. Then you can

  • clone the repository ( git clone https://github.com/rombert/ereviewboard.git )
  • build the repository locally ( cd ereviewboard; mvn clean verify )
  • import into Eclipse ( File -> Import Existing Maven Project ) ; import all the projects
  • set the Eclipse target platform to ereviewboard.target ( in Eclipse -> Preferences -> Plugin-in Development -> Target platform )

At this point the project should compile in Eclipse and you should be ready to go. Feel free to post questions in the discussion group about this process.

@ruchithakur639
Copy link
Author

Hi Robert,

I am very new to Plug-in development. I am done with the installations in my machine.
While building the project, I am getting following errors in Eclipse:

image

Please let me know how to resolve those. Are we missing any jar files ?

After completion of successful building this project, please guide me how to go ahead with the plug-in development and installing the developed Plug-in in current Eclipse?

Thank you so much in advance.

@rombert
Copy link
Owner

rombert commented Apr 13, 2015

While building the project, I am getting following errors in Eclipse:

Can you confirm what the target platform selection is? in Eclipse -> Preferences -> Plugin-in Development -> Target platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants