Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to avoid search hits in JAR files? [message #247731 is a reply to message #247689] Tue, 11 September 2007 12:21 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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.

Simply uncheck 'Application libraries' on th Java Search page of the
search dialog (Ctrl+H).

Dani

>
> Cheers,
> Antranig.
Previous Topic:JDT: Code cleanup, final keyword, cannot disable
Next Topic:applying a text template to all (existing) files
Goto Forum:
  


Current Time: Thu Apr 25 17:35:30 GMT 2024

Powered by FUDForum. Page generated in 0.03207 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top