Netbeans 的新版本刚刚发布。 我可以做些什么来避免再次手动寻找我的插件吗?

发布于 2024-07-25 07:27:30 字数 355 浏览 9 评论 0原文

6.7 已经发布了,尽管上网查找一些 .nbm-s 并复制一些更新中心 URL-s 并不是最麻烦的事……但它仍然是一件麻烦事。

有什么建议吗? 是否有一个隐藏目录可以复制到新的 6.7 安装中?

编辑:对于像我这样同时使用两者的人,我也在 E​​clipse-land 中问过这个问题: 新版本的 Eclipse 刚刚发布。 我可以做些什么来避免再次手动寻找我的插件吗?

6.7 is out, and although going to the web and finding some .nbm-s and copying over a few update center URL-s isn't the biggest chore...it's still a chore.

Any tips for this? Is there maybe a hidden directory somewhere that I can just copy into the new 6.7 install?

Edit: for people like me who use both, I've asked this question in Eclipse-land as well: A new version of Eclipse just came out. Is there anything I can do to avoid having to manually hunt down my plugins again?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

ι不睡觉的鱼゛ 2024-08-01 07:27:30

Netbeans 6.7 确实具有此功能:将插件从以前的版本导入到New One,但似乎有点害羞。

当新版本的 Netbeans 启动时,系统会询问您是否要从以前的版本导入设置。

单击“是”,Netbeans 将在后台查找兼容的插件。

请注意,系统不会再次提示您。相反,几分钟后,右下角应出现一个图标:

http://lh6.ggpht.com/_BEizchvf9zs/Sk83UjMwZBI/AAAAAAAAABQ/hlX5DT-k0fg/s800/netbeans-screen射击.png

不完全是在你的脸上,对吧?

单击它,您将获得安装任何兼容插件的选项。

另请注意,如果您在任何时候退出此过程,则该图标将会消失 - 重新启动 Netbeans 会将其恢复(尽管您可能需要等待它进行另一次后台扫描)。

最后,您还可以触发此过程(并选择任意userdir位置导入)使用命令行选项 -J-Dplugin.manager.import.from =/path/to/userdir

例如在 Vista 中:

C:\Users\JDoe>"c:\Program Files (x86)\NetBeans 6.7\bin\netbeans" -J-Dplugin.manager.import.from="C:\Users\JDoe\.netbeans\6.5"

或在 Ubuntu 中:

/bin/sh ~/netbeans-6.7/bin/netbeans -J-Dplugin.manager.import.from="/homes/YOURHOMEDIR/.netbeans/6.5"

如果您想从 beta 安装导入,这可能很有用。

Netbeans 6.7 does has this feature: Importing Plugins From Previous Release Into The New One, but it seems a bit shy about it.

When the new version of Netbeans is launched you'll be asked if you want to import settings from a previous version.

Click yes and Netbeans will look for compatible plugins in the background.

Note that you won't be prompted again. Instead, after a few minutes, an icon should appear in the bottom-right corner:

http://lh6.ggpht.com/_BEizchvf9zs/Sk83UjMwZBI/AAAAAAAAABQ/hlX5DT-k0fg/s800/netbeans-screenshot.png

Not exactly in your face, right?

Click on that and you'll get the option of installing any compatible plugins.

Also note that if you exit this process at any point then the icon will disappear - restarting Netbeans will bring it back (though you might have to wait for it to do another background scan).

Finally, you can also trigger this process (and choose an arbitrary userdir location to import from) with the command line option -J-Dplugin.manager.import.from=/path/to/userdir

e.g. in Vista:

C:\Users\JDoe>"c:\Program Files (x86)\NetBeans 6.7\bin\netbeans" -J-Dplugin.manager.import.from="C:\Users\JDoe\.netbeans\6.5"

or in Ubuntu:

/bin/sh ~/netbeans-6.7/bin/netbeans -J-Dplugin.manager.import.from="/homes/YOURHOMEDIR/.netbeans/6.5"

This might be useful if you want to import from a beta install.

∞梦里开花 2024-08-01 07:27:30

如果 Netbeans 中有一个像 Firefox 这样的插件收集器插件就好了:P

If only there was a plugin collector plugin like Firefox in Netbeans :P

司马昭之心 2024-08-01 07:27:30

子目录中 安装目录>/< nb version >/,您将看到您安装的模块的 JAR。 但是,那里显然没有元数据信息。 而且,我认为仅复制 JAR 并不会有所帮助。 即使确实如此,也有一些事情:当有最新版本可用时,您将无法更新模块,并且旧模块可能根本不与新版本兼容。

因此,即使重复工作,最好的事情是从插件管理器安装它们。

PS:您可以考虑在“nbusers”邮件列表上询问这个问题。

In the 'modules' sub-directory of the < install_dir >/< nb version >/, you will see the JARs of the modules you installed. But, there is no metadata information apparently there. And, I don't think only copying the JARs will help. Even if it does, couple of things: you will not be able to update the modules, when there are recent versions available and the old modules may simply not be compatible with the new release.

So, the best thing, even though repeated work, is to install them from the Plugin manager.

PS: You may consider asking this on the 'nbusers' mailing list.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文