How to change project properties to run locally? - eclipse

I am working on CVS in a web project on Eclipse, Currently in the address bar I see: http://Remote Server Address:8080/myproject/.
When I needed to test some changes, I had to synchronize and commit to be able to test.
I want to have my own version of the project on my workspace that is different than the server, and my address bar looks like: http://localhost:8080/MyProject/index.jsp.
I tried to copy and paste, but whenever I put it in the workspace it detects the address of the server.

You need to change the server location, Just right click on the project click run is server and select your local tomcat server and you are done.
Whenever you are done with all the testing commit the code.
If any doubt update here.

Related

Eclipse files does not exist in workspace but does in remote system

I have a remote project in eclipse. Usually it works fine but sometimes, my explorer, says a file does not exist when I open it. The files does exist in my remote system explorer and in my local explorer file list, it just cant open.
Even if I refresh the project. Any suggestions.
Possible suggestions
You might be having your workspace in virtual machine, which keeps refreshing at regular intervals. Recommending to save your workspace in myDrive or myDesktop (yours) where it would be safe.
You eclipse might have synced up with version control( like svn/cvs) at remote. Always disconnect from your version control while you have with development work for the day. And i recommend you to make a local copy of remote repository in your desktop.

Eclipse send local edited files with Eclipse FTP

I'm really new with Eclipse. I'm a programmer and i have 2 site that i work on.
One is setup with a GIT.. so when i edit a file, i commit the change et the file is send to my server.
For the other site, i use Notepad ++, and when i edit my files, i use filezila to send it to the server..
My question, is, can i use Eclipse to edit the file and then send it via FTP ?
So i will not need Notepad++ and Filezilla anymore!
Here what i did: i create a new project (local), so i can edit the file in Eclipse. But to send it via FTP i see this topic How do I add FTP support to Eclipse?
and i created my connection with Remote System! And everythings works..
But the problem is, what i have to do to 'commit' or 'upload' my edited files ?
Because if y right click on my project, and i go hover de TEAM, only 2 options appears: Apply Patch, Share Project
There is no commit or send or upload...
What should I do?
RES works a little differently than the Team plugins. You have to use the RSE perspective and create a connection to your FTP server. Then you can interact with files through that connection (not through the Team menu).
See this video for a demonstration; it's an older version but should be close enough to get you going.

Cannot Clone EGit Repo on Eclipse

everyone. I've been struggling with this for a long time now. So I started an Android application using the Android Development Tools (ADT) on my computer and now I want to move this project into a repository on my Ubuntu Desktop 12.04 server, so I can work on it with a friend without constantly overwriting one another. I zipped the project on my computer, extracted and imported it on the server (using Eclipse on both ends) and created a git repository on the server by right clicking and going to Team -> Share Project
Now when I try to clone it from my (Windows) computer, I can't seem to connect properly no matter what protocol I use, be it git, SSH, FTP or HTTP. I want to try HTTP since it's the easiest (or am I totally wrong?)
The server has a static IP address, namely 192.168.1.42 (it also has a WAN address which I'll give my friend once this gets sorted out), and the project, along with the .git folder inside it, are under var/www/git/Eclipse Workspace/Musica
I can browse to that folder on Chrome from my computer, and to the hidden .git folder as well, but whenever I try to connect on Eclipse it says:
[address]/info/refs?service=git-upload-pack not found
And I can't seem to get around that. I've also tried using SSH, but the first time I connect it asks me to add a key, then fails loading the files, and every attempt thereafter fails to connect in the first place. FTP isn't cooperating either, nor is git nor file.
I'm out of ideas. I would really appreciate any guidance. Thanks!

How to remote save in Eclipse PDT like Netbeans?

I have a problem with Eclipse remote save.
I have been using Netbeans for 2 years, my projects are stored in local and also in remote test servers.
When I opened, change and saved files in Netbeans, it also saves (overwrites) the files to remote location.
Configuration of Netbeans is described here : Netbeans Remote Sync
Another thing is checkouted code from SVN is in my local, and I only commit from local, never from remote, I mean I use remote server only for testing purposes.
I decided to switch Eclipse because of other reasons, but I cannot succeed to prepare a similar development environment.
I tried remote explorer,it's complicated and I cannot find a solution to my problem. There are some suggessions by using Ant, I think, this can be easy thing.Ant is much more for me.
I am open to any suggessions, to prepare a similar development environment I described above in Netbeans case.
Regards...
The link to the NetBeans page only shows the settings for localhost connection.
The remote connection requires an ftp server on the remote machine.
First I will show the Eclipse settings for localhost connection.
File -- New -- PHP Project.
Project Name : SwitchLoc
Click
Folder -- Next
Settings as shown on image. Click Browse
Create a new connection.
Settings as shown on image. Click Next
Only to see what's going on : Click Next or Finish
Back to Connection select the one just created.
Select a folder under your www root.
Create a new php file
Right click on Switch new -- PHP File -- echo.php
Richt click on echo.php -- Properties -- Run/Debug Settings -- New -- PHP Web Page
Settings as shown on image. Click Browse
Uncheck Auto Generate and change the URL
Switch to Tab Common
Settings as shown on image. Click OK
Start Debug
select switch-local
Output
Next: Create a remote connection to a Remote Server with FTP and remote debug.
Follows in the sequel.

Deleting files on remote server

I have a PHP project in NetBeans with remote files (over sftp). When I create, modify anything these changes happening both locally and on my web server. However when I'm trying to delete a file or a folder it gets erased only locally. What could be the problem?
Permissions seems to be ok, all files belong to the user I'm using to access the server.
I'm using Netbeans 6.9.1, default configuration, all updates installed.
Netbeans does not have a synchronization function. It is limited to downloading and uploading files. What you can do is to use some external tool, for example WinSCP is capable of synchronizing local and remote directories.
I read what you wrote... but I think it could be a permissions problem.
I also use NetBeans and when I delete a file from the project window it first erase it locally and then syncs with my server.
I login through sftp (using vsftp) as root, which is a bad thing, but you could try this too to be sure if it's a permission issue.
You mistakenly turned off the settings. Please follow these steps:
Right click on the project name
Select properties
From the list of the left select 'Run configuration'
On the left almost down, look for the setting 'Upload files:'
Make sure you set that to 'On Save'
All the best man