如何将 SVN 项目作为 Java 项目检出到 Eclipse 中?

发布于 2024-07-10 21:21:11 字数 199 浏览 6 评论 0原文

我试图使用 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 技术交流群。

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

发布评论

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

评论(5

丑疤怪 2024-07-17 21:21:11

步骤如下:

  • 安装 subclipse 插件(在 eclipse 中提供 svn 连接)并连接到存储库。 说明在这里:
    http://subclipse.tigris.org/install.html
  • 转到文件 -> 新建 - >其他->在 SVN 类别下,选择从 SVN 检出项目。
  • 选择项目的根文件夹,然后选择 checkout 作为工作区中的项目。

您似乎正在将 .project 文件签入源存储库。 我建议不要签入 .project 文件,以便用户可以拥有自己的文件版本。 另外,如果您使用 subclipse 插件,它允许您签出源文件夹并将其配置为 java 项目。 此过程为您创建正确的.project(具有java性质),

Here are the steps:

  • Install the subclipse plugin (provides svn connectivity in eclipse) and connect to the repository. Instructions here:
    http://subclipse.tigris.org/install.html
  • Go to File->New->Other->Under the SVN category, select Checkout Projects from SVN.
  • Select your project's root folder and select checkout as a project in the workspace.

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),

九八野马 2024-07-17 21:21:11

如果它没有作为 Java 项目签入,您可以添加 java 性质,如下所示 这里

If it wasn't checked in as a Java Project, you can add the java nature as shown here.

风追烟花雨 2024-07-17 21:21:11

我也必须添加 .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.

上课铃就是安魂曲 2024-07-17 21:21:11

如果它们被检查为插件项目,那么您只需要检查它们即可。 但不要选择“主干”(例如)来加快速度。 您必须选择要签出的所有项目并继续。 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.

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