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 13931 - add task to check links in help sets
Summary: add task to check links in help sets
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-25 19:37 UTC by Patrick Keegan
Modified: 2001-08-16 00:27 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 Patrick Keegan 2001-07-25 19:37:43 UTC
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.
Comment 1 Jesse Glick 2001-07-25 19:53:22 UTC
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.
Comment 2 Jesse Glick 2001-08-09 21:34:09 UTC
I may as well take this one.
Comment 3 rbalada 2001-08-10 09:44:14 UTC
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
Comment 4 Jesse Glick 2001-08-16 00:27:08 UTC
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.