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.
Currently writers have to run independent scripts to check for broken links in HTML files and broken URLs given in JavaHelp map files (.jhm files). To automate this work checking, there should be a build-time ant task to: -check the .jhm file to make sure that all specified URLs work -check .jhm files to make sure that the same mapID is not specified more than once -check all .html files to make sure that no hyperlinks are broken -check the toc and index files (.xml files) to make sure that they point to valid mapIDs in the .jhm file Any discrepancies should be printed out somewhere, either on the console or in a text file.
Compare the <checklinks> task used by openide/build.xml, it may be a helpful starting point. IMHO errors should be reported in the normal way for Ant tasks, with full file name and line number, so that hyperlinking (e.g. from Emacs or within the IDE) works correctly; you can jump straight to the offending line.
I may as well take this one.
Just comments for Patrick The shell scripts, I made for you, don't do: - check .jhm files to make sure that the same mapID is not specified more than once - check all .html files to make sure that no hyperlinks are broken - error output to text file
Implemented. <checkhelpsets> task does the job. As a starting point, there is a new target in the usersguide build script to run it on usersguide. All checks listed below should be implemented.