you can use luke (http://code.google.com/p/luke/)
to inspect the index and check definition table if it has the definition

if not, then obviously you have some prob with indexer to fill it in, but as you might have guessed it's hard to figure it out without logs or knowledge about your environment (I have a feeling it's not setup well)

you can try revisiting the head of OpenGrok script and check if you have all env vars set up
ev. drop the config script you use and just run OpenGrok and set all vars
(e.g. as in http://hub.opensolaris.org/bin/view/Project+opengrok/installdescription
try (first change the paths please)
$ OPENGROK_VERBOSE=true OPENGROK_INSTANCE_BASE=/path/to/opengrok EXUBERANT_CTAGS=/path/to/ctags.bin OPENGROK_TOMCAT_BASE=/path/to/my/tomcat/install ./OpenGrok deploy $ OPENGROK_VERBOSE=true OPENGROK_INSTANCE_BASE=/path/to/opengrok EXUBERANT_CTAGS=/path/to/ctags.bin OPENGROK_TOMCAT_BASE=/path/to/my/tomcat/install ./OpenGrok index /path/to/sources

note that default OPENGROK_INSTANCE_BASE is /var/opengrok , tomcat base differs based on systems, similar for ctags, for most systems it should detect the paths (but not for all OSes :( ... send a patch for yours)
)

xing the fingers ... it seems it's a pity Oracle doesn't sell support for OpenGrok
L

On 18.11.2011 11:27, Gandhi, Shailey wrote:

Thanks for your response.

But this is not how it is working for me.

I have a .java file with a class xyz defined in it.

When I click on xyz , it gets me back to the search page with no results for definition search

At the bottom I see :

Did you mean (for project) : xyz yz...

Why doesn't it jump back to the same .java file.

Shailey

*From:*Lubos Kosco [mailto:lubos.ko...@oracle.com]
*Sent:* Friday, November 18, 2011 3:47 PM
*To:* Gandhi, Shailey (GWMG Technology)
*Cc:* opengrok-discuss@opensolaris.org
*Subject:* Re: [opengrok] Question about xref search

On 18.11.2011 11:08, Gandhi, Shailey wrote:

Hi

I have a question about the xref search with reference to java files.

In a java source file in which I have a class defined, when I click on the name of the class, what is opengrok supposed to search?

In my case it tries to do a definition search and lists the .jar file that has the name of the class.

Is this how it is supposed to work?


the definition db is for the whole project
if there are 2 definitions which fit the name, then yes (and they could be anywhere, definition db is built from all files, which ctags can parse and we have an analyzer for)

if there would be just one def and inside the same file, then it would jump to it in the same file (even if there would be one in whole index it would probably take you directly to it even in other file)

one my wonder why index jar files ;)

--
L


Thanks in advance

Shailey

------------------------------------------------------------------------

NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.




_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org  <mailto:opengrok-discuss@opensolaris.org>
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.


_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss

Reply via email to