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.
Posting suggestion from nbdev - got a positive response from Trung and Michal. Unfortunately I cannot link to the thread (not archived, sigh), but it was called "AutoUpdate vs. other means". ---%<--- Here is a suggestion for a change in AU: deprecate update_tracking.xml in favor of a directory of tracking files. (Automatically convert the old format to the new at startup time, too.) So you would have: update_tracking/org-netbeans-modules-classfile.xml which would contain just <?xml version="1.0" encoding="UTF-8"?> <module codename="org.netbeans.modules.classfile/1"> <module_version specification_version="1.7" origin="installer" last="true" install_time="1028669207236"> <file name="modules/autoload/classfile.jar" crc="4077066555"/> </module_version> </module> Two neat things here: 1. At build time, <genlist> is simplified. It does not need to modify ../nbbuild/netbeans/update_tracking.xml, which is sort of a hack. Instead, classfile/build.xml only needs to create netbeans/update_tracking/org-netbeans-modules-classfile.xml, which will automatically be merged to the output dir if the classfile module is itself merged. More reliable also in case some modules are built but never merged (with Ruda's new failonerror=false), etc. 2. The AU client would probably automatically generate $userdir/update_tracking/org-netbeans-modules-classfile.xml when unpacking classfile.nbm, just as now it rewrites $userdir/update_tracking.xml. But the RPM format would include the following files: /usr/lib/netbeans/modules/autoload/classfile.jar /usr/lib/netbeans/update_tracking/org-netbeans-modules-classfile.xml /usr/lib/netbeans/system/Modules/org-netbeans-modules-classfile.xml Now when you rpm -ivh /tmp/nb-classfile.rpm those files are generated and so NB's module system thinks classfile is enabled and NB AU thinks the NBM is installed too. If you rpm -e nb-classfile NB will see the classfile module/NBM as having cleanly and quietly disappeared. ---%<---
I agree. I see only one problem: proper place to convert the old format to the new one. Do you think it's sufficient to check it (and convert if needed) on start of AU wizard?
Should work to check when opening the AU wizard, I think. You could also simply try doing the check in ModuleInstall.restored().
I'm prepared to commit required changes in AU client (working with new structure and conversion). Reassigning to Michal to prepare changes in nbbuild part. Michal, let me know then - it will be nice to commit all changes at once. Thanks.
I'll do it. After complete of my work I'll reassign it back to you Ales.
I'm ready for commit, Ales commit your part please.
AU part was commited in trunk. Michal, you can commit your part and close this issue. Thanks.
I just commited the change of directory of update tracking XML to module's netbeans.
Changed target milestone