Home » Language IDEs » Java Development Tools (JDT) » How to avoid search hits in JAR files?
How to avoid search hits in JAR files? [message #247689] |
Fri, 07 September 2007 23:36 |
Eclipse User |
|
|
|
Originally posted by: nospam.nospam.com
A framework I am developing deploys JARs which end up in dozens of
projects in my workspace,
and hence any searches I make have copious duplicate hits, for each copy
of the JARs. How
can I filter searches to exclude these? None of the supplied filter
options seem slightly
relevant, which all relate to the *code context* of the hit, rather than
its packaging.
Cheers,
Antranig.
|
|
|
Re: How to avoid search hits in JAR files? [message #247693 is a reply to message #247689] |
Sat, 08 September 2007 20:10 |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
Antranig Basman wrote:
>
> A framework I am developing deploys JARs which end up in dozens of
> projects in my workspace,
> and hence any searches I make have copious duplicate hits, for each copy
> of the JARs. How
> can I filter searches to exclude these? None of the supplied filter
> options seem slightly
> relevant, which all relate to the *code context* of the hit, rather than
> its packaging.
You can define a Working Set (or Working Sets) that only includes the
source that you want to search, then limit the scope of the search to
the Working Set(s).
Hope this helps,
Eric
|
|
|
Re: How to avoid search hits in JAR files? [message #247697 is a reply to message #247693] |
Sat, 08 September 2007 20:41 |
Eclipse User |
|
|
|
Originally posted by: nospam.nospam.com
On Sat, 08 Sep 2007 21:10:03 +0100, Eric Rizzo <eclipse5@rizzoweb.com>
wrote:
> Antranig Basman wrote:
>> A framework I am developing deploys JARs which end up in dozens of
>> projects in my workspace,
>> and hence any searches I make have copious duplicate hits, for each
>> copy of the JARs. How
>> can I filter searches to exclude these? None of the supplied filter
>> options seem slightly
>> relevant, which all relate to the *code context* of the hit, rather
>> than its packaging.
>
> You can define a Working Set (or Working Sets) that only includes the
> source that you want to search, then limit the scope of the search to
> the Working Set(s).
>
> Hope this helps,
> Eric
Cheers Eric -
Yes, I had considered working sets. The issue is, these JARs are
dependencies of projects that I *do* want searched, that is, I would
like the code directly within the projects to be marked as a
search target, but would like to exclude JARs within the same
project (really, a setting to exclude JARs from search across the entire
workspace would be ideal). Unless I use any option other than "group by
project", it is now extremely difficult to sort out the hits I need amongst
the dozens of "decoys".
Antranig.
|
|
|
Re: How to avoid search hits in JAR files? [message #247706 is a reply to message #247697] |
Sun, 09 September 2007 20:26 |
Eclipse User |
|
|
|
Originally posted by: eclipse5.rizzoweb.com
Antranig Basman wrote:
> On Sat, 08 Sep 2007 21:10:03 +0100, Eric Rizzo <eclipse5@rizzoweb.com>
> wrote:
>
>> Antranig Basman wrote:
>>> A framework I am developing deploys JARs which end up in dozens of
>>> projects in my workspace,
>>> and hence any searches I make have copious duplicate hits, for each
>>> copy of the JARs. How
>>> can I filter searches to exclude these? None of the supplied filter
>>> options seem slightly
>>> relevant, which all relate to the *code context* of the hit, rather
>>> than its packaging.
>>
>> You can define a Working Set (or Working Sets) that only includes the
>> source that you want to search, then limit the scope of the search to
>> the Working Set(s).
>>
>> Hope this helps,
>> Eric
>
> Cheers Eric -
> Yes, I had considered working sets. The issue is, these JARs are
> dependencies of projects that I *do* want searched, that is, I would
> like the code directly within the projects to be marked as a
> search target, but would like to exclude JARs within the same
> project
A Working Set should still work or you - just include the source
directories and exclude the JARs.
Eric
|
|
|
Re: How to avoid search hits in JAR files? [message #247710 is a reply to message #247706] |
Sun, 09 September 2007 21:54 |
Eclipse User |
|
|
|
Originally posted by: nospam.nospam.com
Ah - thanks Eric - I hadn't realised this was possible. It will be somewhat
tedious to draw up the set (for a workspace of >100 projects) without a
"select resources by type" option but I think it will save a good amount
of time in the long run.
Thanks for this suggestion,
Antranig.
On Sun, 09 Sep 2007 21:26:48 +0100, Eric Rizzo <eclipse5@rizzoweb.com>
wrote:
> Antranig Basman wrote:
>> On Sat, 08 Sep 2007 21:10:03 +0100, Eric Rizzo <eclipse5@rizzoweb.com>
>> wrote:
>>
>>> Antranig Basman wrote:
>>>> A framework I am developing deploys JARs which end up in dozens of
>>>> projects in my workspace,
>>>> and hence any searches I make have copious duplicate hits, for each
>>>> copy of the JARs. How
>>>> can I filter searches to exclude these? None of the supplied filter
>>>> options seem slightly
>>>> relevant, which all relate to the *code context* of the hit, rather
>>>> than its packaging.
>>>
>>> You can define a Working Set (or Working Sets) that only includes the
>>> source that you want to search, then limit the scope of the search to
>>> the Working Set(s).
>>>
>>> Hope this helps,
>>> Eric
>> Cheers Eric -
>> Yes, I had considered working sets. The issue is, these JARs are
>> dependencies of projects that I *do* want searched, that is, I would
>> like the code directly within the projects to be marked as a
>> search target, but would like to exclude JARs within the same
>> project
>
> A Working Set should still work or you - just include the source
> directories and exclude the JARs.
>
> Eric
|
|
| |
Goto Forum:
Current Time: Thu Sep 26 11:27:51 GMT 2024
Powered by FUDForum. Page generated in 0.03501 seconds
|