Yesterday, I discussed how to use FTP from with CFEclipse. Its fairly easy, however, one issue is that you are editing files directly on the remote server, not the best solution in most cases. A few people have asked if there is a way to synch a local CFEclipse (or any other) project with a remote server via FTP (similarto the way Dreamweaver FTP sites work). I am happy to tell you that, yes, Virginia, there is a way to synch files on a remote server via FTP. A lot of this information was passed along by Phil Nacelli.
The first step is to create a new CFCeclispe project, in this example I named my new project 'FTP_synch'.
Next, right-click on the project and select 'Import'.

In the window that pops up, choose 'Other --> FTP'

If this is the first time you are importing into this directory (which in this example, we are), select the 'Choose a new folder to be imported' option.

Next we will need to specify what FTP 'site' to connect to. You can choose a connection that already exists, or create a new one. In this example, there are no other connections, so we choose to create a new one.

After clicking 'Next', fill out your FTP server information.
On the next screen, we specify what FTP directory to which we will synch our project. If you want to synch the entire FTP root, select the site, as shown below. (Kudos to anyone who can identify the directory structure below)

After selecting the directory and clicking 'Next', Eclipse will go out and connect to your server and generate a list of files/directories. On the next screen, you choose which files/directories you wish to 'import' into your project. In this example, we are grabbing all the files, so you can just select the top item.

Click 'Finish' and you will see that the files from the remote server are being downloaded to your project. When it is completed, all the files you selected from the site will be on your local system.
Now, for the really cool stuff, you need to open the 'Synchronize' view. To do this click 'Windows --> Show View --> Other'. From the window that pops up, choose 'Team --> Synchronize'

You will now have the 'Synchronize' tab opened in CFEclispe perspective. I am not sure where it will be, but in my install, the tab appeared in the bottom panel of tabs. Inside this view, you should see something similar to the picture below.

This will tell you which files locally have been modified sine you last synchronized, or uploaded.
Make a change to one of your files in your project, and it will automatically appear in this panel. In the image below, I added a CF comment to /www/index.cfm. To compare the differences between your local, and the remote file, right click the file and select 'Open in Compare Editor'

One thing to be careful of is the 'synchronize' option on the context menu. it doesn't act like you might think. All it really does is check the server to see what files have changed. To move your changes over, you need to either choose 'Upload' or 'Override and Uplaod' (or 'Override and Download' if files on the server changed). This is what will move files back and forth from the remote FTP location.

Once you upload, or download the files, you will notice that they disappear from the Synchronize View. The cool thing is that this view only shows files that are out of synch with the server, or that have been modified locally.
I know of quite a few people who have not made the full leap to CFEclipse because it could not mimic the behavior of Dreamweaver FTP sites. This shows that you can mimic this behavior, and maybe now others will start using CFEclipse all the time.
If we could edit Contribute templates, and have the changes propagate to files created with those templates, in CFEclipse, I could actaully uninstall Dreamweaver.




29 comments
Great stuff. I could check it my self, but I'm lazy so I'll just ask you first: Do you know if this will work with SFTP?
http://www.aptana.com/download_all.php
I'm a noob to both.
@Peter and Andrew - I am not sure why you guys are not seeing the FTP option. This tutorial was created by following the steps in Eclipse 3.2 with CFEclipse 1.3.1.3 9but I don't really think the version of CFEclipse matters)
I remember trying to do this in Eclipse 3.1, but was unable to. Though, to be honest, its possible I was not following the steps correctly when attempting that.
/me grasps at straws
That's all I need to get Dreamweaver off my machine. ;)
When I create a new site, it shows the FTP server that I created, but when I try to expand I get no files to show up.
Is anyone else having this problem?
Wondering if you Apache guys are experiencing the same issue.
heres a few things ive learnt about eclipse FTP synch.
1. You need UNIX file listings turn on your FTP server if you use IIS
2. C:\workspace\.metadata\.plugins\org.eclipse.target\sites.xml is where the FTP connection info is stored.
theres a bug in 3.1 that means it doesnt store the password. the fix is to edit this file and enter the URL as
ftp://username:password@ftpserver/path/to/folder/
3. Each synch you setup puts some data here
C:\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\PROJECT_NAME\org.eclipse.team.core\.deployments
make sure your FTP servers match up.
Im still getting strange timeout issues and conflicts on files that are apparently the same when i compare them :(
i dont know how to config the timestamp settings just yet.
___
http://bankruptcy2.biz
Also, I'm curious if anyone is using Europa (3.3) and CFEclipse - I was having serious crashing problems after I installed it.
http://easyeclipse.org/site/plugins/eclipse-webdav...
I found a cool tutorial about how to set it up (http://www.boyzoid.com/blog/index.cfm/2007/3/22/Sy...) unfortunately the tutorial assumes that you have FTP/Webdav support already enabled in Eclipse. The only way I could figure out how to get it was to download and install the EasyEclipse plugin (http://easyeclipse.org/site/plugins/eclipse-webdav...) it complained that I really should be using EasyEclipse (instead of CFEclipse) but it installed anyway.
Once it was installed I could follow the boyzoid tutorial and get it working. Unfortunately the Eclipse developers don't really care about webdav or ftp support so there is no SFTP, FTP/SSL, or Webdav/SSL support built into Eclipse (morons... sigh). So everything you do is in plain text.
Plain text passwords might be fine with some people, but they don't fly with me. So after some Googling I found this tutorial (http://swem.wm.edu/blogs/waynegraham/index.cfm/200...) that links to a couple of libraries for doing SFTP through Eclipse.
Once configured you have a new toolbar for SFTP functions. The settings only allow you to set one site, but hey, I guess something is better than nothing.
maybe that trick helps those wishing to get rid of DW.
http://www.jcraft.com/eclipse-sftp/
Works fine for me, though with the same glitches as the FTP one.
http://wiki.eclipse.org/index.php/Team_Development...
Team used to provide an FTP/WebDAV feature. However, this feature was removed in 3.3 since the DSDP Target management component provides complimentary functionality. Here is a link to a 3.3 compatible FTP/WebDAV feature
http://www.eclipse.org/eclipse/platform-team/patch...
you can download this plugin and extract to eclipse folder manually.
maybe that trick helps those wishing to get rid of DW.
http://www.eclipse.org/eclipse/platform-team/patch...
... works.
Now going to try...
http://ipggi.wordpress.com/2009/06/09/implement-dr...