简体   繁体   English

如果我用乌龟svn结帐,该如何从svn中解释该项目?

[英]How to explain eclipse that project from svn if I checkout it by tortoise svn?

I checkout my project using tortoise svn. 我使用svn结帐我的项目。

I want to import it to eclipse and eclipse svn plugin must to work. 我想将其导入eclipse,并且eclipse svn插件必须正常工作。

If I make java import - eclipse doesn't understand that it is project from svn. 如果我进行java导入-eclipse无法理解它是svn中的项目。

svn plugin is installed. svn插件已安装。

UPDATE UPDATE

I try Import-->Team-->Team Projcect Set 我尝试导入->团队->团队项目集

在此处输入图片说明

This thing ask me select FILE . 这件事让我选择FILE What Do I need to select? 我需要选择什么?

Which svn plusing are you using and eclipse version ? 您正在使用哪个svn plusing和eclipse版本?

I am using Eclipse Kepler and SVN Plugin as Subversive Team Provider. 我正在使用Eclipse Kepler和SVN插件作为颠覆性团队提供者。 It is working fine for me. 对我来说很好。 I have imported project as Java project. 我已经将项目导入为Java项目。

Eclipse will understand your project if and only if it contains .classpath file and .project file in project. 当且仅当Eclipse在项目中包含.classpath文件和.project文件时,Eclipse才会理解您的项目。 If you are using Maven, then first run clean compile and eclipse:eclipse commands, then import in eclipse. 如果您使用的是Maven,请先运行clean compileeclipse:eclipse命令,然后导入eclipse。

Use subversion. 使用颠覆。 Sometimes, it may require to install newer connector. 有时,可能需要安装更新的连接器。 Refer to this question 参考这个问题

If you have installed svn plugin in eclipse. 如果您在Eclipse中安装了svn插件。 You can also checkout project from eclipse. 您还可以从eclipse检出项目。 Make .psf file pointing to your repository and then make import. 使.psf文件指向您的存储库,然后进行导入。

Import-->Team-->Team Projcect Set

Open notepad paste below content(correct with your path) and save as .psf 打开记事本,粘贴在内容下方(使用路径正确),然后另存为.psf

<?xml version="1.0" encoding="UTF-8"?>
<psf version="2.0">
<provider id="org.tigris.subversion.subclipse.core.svnnature">
<project reference="0.9.3,URL to folder you want to checkout,folder name"/>
<project reference="0.9.3,URL to another folder you want to checkout,folder name 2"/>
</provider>
</psf>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM