Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一个简单的工具,它可以生成所有使用的操作方法、值和绑定的目录。我正在处理一个大型 JSF/RichFaces 项目,但我丢失了对 bean 的使用链接的概述。因此,我需要一个工具(如果它是一个 Eclipse 插件会很好),它可以生成所有使用的 EL 表达式的简单列表。
外面有东西吗?
在包含代码的目录中运行以下 Unix/Linux 命令:
cat * | sed -e '/#{/!d' -e 's/#/\n#/g' -e 's/}/}\n/g' | sed '/#/!d' | sort | uniq
如果您使用的是 Windows,请安装 Cygwin 并使用它运行它。 目前仅适用于一个目录,但不应该太难使 cat 调用递归。