Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Workspace refresh wipes some files
Workspace refresh wipes some files [message #6125] Wed, 23 April 2003 09:18 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #6242 is a reply to message #6201] Wed, 23 April 2003 14:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: julien.ponge.fr.michelin.com

Thanks for pointing out that. Indeed the related subdirs are like src /
bin (ie it has a 'source' counterpart) ... :-)

Best regards.
Re: Workspace refresh wipes some files [message #6255 is a reply to message #6125] Wed, 23 April 2003 14:56 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Dynamic file associations in the workbench
Next Topic:USER-EXCLUDE in platform.cfg
Goto Forum:
  


Current Time: Fri Nov 08 22:04:52 GMT 2024

Powered by FUDForum. Page generated in 0.03712 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top