1. First download the Eclipse SFTP from http://sourceforge.net/project/showfiles.php?group_id=151842 -- Make sure to download both "esftp" and "esftp-lib"
2. Extract the "esftp" into the eclipse folder.
3. Extract the "esftp-lib" into the eclipse/plugins/org.kmem.kosh.sftp_
4. Now shutdown eclipse, and run eclipse using the command "eclipse -clean". (Simply restarting eclipse through double-clicking does not work. Need to open up the command prompt, cd into the eclipse directory and do "eclipse.exe -clean" for windows users)
5. If everything went successfully, when you open Eclipse, the menu bar at the top should have a new menu "ESftp".
=====USAGE 1: Downloading to Local Eclipse Project=====
1. Create a new project (or select an existing project). Can be any project.
2. On the menu bar, click "Project" then "Properties". (Do not right-click a project and select properties, as this is not supported by ESFTP).
3. On the "Properties" window, you should see "ESFTP" on the left. Select this and you are at "ESFTP Preferences".
4. Fill in the appropriate information. Here is my example:
port: 22
username: username
timeout: 60
Site Root: /users/name/foldername
(You will want to select "Recurse Directories" if you want to download all directories under the site root)
Click "Test Settings" to test if the information provided is correct.
5. Click OK.
6. Now, right click your eclipse project, then select "ESFTP", then select "Get file from server". This will download all files you have in your site root directory (that you specified in ESFTP preferences)
7. Important: Be sure to "Refresh" (F5) the eclipse project after files have been downloaded. Otherwise the downloaded files do not show up.
=====USAGE 2: Uploading Local File to Server=====
1. Select a file to upload. Right-click-> ESFTP-> "Put File to Server". Or click the "Put File" button below the menu bar.
2. You can upload multiple files by selecting multiple files in your project. (You can select multiple files by holding down the CONTROL button when making a selection). After you have made the selections, you can click the "Put File" button or do right-click-> ESFTP-> "Put File to Server".
3. You can also upload a directory. Select the directory, or the whole project, and right-click->ESFTP->Put File to Server.
Warning: When uploading directories, you must always do a right-click, ESFTP, then "Put File to Server". Using the "Put File" button below the menu bar does not work for directories.
No comments:
Post a Comment