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.
Summary: | Download progress bar stuck while downloading external NBM content | ||
---|---|---|---|
Product: | platform | Reporter: | Jan Lahoda <jlahoda> |
Component: | Autoupdate | Assignee: | Jan Lahoda <jlahoda> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | apireviews, jglick, jlahoda, jrechtacek |
Priority: | P3 | Keywords: | API, API_REVIEW_FAST |
Version: | 7.2 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Proposed patch. |
Description
Jan Lahoda
2012-05-04 09:27:29 UTC
Created attachment 119073 [details]
Proposed patch.
Please review, thanks. The patch looks good. JR01: Increase Specification-Version to 1.32 (1.31 already in core-main repo) JR02: Will be value of element SIZE generated during build clusters? JR01: sure JR02: the "downloadsize" attribute in the module element in the AUC catalog is computed automatically, but the SIZE entry in the .external file needs to be filled manually by the developer, similarly to the CRC entry (I at least do not know about any automated way to generate the CRC entry into the .external file). We could create a tool that would generate these entries from a given jar, maybe even generate the m2 URL, but I don't see big need to that right now. (In reply to comment #4) > We could create a tool that would generate these entries from a given > jar, maybe even generate the m2 URL In fact when you build an NBM wrapping Central JARs using the dev version of nbm-maven-plugin, creation of *.external incl. CRC and 'http' and 'm2' URLs is done automatically. I have no plans to copy such a feature into apisupport.harness, since it would be far harder to implement URL calculation in an Ant task for logistical reasons. The Ant-based <makenbm> _could_ easily update a source *.external (containing just URLs) with CRC and SIZE provided that the input cluster also contained the raw JAR, which it typically would (since otherwise you could not run the module in place). I will also update nbm-maven-plugin to add SIZE when generating *.external, and to quietly ignore it when unpacking an NBM (normally it warns about unrecognized lines). Integrated: http://hg.netbeans.org/jet-main/rev/61da60b8fb9d Integrated into 'main-golden', will be available in build *201205150400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/61da60b8fb9d User: Jan Lahoda <jlahoda@netbeans.org> Log: #212068: include the size(s) of external NBM content in the NBM download size, and show progress while downloading the external content Integrated into 'main-golden', will be available in build *201205160400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b077bef4a840 User: Jesse Glick <jglick@netbeans.org> Log: #212068 fix broke NbmExternalTest. |