从 NetBeans 迁移到 Eclipse
我的公司想要迁移到 Eclipse,我想知道除了 Ant 构建之外还有哪些选项可以将我们的项目从 Netbeans 迁移到 Eclipse。
My company wants to migrate to Eclipse, I was wondering what options besides an Ant build are there to move our projects from Netbeans to Eclipse.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
太……太晚了……太晚了,但这很有效
http://www.coderanch.com/t/458555/vc/Export-Netbeans-Eclipse
我正在寻找自己的答案并看到了这个问题:)
引用:
Tooooo ... oooo .... oooo late to answer but this works
http://www.coderanch.com/t/458555/vc/Export-Netbeans-Eclipse
i was looking for an answer my self and saw this question :)
Quoting:
我发现了另一种更简单的方法,至少对我有用,因为我在导入 Ant 构建脚本时遇到了问题,因为缺少 javac。
假设您的 Netbeans 项目(src、build、dist 等)位于 D:/blah/
在 Eclipse 中,转到文件 -> 新建 -> Java 项目
取消选中“使用默认位置”,而是使用 Netbeans 项目所在的路径(D:/blah /)Eclipse 应该自动填充其他所有内容并链接到文件。
I found another easier way that worked for me at least since I had problems importing the Ant build script due to a missing javac.
Say you have your Netbeans project (src, build, dist etc) in D:/blah/
In Eclipse go to File->New->Java Project
Uncheck 'Use default location' and instead use the path where the Netbeans project is (D:/blah/) Eclipse should automatically populate everything else and link to the files as well.
我最近从 Netbeans“迁移”到 Eclipse,发现它非常简单。 之所以如此简单,是因为我们所有的项目都是独立于 IDE 的标准 ant 和 ivy 构建脚本,大多数现代 IDE 都可以理解。 这样,我们都可以使用我们喜欢的 IDE(是的 - emacs 和 vi)并且它们不存在“迁移”问题。
我指出这一点的原因是,如果还没有这样,我建议您在迁移时采取相同的路径。 只需创建一些标准的 ant(和 ivy)构建脚本即可。 Eclipse 知道如何吸收这些内容,并且将来不会出现迁移问题。
I have recently 'migrated' from Netbeans to Eclipse and found it amazingly easy. The reason it was easy though is that all of our projects are IDE independent standard ant and ivy build scripts that most modern IDE's can understand. This way, we all get to use the IDE we like (yes - emacs and vi too) and their are no 'migration' issues.
The reason that I am pointing that out is that, if it is not already that way, I would recommend that you take that same path on your migration. Just create some standard ant (and ivy) build scripts. Eclipse knows how to slurp those in and there will be no future migration issues.
根据我的个人经验,这很容易。 我正在将 java 桌面应用程序从 netbeans 迁移到 eclipse。 只需将我的项目复制到工作区中,在 eclipse 中创建项目作为新的 java 项目,然后将项目的相同名称放入 netbeans 中(使用您的工作区作为位置)。 它将识别项目结构(Eclipse Helios、Netbeans 6.8)
希望这有帮助。 我不知道如果你有其他类型的项目,事情会变得多么困难。
in MY PERSONAL experience, it was easy. I was migrating a java desktop app from netbeans to eclipse. Just copy my projects into the workspace, create the project in eclipse as a new java project and put the same name of the project in netbeans (use your workspace as location). It will recognize the project structure ( Eclipse Helios, Netbeans 6.8 )
Hope this helps. I don't know how hard it turns if you have another kind of project.
我刚刚将 Netbeans 7.0 JSF Web 项目迁移到 Eclipse。 这比我想象的要容易。
我所做的是:
Eclipse src 文件夹。 例如 netbeansproject/medman/src/java/com 到 eclipseSpace/medman/src/
瞧! 已经完成了。
您还可以查看此链接。 http://www.coderanch.com/t/458555/vc/Export -Netbeans-Eclipse
I just migrated a Netbeans 7.0 JSF web project to Eclipse. And it was easier than i would have imagined.
What i did was:
the Eclipse src folder. e.g netbeansproject/medman/src/java/com to eclipseSpace/medman/src/
And voila! it is done.
You can also check out this link. http://www.coderanch.com/t/458555/vc/Export-Netbeans-Eclipse
在我的公司,人们几乎使用 eclipse 或 Netbeans。 我自己使用它们来完成各种任务。 我们编写自己的 ant 脚本来构建和打包我们的源代码,因此人们使用什么 IDE 并不重要。 我建议您创建自己的 ant 脚本来构建源代码,这样您就不必依赖于 IDE 特定的构建脚本。
At my company people pretty much use either eclipse or Netbeans. I myself use both of them for various tasks. We write our own ant scripts to build and package our source so it does not matter what IDE a person uses. I would suggest that you create your own ant script to build your source, that way you won't have to depend on an IDE specific build script.