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 196986 - Help for a module doesn't get generated in zip distribution
Summary: Help for a module doesn't get generated in zip distribution
Status: RESOLVED INVALID
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-22 20:55 UTC by javydreamercsw
Modified: 2011-04-04 17:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-03-22 20:55:55 UTC
[ BUILD # : 201103220400 ]
[ JDK VERSION : 1.6.24 ]

I just created a Java Help set for a module on the build mentioned above. If
you build and run the application the entries are in the Help about as you
would expect but if you try the zip distribution that help set is not created
(the jar file)
Comment 1 Jesse Glick 2011-03-22 23:44:39 UTC
In a current dev build on Ubuntu / JDK 6u24 I created a "NetBeans Platform Application" and added a module to it. Created a "JavaHelp Help Set" in the module. Ran the app, Help > Contents showed the new help as expected. Package as > ZIP Distribution, from a shell unpacked the generated ZIP into a new dir, started the unpacked app with a fresh userdir. Help > Contents again showed the new help as expected.
Comment 2 javydreamercsw 2011-03-23 14:01:24 UTC
My issue is that I'm used to see a jar containing the help docs in:

<app name>\<app name>\modules\docs\<module>.jar

It is not present for the module created with the new help.

I need that for an installer I build from the zip distribution using Izpack
Comment 3 Jesse Glick 2011-03-23 14:43:05 UTC
(In reply to comment #2)
> I'm used to see a jar containing the help docs in:
> 
> <app name>\<app name>\modules\docs\<module>.jar
> 
> It is not present for the module created with the new help.

No, it is not; ClassPath: docs/$cnb.jar was never necessary and is not created by @HelpSetRegistration (which just treats the help set as a module resource like any other). I am not clear on why you would need a separate JAR, but if so you can register a help set the old way without @HelpSetRegistration and pack the resulting files wherever you like.
Comment 4 javydreamercsw 2011-04-04 15:27:19 UTC
Then where is the help located when you use the new annotation? I should be leaving something out when I create the package.
Comment 5 Jesse Glick 2011-04-04 17:42:12 UTC
(In reply to comment #4)
> where is the help located when you use the new annotation?

Just in a regular package in the module JAR file, or wherever you put it - up to you. Treated like any other module resources such as icons.