gitblit-org / gitblit

pure java git solution
http://gitblit.com
Apache License 2.0
2.27k stars 670 forks source link

Make code IntelliJ friendly? #1463

Open madukan opened 8 months ago

madukan commented 8 months ago

Hi, at the moment running the ant build and importing the project to IntelliJ doesn't get one started with Gitblit to debug, or help fix issues. My request is to 1) Make the codebase IntelliJ friendly (as that seem now more popular thus more hands can come on the deck) 2) Add some instructions to a page as a starting point as to how to get the code running (HelloworldKeys and some classes seem to break the process at present) Thanks for the great product!

flaix commented 8 months ago

Could you tell us more about what you find missing for gitblit to be IntelliJ friendly? I develop in IntelliJ IDEA and it seems to work fine for me.

It comes with a gitblit.iml checked-in (not the best idea, but works for now) which opens the project. The one thing it doesn't do well is work without having run ant or moxie once, because only the Ant build will generate code files. But once you ran Ant, again it works fine in IntelliJ for me.

Can you tell me what I am missing?

madukan commented 7 months ago

Are you saying that if I open the .iml file and try to run the Unit tests they all would work fine out of the box? HelloworldKeys and some classes were not working at all. And those were dependants for most of other code too.

That was what I tried at that time. I was looking for some documentation to get started with IntelliJ for the GitBlit then which ended up creating this ticket.

flaix commented 6 months ago

Ah, no, that is not what I am saying. What I am saying is that you should have no problem loading the project into IntelliJ IDEA or Eclipse with the provided project files.

But as I said above, there are source code files that are generated by the build, and that is only done when executing a build via Ant. Which you could probably also trigger from within IDEA, but I haven't tried.

So I guess you mean more IDE friendly, not specifically IntelliJ, as in not having to run a separate build before.