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 41640 - Assure that all VCS modules work correctly with the new installation structure.
Summary: Assure that all VCS modules work correctly with the new installation structure.
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL: http://openide.netbeans.org/proposals...
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-02 13:54 UTC by Martin Entlicher
Modified: 2004-08-13 12:12 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2004-04-02 13:54:49 UTC
There is a proposal of new installation structure
at
http://openide.netbeans.org/proposals/arch/installation.html,
which will cause that accessing files under
netbeans.home and netbeans.user properties will
have to be revoked.

There are some usages of netbeans.home property,
that should be removed and usages of netbeans.user
property that likely need to be adjusted, because
the file layout under netbeans.user directory will
change.
Comment 1 Martin Entlicher 2004-04-02 14:04:28 UTC
The reference to netbeans.home is removed from StarTeam profile:

/cvs/vcsgeneric/profiles/starteam/src/org/netbeans/modules/vcs/profiles/starteam/config/st40.xml,v
 <--  st40.xml
new revision: 1.3; previous revision: 1.2
Comment 2 Martin Entlicher 2004-04-02 14:15:20 UTC
The netbeans.home variable is not set any more by vcscore module:

/cvs/vcscore/src/org/netbeans/modules/vcscore/Variables.java,v  <-- 
Variables.java
new revision: 1.18; previous revision: 1.17
Comment 3 Martin Entlicher 2004-04-02 14:39:00 UTC
There are several usages of "netbeans.user" directory, that need to be
adjusted. These are:

<netbeans.user>/system/vcs/running/ folder that is used by
org.netbeans.modules.vcscore.commands.CommandOutputCollector for
temporary storage of command outputs,

<netbeans.user>/system/vcs/tmp/ folder that is used by
VcsUtilities.createTMP() method as a location of temporary directories,

<netbeans.user>/system/vcs/.nbcicat.bat file created on Windows
platform by
org.netbeans.modules.vcs.profiles.cvsprofiles.commands.CvsCommit,

<netbeans.user>/system/vcs/cache folder used by file status cache and
created by org.netbeans.modules.vcs.advanced.CommandLineVcsFileSystem.

With the exception of <netbeans.user>/system/vcs/cache, all other
stuff can be probably moved to /tmp (java.io.tmpdir property).
Comment 4 Martin Entlicher 2004-04-14 13:23:47 UTC
Create the "vcs/running" folder on SystemFileSystem to survive the
layout change. netbeans.user property is used as a fallback when
something bad happens and we could not create the folder on SFS:

/cvs/vcscore/src/org/netbeans/modules/vcscore/commands/CommandOutputCollector.java,v
 <--  CommandOutputCollector.java
new revision: 1.16; previous revision: 1.15
Comment 5 Martin Entlicher 2004-04-14 14:50:50 UTC
Create the temporary folders in "java.io.tmpdir" instead of
"netbeans.user":

/cvs/vcscore/src/org/netbeans/modules/vcscore/util/VcsUtilities.java,v
 <--  VcsUtilities.java
new revision: 1.33; previous revision: 1.32

Get the wincat file path through FileUtil form the appropriate FileObject:

/cvs/vcsgeneric/profiles/cvsprofiles/src/org/netbeans/modules/vcs/profiles/cvsprofiles/commands/CvsCommit.java,v
 <--  CvsCommit.java
new revision: 1.17; previous revision: 1.16

Root of the SFS is used as a location of cache files instead of
netbeans.user property:

/cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/CommandLineVcsFileSystem.java,v
 <--  CommandLineVcsFileSystem.java
new revision: 1.139; previous revision: 1.138