Eclipse Not Really Saving File Changes [message #259030] |
Mon, 23 June 2008 12:38  |
Eclipse User |
|
|
|
Originally posted by: cowpea.yahoo.com
I have been using Eclipse PDT to develop and edit a large PHP/MYSQL
application for several months now. Things have been great, Eclipse Rocks!
I had to create a new PHP project (we won't go into why I lost the old
one) and used Drag and Drop to load the files from localhost into the
workspace in Eclipse.
So the actual live files are located at : C:\inetpub\wwwroot
The workspace file are located at : C:\Documents and
Settings\Administrator\OPM_Workspace\OPM3
If I edit a file from within Elipse, the file appears to save without
error... the little asterisk by the file name disappears. The reality is
that the live files in C:\inetpub\wwwroot did not really change.
Now if I want to develop this app in Eclipse, I am having to maintain two
different sets of files... (Bleh!)
If anyone can help, I would greatly appreciate it. I want to keep using
Eclipse PDT to debug and develop this app... I dunno if I can or want to
keep maintaining two sets of files though.
Sincerely,
Karen C
|
|
|
|
Re: Eclipse Not Really Saving File Changes [message #259043 is a reply to message #259030] |
Mon, 23 June 2008 14:03   |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
Karen C wrote:
> I have been using Eclipse PDT to develop and edit a large PHP/MYSQL
> application for several months now. Things have been great, Eclipse Rocks!
>
> I had to create a new PHP project (we won't go into why I lost the old
> one) and used Drag and Drop to load the files from localhost into the
> workspace in Eclipse.
>
> So the actual live files are located at : C:\inetpub\wwwroot
> The workspace file are located at : C:\Documents and
> Settings\Administrator\OPM_Workspace\OPM3
>
> If I edit a file from within Elipse, the file appears to save without
> error... the little asterisk by the file name disappears. The reality is
> that the live files in C:\inetpub\wwwroot did not really change.
> Now if I want to develop this app in Eclipse, I am having to maintain
> two different sets of files... (Bleh!)
When you dropped the files into Eclipse, you got copies of them in your
Eclipse workspace; it is those files that are being modified. I'm not
sure why you would expect anything different - it would be quite
counter-intutitive (to me) for Eclipse to have somehow made "links" to
the original files.
In any case, I don't know if PDT has any special features to support
what you want, but in general you could use a linked directory in your
Eclipse project that points to the "live" location. In your project,
when you create a Folder, click the Advanced button to see the option
for creating a linked folder. Also, in the Help contents, navigate to
the page Workbench User Guide > Tasks > "Working with projects, folders
and files" > "Creating linked resources"
Hope this helps,
Eric
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09046 seconds