如何通过 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
How to synchronize files over FTP with Eclipse RSE?
提问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:
如何安装:
- Click
Help > Software Updates
Click
Add Site
button, thenAdd Site
dialog pops up.In the dialog, input
http://eclipse-incub.sourceforge.net/updates-soc/rse-sync/
into theLocation
field and pressOK
.- Check the box of the site you just created and click
Install
button.
- 点击
Help > Software Updates
单击
Add Site
按钮,然后Add Site
弹出对话框。在对话框中,输入
http://eclipse-incub.sourceforge.net/updates-soc/rse-sync/
到Location
字段,然后按OK
。- 选中您刚刚创建的站点的框,然后单击
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 中创建与远程主机的连接。
Window > Open Perspective > Remote System Explorer
- In Remote Systems view, click the leftmost icon in the tool bar and
New Connection
dialog pops up. - In the dialog, select the
SSH Only
as a connection type and clickNext
. - Fill the blanks to meet your environment and
Finish
. Now ssh connection is created.
Window > Open Perspective > Remote System Explorer
- 在远程系统视图中,单击工具栏中最左边的图标,
New Connection
弹出对话框。 - 在对话框中,选择
SSH Only
为连接类型,然后单击Next
。 - 填写空白以符合您的环境和
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:>>
<<进口:>>
- Right-click the arbitrary folder you want to import from in RSE and click
Import To Project...(Sync)
on the pop-up menu. - The
Import Wizard
pops up. The remote folder is already selected but you can change by clicking top-rightBrowse
button. - You need to select the destination local project to import. Input the destination project name in the
Into folder
field or select with theBrowse
button. The destination project must exist in local side. 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
.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.
- 在 RSE 中右键单击要从中导入的任意文件夹,然后单击
Import To Project...(Sync)
弹出菜单。 - 在
Import Wizard
弹出。远程文件夹已被选中,但您可以通过单击右上角的Browse
按钮进行更改。 - 您需要选择要导入的目标本地项目。在
Into folder
字段中输入目标项目名称或使用Browse
按钮选择。目标项目必须存在于本地。 检查操作。
Review/Synchronize
: 手动导入。您可以在 Team Synchronize Perspective 中自行导入您想要的资源。Overwrite existing resources without warning
: 目前这个选项被忽略。总是没有警告。Save the settings..
:保存设置以重新同步。如果选中此框,您需要决定设置文件在本地工作区中的保存位置。如果没有此设置文件,则无法运行重新同步。设置文件的扩展名是
rimpfd
.单击完成。
除非您选中 框,否则
Review/Synchronize
导入操作会自动完成。否则,系统会要求您将视角切换到团队同步。
5-a。在团队同步视图中,您可以看到您选择的标记资源。您可以“获取”导入资源。
<<Export:>>
<<出口:>>
- Right-click the arbitrary folder you want to export to in RSE and click
Export From Project...(Sync)
on the pop-up menu. - The
Export Wizard
pops up. The remote folder is already selected but you can change by clickingBrowse
button. - You need to select the resources to export.
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
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.
- 在 RSE 中右键单击要导出到的任意文件夹,然后单击
Export From Project...(Sync)
弹出菜单。 - 在
Export Wizard
弹出。远程文件夹已被选中,但您可以通过单击Browse
按钮进行更改。 - 您需要选择要导出的资源。
检查操作。
Review/Synchronize
: 手动导出。您可以在 Team Synchronize Perspective 中自行导出您想要的资源。Overwrite existing resources without warning
: 目前这个选项被忽略。总是没有警告。Save the settings..
:保存设置以重新同步。如果选中此框,您需要决定设置文件在本地工作区中的保存位置。没有这个设置文件,重新同步不能运行。设置文件的扩展名是
rexpfd
单击完成。
除非您选中 框,否则
Review/Synchronize
导出操作会自动完成。否则,系统会要求您将视角切换到团队同步。
5-a。在团队同步视图中,您可以看到您选择的标记资源。您可以“放置”导出资源。
Re-Synchronize:
重新同步:
Right-click the setting file which has extension of
rimpfd
orrexpfd
in Package Explorer.1-a: If you select
rimpfd
, click theImport from Remote File System (Sync)
1-b: If you select
rexpfd
, click theExport to Remote File System (Sync)
- Then you are asked to switch perspective to Team Synchronize as the same to manually initial synchronization.
- In the Team Synchronize view, you can "Get" the remote change or "Put" the local change.
在 Package Explorer 中右键单击扩展名为
rimpfd
或的设置文件rexpfd
。1-a:如果选择
rimpfd
,请单击Import from Remote File System (Sync)
1-b:如果选择
rexpfd
,请单击Export to Remote File System (Sync)
- 然后要求您将透视图切换到团队同步,就像手动初始同步一样。
- 在团队同步视图中,您可以“获取”远程更改或“放置”本地更改。
回答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 服务