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 21737 - Filesystems are unmounted after second IDE start
Summary: Filesystems are unmounted after second IDE start
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: xtest (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-20 09:07 UTC by Jan Zajicek
Modified: 2003-07-02 12:21 UTC (History)
0 users

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 Jan Zajicek 2002-03-20 09:07:56 UTC
My test for filesystems are testing persistence of repository too. For such test
I need to make second start of the ide. It works fine till I try check order of
mounted filesystems in the second ide start. There aren't any from filesystems
mounted during the first run.

Is it possible to disable the unmounting feature of xtest ide execution while
starting ide second time. It can be done using following method:

    private static boolean isFirstStart(){
        String s =
System.getProperty("netbeans.user")+File.separator+"system"+File.separator+"Projects"+File.separator+"Default"+File.separator+"system"+File.separator+"Windows";
        java.io.File f = new java.io.File(s);
        if (f.exists()) return false;
        return true;
    }

Or moreover why are filesystems unmounted after the firstart too.

I propose to disable this historical behaviour: Do not unmount any filesystem
after start of ide (first or second ...). We should test builds how they are
produced not "prepare" ide for testing.
Comment 1 Lukas Hasik 2002-03-20 13:01:57 UTC
I agree with Honza Z. why we unmount these filesystems ?
We don't test ide as it appears to normal user (sampledir is gone)
after first start. 

I'd be nice if this behaviour could be changed without impact on old
working tests.
Comment 2 Martin Brehovsky 2002-03-22 17:05:04 UTC
Since the issue is rather enhancement than defect, changing issue type.
Comment 3 L Martinek 2002-03-27 17:48:29 UTC
New property xtest.reuse.ide was added. Set this property 
to true in your executor, then old userdir from previous 
run will be used and filesystems will not be unmounted. To 
define order of testbags priority was added 
(attribute "prio" of testbag element).
Comment 4 Jan Zajicek 2002-03-28 08:52:40 UTC
verified
Comment 5 Quality Engineering 2003-07-02 12:21:47 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.