On Tue, Aug 14, 2012 at 07:13:33PM +0200, Lubos Kosco wrote: > On 14.8.2012 18:34, Jens Elkner wrote: > >On Tue, Aug 14, 2012 at 10:07:42AM +0200, Lubos Kosco wrote: > >>On 13.8.2012 20:55, Don Fike wrote: > >>>I have a couple installations of Opengrok running but changed the name > >>>of the war file to a name that better describes the projects Opengrok > >>>is grokking. This presents an issue as /source/ remains in the URL > >>>for many of the entities in the xref. > >>there is an indexer option -w > >>indexes/xrefs caches are indexed with hardcoded /source (or any other > >>string you pass to indexer) to avoid unnecessary dynamic linking > >>(depending on depth of file we would have to insert ../../../ ... which > >>would make index unnecessary big) > >>there is a bug(forgot the number, please check/search it from issues on > >>the wiki page) to get rid of option -w and make it dynamic by default, > >>but so far this is such a limited use case and cost for it is so high, > >>that no one did the change > >Hmmm, I would guess, not more than a day. > > size wise please ;) > (index would grow too much)
Hmmm, wrt. index it shrinks. E.g. for AnalyzerGuru ~ -6.5% (compressed -0.5%) - see http://iws.cs.ovgu.de/~elkner/tmp/og/ (AnalyzerGuru2.java is the modified base href one. Just inserted the header and did a gsed -i -e 's,/source/,,g' - perhaps not 100% correct). The tricky thing is to find out all the places, where relative pathes wrt. "$CWD" are used (probably dir listings, history: mod file list) and make them to resolve wrt. the base. This certainly increases related page size, but I assume not as much, as the index shrinking saves ... > found the bug # , I think I thought about this option and it didn't work > in my testing: > http://defect.opensolaris.org/bz/show_bug.cgi?id=13985 Ah ok, thanx. Maybe in theory/worst case, but in real life I doubt it. Need to see an example, before I believe it ;-) Have fun, jel. -- Otto-von-Guericke University http://www.cs.uni-magdeburg.de/ Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2 39106 Magdeburg, Germany Tel: +49 391 67 12768 _______________________________________________ opengrok-discuss mailing list opengrok-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss