Bug 102056 - Not writing to file system
Summary: Not writing to file system
Status: RESOLVED DUPLICATE of bug 41929
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-28 14:17 EDT by philipp suter CLA
Modified: 2005-06-29 09:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description philipp suter CLA 2005-06-28 14:17:18 EDT
I am running Eclipse Build id: I20050617-1618.

When I am downloading files from the cvs server eclipse is not writing any of
them in any case to the file system. Yesterday it was working but not today
after I used sync with repository and after I updated.
Comment 1 philipp suter CLA 2005-06-28 14:48:03 EDT
I just found where the fault lies:

Eclipse creates a second folder containing the whole sources under its project
folder instead of linking to the folder outside of the project folder. This
could be a problem of creating the project from the existing ant file, which
writes into .project:

<link>
 <name>ch</name>
 <type>2</type>
 <location>C:/source/ch</location>
</link>

a similar problem happens with the used ant file, which is copied instead of
linked from its original source (where it belongs to)

thanks for the help!
Comment 2 philipp suter CLA 2005-06-28 14:55:11 EDT
The misbehaving happens when I first create a project from an existing ant file,
which creates the correct sym-links.
But when I later check out sources from the cvs into those folders it deletes
the sym-folders and creates real ones.
Is this a bug or a feature?
And if the latter, how do I check out sources into an ant created project?
Comment 3 Michael Valenta CLA 2005-06-29 08:22:01 EDT
Are you talking about OS level symlinks or Eclipse level symlinks?
Comment 4 philipp suter CLA 2005-06-29 08:41:15 EDT
eclipse level simlinks.
this morning I tried to check a folder of the cvs out into a subfolder of a
symbolically linked folder. this crashed in the cvs process (deleting worked
fine, but re-creation does not) and the folder is now not accessible anymore
from the os or anywhere else.
Comment 5 Michael Valenta CLA 2005-06-29 08:58:36 EDT
I think comment 4 is similar to the problem outlined in bug 35011. The rest of 
the behavior you describe is what I would expect (i.e. working as designed). 
The CVS plugin scrubs a project before checking out contents into it. The 
expectation is that a project checked out from a repository would be 
continuous (i.e. no links) in the local sandbox. What linking allows you to do 
is checkout separate projects and then link them together as needed. There are 
some limitations as described in bug 41929. 

What I don't understand is why you are checking out into an ant created 
project. If you are using ant, why not just use ant to check out the contents 
from CVS as well? 
Comment 6 philipp suter CLA 2005-06-29 09:15:37 EDT
the two mentioned bugs have the same problems as this bug.

I don't wnat to chekc out the sources through cvs, as they should not be checked
out durgin build, as a build is not always checked into the cvs because it has
to build without faults before it can be checked in.

but i can find a workaround. It would just be nice if eclipse would be handling
folder files and symlinks a bit better or at least as good as the underlying
filesystem. but it already improved a lot compared to earlier versions.
Comment 7 Michael Valenta CLA 2005-06-29 09:22:13 EDT
OK, I'm going to close this bug. If you have any indsights into how we could 
improve, please add them to bug 41929.

*** This bug has been marked as a duplicate of 41929 ***