如何将 SVN 项目作为 Java 项目检出到 Eclipse 中?
我试图使用 Eclipse 从 SVN 签出一个项目。 我尝试使用“Checkout As”将其变成“来自现有 Ant 脚本的 Java 项目”,但项目向导要求该文件已下载。 有没有办法将项目作为 Java 项目检出到 Eclipse 中,而不必先在其他地方下载它?
(我正在使用 Eclipse Ganymade 3.4.1 和 Subversive。)
I was trying to check out a project from SVN using Eclipse. I tried using "Checkout As" to make it into a "Java project from existing Ant script", but the project wizard requires the file to have already been downloaded. Is there a way to checkout the project into Eclipse as a Java project, without having to download it elsewhere first?
(I am using Eclipse Ganymade 3.4.1 with Subversive.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
步骤如下:
http://subclipse.tigris.org/install.html
您似乎正在将 .project 文件签入源存储库。 我建议不要签入 .project 文件,以便用户可以拥有自己的文件版本。 另外,如果您使用 subclipse 插件,它允许您签出源文件夹并将其配置为 java 项目。 此过程为您创建正确的.project(具有java性质),
Here are the steps:
http://subclipse.tigris.org/install.html
It seems you are checking the .project file into the source repository. I would suggest not checking in the .project file so users can have their own version of the file. Also, if you use the subclipse plugin it allows you to check out and configure a source folder as a java project. This process creates the correct .project for you(with the java nature),
如果它没有作为 Java 项目签入,您可以添加 java 性质,如下所示 这里。
If it wasn't checked in as a Java Project, you can add the java nature as shown here.
http://ajmoore.blogspot.com/2007/11 /svn-java-project-with-eclipse.html
http://ajmoore.blogspot.com/2007/11/svn-java-project-with-eclipse.html
我也必须添加 .classpath,形成一个 java 项目。
我创建了一个虚拟 java 项目,并在工作区中查找该虚拟 java 项目以了解需要什么。
我把这两个文件转移了。 profile 和 .claspath 到我的签出,并从我的 subversion 服务器断开源。
从那时起,它就从一个普通的旧项目变成了一个java项目。
I had to add the .classpath too, form a java project.
I made a dummy java project and looked in the workspace for this dummy java project to see what is required.
I transferred the two files. profile and .claspath to my checked out, and disconnected source from my subversion server.
From then on it turned to a java project from just a plain old project.
如果它们被检查为插件项目,那么您只需要检查它们即可。 但不要选择“主干”(例如)来加快速度。 您必须选择要签出的所有项目并继续。 Eclipse 将这样识别它们。
If the were checked as plugin-projects, than you just need to check them out. But do not select the "trunk"(for example) to speed it up. You must select all the projects you want to check out and proceed. Eclipse will than recognize them as such.