Workspace refresh wipes some files [message #6125] |
Wed, 23 April 2003 09:18 |
Eclipse User |
|
|
|
Originally posted by: julien.ponge.fr.michelin.com
Hello,
I've spent a lot of time trying to figure out why on earth doing a
'refresh' wiped some files. Here's a summary of what I'm doing :
- I've made a plugin that can update a project through a popup-menu
contribution, shown as 'Update xyz project ...'
- During the files update (ie by working on the files stored on the disk
in the project workspace subdirectory), I make a backup of the files by
copying them under their filenames + "xyz-backup".
- Some files aren't overwritten and the updated file is copied as
'filename' + "xyz-backup", just along the backed-up files.
The main benefit of doing so is that the user can still correct a
messed-up update. The files are right on the disk, _but_ doing a workspace
refresh (or a project refresh) just wipes all the files that weren't part
of my project ie the updates and the backups. This is really strange and
well reproduceable. I'm still struggling to find out what the problem is.
Here are some informations that might help :
- I'm running WSAD 5.0
- The project to update is a "web" project
- The files on which the problem occurs are located under
WEB-INF/classes/** (I don't know if it is important).
I hope someone will have an idea :-)
Best regards.
|
|
|
Re: Workspace refresh wipes some files [message #6201 is a reply to message #6125] |
Wed, 23 April 2003 13:41 |
Eclipse User |
|
|
|
Originally posted by: chaves.nospam.inf.ufsc.br
I guess that a plug-in that manages that area is deleting your files
because it does not know about them.
For instance, if you keep separated source and output folders (e.g. src
and bin), the Java builder will delete everything in the output folder
when a full build happens, and regenerate all the files again (except for
those files it does not know about).
I don't know WSAD nor which plug-in manages that area. But I know that
during a refresh operation in Eclipse, the workspace is updated to reflect
the file system, not the contrary.
HTH,
Rafael
|
|
|
|
Re: Workspace refresh wipes some files [message #6255 is a reply to message #6125] |
Wed, 23 April 2003 14:56 |
Eclipse User |
|
|
|
Originally posted by: mccull1.does.not.like.spam.us.ibm.com
WSAD will sometimes clear the WEB-INF/classes/ folder when a build is
triggered (which sometimes happens on a refresh). Since that is a build
output folder owned by the Builder, you cannot put your files there, you
should put them somewhere else.
-Andrew
"Julien Ponge" <julien.ponge@fr.michelin.com> wrote in message
news:b85los$njh$1@rogue.oti.com...
> Hello,
>
> I've spent a lot of time trying to figure out why on earth doing a
> 'refresh' wiped some files. Here's a summary of what I'm doing :
> - I've made a plugin that can update a project through a popup-menu
> contribution, shown as 'Update xyz project ...'
> - During the files update (ie by working on the files stored on the disk
> in the project workspace subdirectory), I make a backup of the files by
> copying them under their filenames + "xyz-backup".
> - Some files aren't overwritten and the updated file is copied as
> 'filename' + "xyz-backup", just along the backed-up files.
>
> The main benefit of doing so is that the user can still correct a
> messed-up update. The files are right on the disk, _but_ doing a workspace
> refresh (or a project refresh) just wipes all the files that weren't part
> of my project ie the updates and the backups. This is really strange and
> well reproduceable. I'm still struggling to find out what the problem is.
>
> Here are some informations that might help :
> - I'm running WSAD 5.0
> - The project to update is a "web" project
> - The files on which the problem occurs are located under
> WEB-INF/classes/** (I don't know if it is important).
>
> I hope someone will have an idea :-)
>
> Best regards.
>
|
|
|
Re: Workspace refresh wipes some files [message #6286 is a reply to message #6255] |
Wed, 23 April 2003 14:52 |
Eclipse User |
|
|
|
Originally posted by: julien.ponge.fr.michelin.com
> WSAD will sometimes clear the WEB-INF/classes/ folder when a build is
> triggered (which sometimes happens on a refresh). Since that is a build
> output folder owned by the Builder, you cannot put your files there, you
> should put them somewhere else.
Thanks Andrew, this was indeed the problem. In fact, I did not know what
this directories purposes were as I'm not working on web projects.
Best regards.
|
|
|
Powered by
FUDForum. Page generated in 0.03712 seconds