ajermakovics / eclipse-instasearch

Eclipse plug-in for fast code search
http://marketplace.eclipse.org/content/instasearch
Eclipse Public License 2.0
170 stars 48 forks source link

Indexing jar source attachments #35

Open ninjafrombox opened 11 years ago

ninjafrombox commented 11 years ago

It seems that not all text resources from jar source attachments are indexed. If some text resource is placed at java package it doesn't indexed.

I check searching content of xml files that are inside jar source attachments. I find out that search works only if that xml is placed out of java packages (i.e. in root of jar or in special directory like META-INF).

Is it possible to index all resources inside jar source attachments no matter where they are located?

ajermakovics commented 11 years ago

That shouldn't be too hard to implement. The indexer already indexes non .java files in root folders: https://github.com/ajermakovics/eclipse-instasearch/blob/master/instasearch/src/it/unibz/instasearch/indexing/WorkspaceIndexerJDT.java#L131

but does not look for other resources in packages.