On Wed, Oct 9, 2013 at 12:14 PM, Eric Pyle <[email protected]> wrote: > Using Les' suggestion of brute force search, I did the following: > > grep -r "currentThread();" * > ../../Documents/currentThread.txt > > This gives me source code lines that reference currentThread(). Looking > through these, you can see that currentThread returns a Thread object, which > is sometimes an instance of Executor. From > core/src/main/java/hudson/model/Run.java: > > Thread t = Thread.currentThread(); > if (t instanceof Executor) { > Executor e = (Executor) t; > > If you know you want to find where an Executor comes from, you can search > for " Executor ". That returns matches in a number of files, including > Executor.java, which will also yield the code above. Not exactly a simple > look-up, but it does seem possible.
OpenGrok is a little more computer brute force and a lot more human-friendly. It does a cross reference and indexes that and the full text with lucene to give you a color-coded source browser (for multiple languages) with near-instant searches and automatic links to jump between definitions and references. http://opengrok.github.io/OpenGrok -- Les Mikesell [email protected] -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
