How do I add FTP support to Eclipse?
Asked Answered
M

6

93

I'm using Eclipse PHP Development Tools. What would be the easiest way to access a file or maybe create a remote project trough FTP and maybe SSH and SFTP?.

Misty answered 18/9, 2008 at 19:7 Comment(2)
Nice question. I was looking a long time for this but I always just went with Dreamweaver in the end.Storey
Just a word of warning about Aptana - I downloaded it because of this question. It's a vast plug-in that does a lot more than just ftp-type things. As such it adds things all over your Eclipse installation - including advertisements for Adobe. There also seems to be no documented way of removing it. For me, this was a disaster that totally messed up my Eclipse configuration. So be warned - know what you're getting into with Aptana.Homoiousian
M
227

Eclipse natively supports FTP and SSH. Aptana is not necessary.

Native FTP and SSH support in Eclipse is in the "Remote System Explorer End-User Runtime" Plugin.

Install it through Eclipse itself. These instructions may vary slightly with your version of Eclipse:

  1. Go to 'Help' -> 'Install New Software' (in older Eclipses, this is called something a bit different)
  2. In the 'Work with:' drop-down, select your version's plugin release site. Example: for Kepler, this is
    Kepler - http://download.eclipse.org/releases/kepler
  3. In the filter field, type 'remote'.
  4. Check the box next to 'Remote System Explorer End-User Runtime'
  5. Click 'Next', and accept the terms. It should now download and install.
  6. After install, Eclipse may want to restart.

Using it, in Eclipse:

  1. Window -> Open Perspective -> (perhaps select 'Other') -> Remote System Explorer
  2. File -> New -> Other -> Remote System Explorer (folder) -> Connection (or type Connection into the filter field)
  3. Choose FTP from the 'Select Remote System Type' panel.
  4. Fill in your FTP host info in the next panel (username and password come later).
  5. In the Remote Systems panel, right-click the hostname and click 'connect'.
  6. Enter username + password and you're good!
  7. Well, not exactly 'good'. The RSE system is fairly unusual, but you're connected.
  8. And you're one smart cookie! You'll figure out the rest.

Edit: To change the default port, follow the instructions on this page: http://ikool.wordpress.com/2008/07/25/tips-to-access-ftpssh-on-different-ports-using-eclipse-rse/

Maida answered 4/8, 2011 at 15:22 Comment(8)
This is Awesome, so nice and so straightforward. Thanks @RendallTrenchant
RSE's FTP support isn't the same luxury as Aptana used to have, it bothers me that customizing eclipse always has to be this demotivating.Hamachi
Try Netbeans IDE. More straightfoward than eclipse. It synchronizes everything and you still benefiting from the PHP validators.Brayton
Can the RSE be used to do this?Monthly
Are there upload/download hotkeys or toolbar icons, so I can upload/download the file that's open in the edit panel?Continuate
I placed a "Remote Systems"-view into my main perspective to improve usability. But I must say: Netbeans wins on this topic!Hudgens
In Eclipse/Oxygen I selected Work with --All Available Sites--. Then in the search results, I went to General Purpose Tools; and under that menu was Remote System Explorer End-User Runtime.Triaxial
this makes a separate view and saves files to a temp directory. How do I automatically upload existing files when I save?Submaxillary
S
45

Install Aptana plugin to your Eclipse installation.

It has built-in FTP support, and it works excellently.

You can:

  • Edit files directly from the FTP server
  • Perform file/folder management (copy, delete, move, rename, etc.)
  • Upload/download files to/from FTP server
  • Synchronize local files with FTP server. You can make several profiles (actually projects) for this so you won't have to reinput over and over again.

As a matter of fact the FTP support is so good I'm using Aptana (or Eclipse + Aptana) now for all my FTP needs. Plus I get syntax highlighting/whatever coding support there is. Granted, Eclipse is not the speediest app to launch, but it doesn't bug me so much.

Schlueter answered 18/9, 2008 at 19:7 Comment(4)
for those who read this post, read the warning post too - Aptana will mess up your Eclipse (I know what it means to have your workspace ruined and I don't recommend that ;))Hooghly
Aptana looks pretty cool. I'm going to download the standalone version and give it a try... thanksLizalizabeth
Not really an FTP plug-in, more like a web developing plugin with FRP feature. @Rendall answer suited me better!Wagram
Aptana gives me an access denied message when trying to download their product. Perhaps it stands to show the lack of product quality, too?Lozano
D
36

have you checked RSE (Remote System Explorer) ? I think it's pretty close to what you want to achieve.

a blog post about it, with screenshots

Degeneration answered 18/9, 2008 at 19:28 Comment(1)
The best thing is that when you re-open eclipse, it takes you right to the directory that you were working in when you last closed. For UTF-8, right click on any file or folder and select properties. In the info tab, change file encoding to "UTF-8". It gets applied to all files and folders for that connection.Earflap
Q
3

I'm not sure if this works for you, but when I do small solo PHP projects with Eclipse, the first thing I set up is an Ant script for deploying the project to a remote testing environment. I code away locally, and whenever I want to test it, I just hit the shortcut which updates the remote site.

Eclipse has good Ant support out of the box, and the scripts aren't hard to make.

Quixote answered 18/9, 2008 at 19:30 Comment(1)
Even for solo projects I usually use Subversion, this is just an odd case. I guess that deploying with ant is very similar than subversion.Misty
S
3

SFTP Plug-in: http://www.jcraft.com/eclipse-sftp/ :)

Sabotage answered 17/2, 2010 at 23:10 Comment(0)
D
1

As none of the other solutions mentioned satisfied me, I wrote a script that uses WinSCP to sync local directories in a project to a FTP(S)/SFTP/SCP Server when eclipse's autobuild feature is triggered. Obviously, this is a Windows-only solution.

Maybe someone finds this useful: http://rays-blog.de/2012/05/05/94/use-winscp-to-upload-files-using-eclipses-autobuild-feature/

Discourteous answered 5/5, 2012 at 16:36 Comment(1)
I fixed my website, the link should work again. No time to post anything else at the moment, sorry.Discourteous

© 2022 - 2024 — McMap. All rights reserved.