In a Netbeans project I have a bundle with about 3000 entries: most of them are unused or duplicated. I can clean it by hand but it will take an year or two...
在Netbeans项目中,我有一个包含大约3000个条目的包:其中大多数未使用或重复。我可以手工清洁它,但需要一两年......
I searched for a solution but I found only this article about bundlizer, proposed in different sites. Unfortunately all links are broken so I cannot download that software, besides it is old and it is not maintained. There is also a long linux command which shuold clean the bundle, but definitely it is not easy to understand...
我搜索了一个解决方案,但我发现只有这篇关于在不同网站上提出的bundlizer的文章。不幸的是,所有链接都被破坏了,所以我无法下载该软件,除了它已经过时而且没有维护。还有一个很长的linux命令可以清理捆绑包,但绝对不容易理解......
Can you suggest an alternative way ?
你能建议另一种方式吗?
1 个解决方案
#1
Sorry, but this code was abandoned and dropped when NetBeans migrated their repository to Mercurial.
抱歉,当NetBeans将其存储库迁移到Mercurial时,此代码被放弃并被删除。
That long Linux pipe can help you identify some keys from you bundle. The idea is to parse keys from bundle file and then 'grep' all your sources to check if it is used there (preferably as String literal - surrounded by quotes). You will have to check the output for false signals. And some keys can be spotted in commented blocks but at least it is an approximation.
那个漫长的Linux管道可以帮助您识别捆绑中的一些密钥。我们的想法是解析bundle文件中的键,然后'grep'所有源代码来检查它是否在那里使用(最好是字符串文字 - 用引号括起来)。您必须检查输出是否有错误信号。并且可以在注释块中发现一些键,但至少它是近似值。
#1
Sorry, but this code was abandoned and dropped when NetBeans migrated their repository to Mercurial.
抱歉,当NetBeans将其存储库迁移到Mercurial时,此代码被放弃并被删除。
That long Linux pipe can help you identify some keys from you bundle. The idea is to parse keys from bundle file and then 'grep' all your sources to check if it is used there (preferably as String literal - surrounded by quotes). You will have to check the output for false signals. And some keys can be spotted in commented blocks but at least it is an approximation.
那个漫长的Linux管道可以帮助您识别捆绑中的一些密钥。我们的想法是解析bundle文件中的键,然后'grep'所有源代码来检查它是否在那里使用(最好是字符串文字 - 用引号括起来)。您必须检查输出是否有错误信号。并且可以在注释块中发现一些键,但至少它是近似值。