Where did I put that method?
Tuesday, February 20th, 2007IntelliJ IDEA has a great feature called find symbol (CTRL-ALT-SHIFT-N), but what happens when you don’t remember what project that symbol is in?
Enter: OpenGrok
While reading comp.lang.java.programmer, I came across a thread about searching code bases. OpenGrok was mentioned, so I thought I’d check it out.
I went to the project website, downloaded Linux version, and set it running.
Whoops, it didn’t work from the command line, (still don’t know why). Oh well, I managed to start up the GUI anyway. I already had a large portion of my companies CVS repository checked out, so I set my indexer a-flyin’. 4 hours later, I have a searchable index. But OpenGrok promised a webapp!
Hmm, I see a file “source.war”, wonder what that does? I copy it into my local resin webapps/ directory, and fire it up.
It complains about some parameters being incorrect, so I look at the exploded webapp directory, and edit WEB-INF/web.xml.
Just a few simple tweaks, telling it where the source lives and where the indexed data lives, and I have a fully functional source searching webapp!
So, I haven’t played around with any of its advanced features, such as repository integration, but it was relatively quick to set up, and provides hours of fun searching for coworkers foul comments improves productivity.
