After copying the source.war it started working! Thanks a lot. Regards Appu
On Thu, Oct 4, 2012 at 5:46 PM, Vladimir Kotal <vladimir.ko...@oracle.com>wrote: > On 10/04/12 05:32, Appu Mathew wrote: > >> Hi Vladimir, >> >> I had the opengrok0.11 source and was tinkering around with it just before >> your mail came. After i saw the mail, i removed the suspicious "-" from >> the >> version and added a normal hyphen, and built a new opengrok.jar. And ran >> index again after removing all the data,log,etc folders just to be >> sure.That seemed to work,atleast there are lotsof lshistory being executed >> in the log files, and i can see the historycache now :) :) >> > > Cool. > > > But the history links are still not working. I went and checked and saw >> that there is a gz file for that file in the historycache section, but the >> history link is still deactivated. I cannot see the history link for any >> file for that matter. Any clues? >> > > The hasHistory() function in > src/org/opensolaris/opengrok/**history/HistoryGuru.java > determines whether the 'History' link will be shown (or just a text). > > It does this: > > 245 public boolean hasHistory(File file) { > 246 Repository repos = getRepository(file); > 247 > 248 return repos == null > 249 ? false > 250 : repos.isWorking() && repos.fileHasHistory(file) > 251 && (RuntimeEnvironment.**getInstance().** > isRemoteScmSupported() > 252 || !repos.isRemote()); > 253 } > > The repos.isWorking() should be satisfied by the '-version' check. The > repos.fileHasHistory(file) should be true since there are gzip'ed files in > the history directory. > > Not sure if Clearcase needs to query remote server to get the history but > OpenGrok script enables it by default so it should work too. > > One thing to check - the source.war Java archive also contains > opengrok.jar, so you might need to rebuild the archive too with the fixed > version and deploy it. > > > I have not worked on java before much.Till yesterday, i did not know how >> to >> build the jar file from the source. I have figured that out now. So if u >> need any info, i can add logs and check the execution flow. >> > > You might want to add some debugging prints to the above function (or to > mast.jsp where it calls 'cfg.hasHistory()') to see what parts of the > predicate are actually true. > > > v. >
_______________________________________________ opengrok-discuss mailing list opengrok-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss