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 111701

Summary: Autoupdate should overwrite the existing location while updating modules
Product: platform Reporter: Jiri Rechtacek <jrechtacek>
Component: AutoupdateAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED FIXED    
Severity: blocker CC: jglick
Priority: P2 Keywords: API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 111384    

Description Jiri Rechtacek 2007-08-02 09:38:28 UTC
Autoupdate will overwrite the existing location of module while updating it. Moreover will utilize 'targetcluster'
attribute in NBM's attributes if installs new modules. By Jesse's suggestion in issue 111384:

------- Additional comments from jglick Tue Jul 31 18:22:43 +0000 2007 -------
Yes, I would think the behavior should be:
1. If an update, overwrite the existing location, wherever that is.
2. Otherwise (new module), if a cluster name is specified in NBM, put it there (creating the cluster if necessary).
3. Otherwise (no cluster name specified), if marked global, maybe put it into an "extra" cluster (to be created on
demand)? (platform* is a bad choice and nothing else makes sense.)
4. Otherwise (global="false" or unspecified), put it in user dir.
Comment 1 Jiri Rechtacek 2007-08-08 16:50:23 UTC
I'm going to fix it tomorrow.
Comment 2 Jiri Rechtacek 2007-08-10 14:04:59 UTC
Checking in src/org/netbeans/modules/autoupdate/services/InstallManager.java;
/shared/data/ccvs/repository/autoupdate/services/src/org/netbeans/modules/autoupdate/services/InstallManager.java,v  <--
 InstallManager.java
new revision: 1.14; previous revision: 1.13
done
Checking in libsrc/org/netbeans/updater/UpdateTracking.java;
/shared/data/ccvs/repository/autoupdate/services/libsrc/org/netbeans/updater/UpdateTracking.java,v  <--  UpdateTracking.java
new revision: 1.8; previous revision: 1.7
done
Checking in test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterTest.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterTest.java,v
 <--  TargetClusterTest.java
initial revision: 1.1
done
RCS file:
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenTargerClusterDeclaredTest.java,v
done
Checking in test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenTargerClusterDeclaredTest.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenTargerClusterDeclaredTest.java,v
 <--  TargetClusterWhenTargerClusterDeclaredTest.java
initial revision: 1.1
done
RCS file:
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenGlobalUndeclaredTest.java,v
done
Checking in test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenGlobalUndeclaredTest.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenGlobalUndeclaredTest.java,v
 <--  TargetClusterWhenGlobalUndeclaredTest.java
initial revision: 1.1
done
RCS file:
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterTestCase.java,v
done
Checking in test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterTestCase.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterTestCase.java,v
 <--  TargetClusterTestCase.java
initial revision: 1.1
done
RCS file:
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenUpdateLocallyTest.java,v
done
Checking in test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenUpdateLocallyTest.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenUpdateLocallyTest.java,v
 <--  TargetClusterWhenUpdateLocallyTest.java
initial revision: 1.1
done
Checking in test/unit/src/org/netbeans/modules/autoupdate/services/NbmAdvancedTestCase.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/NbmAdvancedTestCase.java,v
 <--  NbmAdvancedTestCase.java
new revision: 1.3; previous revision: 1.2
done
RCS file:
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenUpdateGloballyTest.java,v
done
Checking in test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenUpdateGloballyTest.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/TargetClusterWhenUpdateGloballyTest.java,v
 <--  TargetClusterWhenUpdateGloballyTest.java
initial revision: 1.1
done
Checking in test/unit/src/org/netbeans/modules/autoupdate/services/InstallEagerModuleTest.java;
/shared/data/ccvs/repository/autoupdate/services/test/unit/src/org/netbeans/modules/autoupdate/services/InstallEagerModuleTest.java,v
 <--  InstallEagerModuleTest.java
new revision: 1.4; previous revision: 1.3
done