如何通过 FTP 与 Eclipse RSE 同步文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3947444/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:40:42  来源:igfitidea点击:

How to synchronize files over FTP with Eclipse RSE?

eclipseftp

提问by chrismarx

I installed Helios, which has the latest version of the RSE package, and I could copy files from the remote server just fine, but I don't seem to be able to use the "Review/Synchronize" option. I select the folder on the remote directory, specify the "Into folder" of the local directory, hit Finish, and nothing ever gets synced. Thoughts?

我安装了 Helios,它具有最新版本的 RSE 包,我可以很好地从远程服务器复制文件,但我似乎无法使用“查看/同步”选项。我选择远程目录上的文件夹,指定本地目录的“进入文件夹”,点击完成,没有任何东西被同步。想法?

回答by Charles

You have an explication in this tutorial : https://bugs.eclipse.org/bugs/attachment.cgi?id=110113

您在本教程中有一个解释:https: //bugs.eclipse.org/bugs/attachment.cgi?id =110113

I copy-paste the content:

我复制粘贴内容:

How to install:

如何安装:

  1. Click Help > Software Updates
  2. Click Add Sitebutton, then Add Sitedialog pops up.

    In the dialog, input http://eclipse-incub.sourceforge.net/updates-soc/rse-sync/into the Locationfield and press OK.

  3. Check the box of the site you just created and click Installbutton.
  1. 点击 Help > Software Updates
  2. 单击Add Site按钮,然后Add Site弹出对话框。

    在对话框中,输入http://eclipse-incub.sourceforge.net/updates-soc/rse-sync/Location字段,然后按OK

  3. 选中您刚刚创建的站点的框,然后单击Install按钮。

How to run Preparation:

如何运行准备:

It's necessary to create connection with remote host in RSE, if you have not had ssh connection in RSE yet.

如果您还没有在 RSE 中建立 ssh 连接,则有必要在 RSE 中创建与远程主机的连接。

  1. Window > Open Perspective > Remote System Explorer
  2. In Remote Systems view, click the leftmost icon in the tool bar and New Connectiondialog pops up.
  3. In the dialog, select the SSH Onlyas a connection type and click Next.
  4. Fill the blanks to meet your environment and Finish. Now ssh connection is created.
  1. Window > Open Perspective > Remote System Explorer
  2. 在远程系统视图中,单击工具栏中最左边的图标,New Connection弹出对话框。
  3. 在对话框中,选择SSH Only为连接类型,然后单击Next
  4. 填写空白以符合您的环境和Finish. 现在 ssh 连接已创建。

Initial synchronize:

初始同步:

For initial synchronize, you can "import" from remote resource to local project or "export" from local project to remote folder.

对于初始同步,您可以从远程资源“导入”到本地项目或从本地项目“导出”到远程文件夹。

<<Import:>>

<<进口:>>

  1. Right-click the arbitrary folder you want to import from in RSE and click Import To Project...(Sync)on the pop-up menu.
  2. The Import Wizardpops up. The remote folder is already selected but you can change by clicking top-right Browsebutton.
  3. You need to select the destination local project to import. Input the destination project name in the Into folderfield or select with the Browsebutton. The destination project must exist in local side.
  4. Check operations.

    Review/Synchronize: Manual import. You can import resources you want by yourself in Team Synchronize Perspective.

    Overwrite existing resources without warning: Currently this option is ignored. Always no warning.

    Save the settings..: Save the setting for re-synchronization. If check this box, you need to decide where setting file is saved in the local workspace.

    Re-synchronization cannot run without this setting file. The extension of the setting file is rimpfd.

  5. Click Finish.

    Unless you check the box of Review/Synchronize, the import operation done automatically.

    Otherwise, you are asked to switch perspective to Team Synchronize.

    5-a. In Team Synchronize view, you can see the marked resources you selected. You can "Get" to import resources.

  1. 在 RSE 中右键单击要从中导入的任意文件夹,然后单击Import To Project...(Sync)弹出菜单。
  2. Import Wizard弹出。远程文件夹已被选中,但您可以通过单击右上角的Browse按钮进行更改。
  3. 您需要选择要导入的目标本地项目。在Into folder字段中输入目标项目名称或使用Browse按钮选择。目标项目必须存在于本地。
  4. 检查操作。

    Review/Synchronize: 手动导入。您可以在 Team Synchronize Perspective 中自行导入您想要的资源。

    Overwrite existing resources without warning: 目前这个选项被忽略。总是没有警告。

    Save the settings..:保存设置以重新同步。如果选中此框,您需要决定设置文件在本地工作区中的保存位置。

    如果没有此设置文件,则无法运行重新同步。设置文件的扩展名是rimpfd.

  5. 单击完成。

    除非您选中 框,否则Review/Synchronize导入操作会自动完成。

    否则,系统会要求您将视角切换到团队同步。

    5-a。在团队同步视图中,您可以看到您选择的标记资源。您可以“获取”导入资源。

