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 262580 - NBM doesn't include "main" post-install folder
Summary: NBM doesn't include "main" post-install folder
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-26 13:05 UTC by janrossler
Modified: 2016-06-26 13:05 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 janrossler 2016-06-26 13:05:23 UTC
Build: 201510222201
JDK: 1.8.0_92

Observer behavior: created NBMs do not include the "main" folder, which is used for post-install code as per http://wiki.netbeans.org/DevFaqNbmPostInstall, therefore the post-install code is not ever executed

Expected behavior: NBMs should automatically include the "main" folder if it is present in the project

Steps to reproduce: 
1. Download the example project from http://wiki.netbeans.org/DevFaqNbmPostInstall
2. Start IDE
3. Open the example project in IDE
4. Right-click the example project and choose "Create NBM"
5. Open the created NBM in netbeans or in any program able to open archives, you will see that the "main" folder is missing and therefore cannot be executed on module installation

Workaround:
It is possible to open the NBM file in an archive-editor program such as winrar and add the main folder manually.