Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Moving project moves it's linked files (not the links) into new project location
Moving project moves it's linked files (not the links) into new project location [message #331447] Mon, 08 September 2008 08:50 Go to next message
Eclipse UserFriend
Originally posted by: tkotisis.urbantech.gr

A project with links toward files outside the workspace is moved
(IProject.move).
It's linked files are also moved from their current location into the
(new) project location, while the links are deleted.
Is this a bug or a feature?

Either way, is it somehow possible to circumvent this behaviour besides
the obvious (copy project to new location, delete old project)?


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Re: Moving project moves it's linked files (not the links) into new project location [message #331518 is a reply to message #331447] Thu, 11 September 2008 07:19 Go to previous message
Eclipse UserFriend
Originally posted by: tkotisis.urbantech.gr

Maybe i should look better into the javadocs :

IResource.move(IPath destination, int updateFlags,IProgressMonitor monitor)

The SHALLOW update flag controls how this method deals with linked
resources. If SHALLOW is not specified, then the underlying contents of
the linked resource will always be moved in the file system. In this case,
the destination of the move will never be a linked resource or contain any
linked resources. If SHALLOW is specified when a linked resource is moved
into another project, a new linked resource is created in the destination
project that points to the same file system location. When a project
containing linked resources is moved, the new project will contain the
same linked resources pointing to the same file system locations. For
either of these cases, no files on disk under the linked resource are
actually moved.


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:Loosing a jar file when create a product.
Next Topic:IPackageFragment.getUnderlyingResource() for external folders()?
Goto Forum:
  


Current Time: Tue Jul 16 07:25:11 GMT 2024

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

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

Back to the top