2012-10-05 16 views
1

我有一个Eclipse远程保存的问题。如何远程保存在像Netbeans的Eclipse PDT中?

我一直在使用Netbeans 2年,我的项目存储在本地和远程测试服务器中。

当我在Netbeans中打开,更改和保存文件时,它还将文件保存(覆盖)到远程位置。 Netbeans中的

结构进行说明:从SVN Netbeans Remote Sync

的另一件事是checkouted代码是在我的地方,我只能从当地的承诺,永远不会从远程,我的意思是我只使用远程服务器用于测试目的。

我决定切换Eclipse是因为其他原因,但我无法成功准备类似的开发环境。

我试过远程资源管理器,它很复杂,我无法找到解决我的问题的方法。有一些使用Ant的暗示,我认为,这可能是一件容易的事情.Ant对我来说更重要。

我愿意接受任何建议,准备一个类似于我在Netbeans案例中描述的开发环境。

问候......

+0

这是回答您的问题吗? http://stackoverflow.com/a/1526282/620537 – gamerson

+0

我的答案可以帮助你? –

回答

8

至NetBeans页的链接只显示本机连接的设置。
远程连接需要远程计算机上的ftp服务器。

首先我将显示本地主机连接的Eclipse设置。

文件 - 新建 - PHP项目。

项目名称:SwitchLoc

点击

enter image description here

文件夹 - 如在图像下

enter image description here

设置。点击浏览

enter image description here

创建一个新的连接。

设置如图所示。点击下一页

enter image description here

只看到发生了什么事情:单击下一步或完成

enter image description here

返回连接选择刚刚创建的之一。

enter image description here

选择您的www根目录下的文件夹。

enter image description here

创建一个新的PHP文件
右键单击开关新 - PHP文件 - echo.php

enter image description here

上echo.php Richt点击 - - 属性 - 运行/调试设置 - 新增功能 - PHP网页

设置如图所示。点击浏览

enter image description here

取消选中自动生成,改变URL

enter image description here

切换到标签常见
设置如图所示的图像。点击OK

enter image description here

开始调试
选择switch-local

enter image description here

输出

enter image description here

下一个:使用FTP和远程调试创建到Remote Server的远程连接。

请看续集。