Eclipse:在classpath上查找资源 [英] Eclipse: find resource on classpath
问题描述
我知道我可以使用任何一种资源文件名(或模式)
$ b
导航>打开类型
(将扫描类的类路径)或
导航>打开资源
,
它将搜索任何资源类型,但只能在我的项目文件夹中。有没有办法实现一个组合ob,在资源搜索(类似 *。xsd
)搜索类路径上的所有jar?
classpath helper plugin 至少是起点。看起来它没有提供搜索,但似乎列出了类路径中的所有条目。
我不知道你是否适合并愿意修改它,但它应该提供基本的代码,在顶部添加一些基于文件的搜索。
Is there a way in eclipse to search the classpath for arbitrary resource file names (or patterns)?
I know I can use either
Navigate > Open Type
(which will scan the classpath for classes) or
Navigate > Open Resource
,
which will search for any resource type, but only in my project folders. Is there any way to achieve a combination ob both, to do a resource search (something like *.xsd
) that searches all jars on the classpath?
The classpath helper plugin is at least a starting point. Looks like it doesn't provide a search but it seems to list all entries on the classpath.
I don't know if your fit and willing to modify it but it should provide the basic code to add some filename-based search on top.
这篇关于Eclipse:在classpath上查找资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!