This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 34113 - Persistence of generated source files
Summary: Persistence of generated source files
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks: 31663
  Show dependency tree
 
Reported: 2003-06-03 09:52 UTC by Martin Entlicher
Modified: 2008-12-22 17:27 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2003-06-03 09:52:11 UTC
We're trying to solve a problem which is described
in issue #31663. Simply put, it's necessary to
have a way to determine whether files, that are
created on a VCS filesystem should be put into VCS
or not.

The VCS filesystem can not do that decission
itself, because it does not have enough
information, and modules that are creating the
data have no way to pass the information to VCS
filesystem.

I had a private discussion with Peter about this
and the conclusion was, that the current
filesystems API is not sufficient to solve this
problem, a more explicit protocol is needed.
Peter suggested following:


1. User U says "Create an A" in clearcase
   filesystem F directory D to module X 

2. X recognizes that that F is versioned using a
   new filesystem API

3. X asks U if the directories created for A
   should be versioned, and furthermore if the
   files created for A should be added to source
   control.

4. U says "yes" to both questions

5. X calls new filesystem API
   D.createVersionedDirectory()

6. Filesystem API delegates to VCS generic
   implementation

7. VCS generic implementation delegates to VCS
   profile commands

8. Clearcase command checks out D, does a
   "ct mkdir" to create the dir

9. X creates file F

10. Calls filesystem API "D.addToSource"

11. Filesystem API delegates to generic impl

12. generic impl delegates to clearcase

13. clearcase says "ct mkelem F"

So this would require a few new APIs in the
filesystem and some additional logic in modules
that create directories (and projects as well,
presumably).
Comment 1 Jesse Glick 2004-04-02 23:02:18 UTC
SharabilityQuery does just this, I guess.
Comment 2 Martin Entlicher 2004-04-05 13:56:36 UTC
I agree. We'll implement a workaround for creating versioned folders
in ClearCase as described in issue #31663.