<<Export:>>

<<出口:>>

  1. Right-click the arbitrary folder you want to export to in RSE and click Export From Project...(Sync)on the pop-up menu.
  2. The Export Wizardpops up. The remote folder is already selected but you can change by clicking Browsebutton.
  3. You need to select the resources to export.
  4. Check operations.

    Review/Synchronize: Manual export. You can export resources you want by yourself in Team Synchronize Perspective.

    Overwrite existing resources without warning: Currently this option is ignored. Always no warning.

    Save the settings..: Save the setting for re-synchronization. If check this box, you need to decide where setting file is saved in the local workspace.

    Re-synchronization cannot run without this setting file.The extension of the setting file is rexpfd

  5. Click Finish.

    Unless you check the box of Review/Synchronize, the export operation done automatically.

    Otherwise, you are asked to switch perspective to Team Synchronize.

    5-a. In Team Synchronize view, you can see the marked resources you selected. You can "Put" to export resources.

  1. 在 RSE 中右键单击要导出到的任意文件夹,然后单击Export From Project...(Sync)弹出菜单。
  2. Export Wizard弹出。远程文件夹已被选中,但您可以通过单击Browse按钮进行更改。
  3. 您需要选择要导出的资源。
  4. 检查操作。

    Review/Synchronize: 手动导出。您可以在 Team Synchronize Perspective 中自行导出您想要的资源。

    Overwrite existing resources without warning: 目前这个选项被忽略。总是没有警告。

    Save the settings..:保存设置以重新同步。如果选中此框,您需要决定设置文件在本地工作区中的保存位置。

    没有这个设置文件,重新同步不能运行。设置文件的扩展名是 rexpfd

  5. 单击完成。

    除非您选中 框,否则Review/Synchronize导出操作会自动完成。

    否则,系统会要求您将视角切换到团队同步。

    5-a。在团队同步视图中,您可以看到您选择的标记资源。您可以“放置”导出资源。

Re-Synchronize:

重新同步:

  1. Right-click the setting file which has extension of rimpfdor rexpfdin Package Explorer.

    1-a: If you select rimpfd, click the Import from Remote File System (Sync)

    1-b: If you select rexpfd, click the Export to Remote File System (Sync)

  2. Then you are asked to switch perspective to Team Synchronize as the same to manually initial synchronization.
  3. In the Team Synchronize view, you can "Get" the remote change or "Put" the local change.
  1. 在 Package Explorer 中右键单击扩展名为rimpfd或的设置文件rexpfd

    1-a:如果选择rimpfd,请单击Import from Remote File System (Sync)

    1-b:如果选择rexpfd,请单击Export to Remote File System (Sync)

  2. 然后要求您将透视图切换到团队同步,就像手动初始同步一样。
  3. 在团队同步视图中,您可以“获取”远程更改或“放置”本地更改。

回答by user1972814

Just for the record.

只是为了记录。

It is no longer necessary to install any additional plugins (the linked rse-sync) since this functionality has been long implemented into the core of RSE.

不再需要安装任何额外的插件(链接的 rse-sync),因为此功能早已实现到 RSE 的核心中。

The instructions posted are still valid, only the Menu entries have been renamed from Import from Remote File System (Sync)and Export to Remote File System (Sync)to Export to Project...and Import from Project...

发布的说明仍然有效,只有菜单条目已从从远程文件系统 (Sync) 导入导出到远程文件系统 (Sync)重命名为导出到项目...从项目导入...

Cheers

干杯

回答by Yosh613

in indigo it fails if using jre7 you need jre6.

在 indigo 中,如果使用 jre7,则需要 jre6,它会失败。

I found best way was to modify eclispe.ini

我发现最好的方法是修改 eclispe.ini

just add

只需添加

-vm C:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe

or where ever the jre6 is !

或者 jre6 在哪里!

回答by HiB

At Re-Synchronization phase I didnt get the 2nd, and 3rd step. So I dont know where can I see this GET, and PUT method, but only doing the 1st step I could update to remote. I could see FTP commands in console durring sync. By the way I used this site to get the update site for RSE:
http://download.eclipse.org/tm/downloads/index.php
Then 2 packages needs to be downloaded: RSE End-User Runtime, and RSE FTP service

在重新同步阶段,我没有进行第二步和第三步。所以我不知道在哪里可以看到这个 GET 和 PUT 方法,但只做第一步我就可以更新到远程。在同步期间,我可以在控制台中看到 FTP 命令。顺便说一下,我使用这个站点来获取 RSE 的更新站点:
http: //download.eclipse.org/tm/downloads/index.php
然后需要下载 2 个包:RSE End-User Runtime 和 RSE FTP 服务