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

Summary: NBM doesn't include "main" post-install folder
Product: platform Reporter: janrossler
Component: Module SystemAssignee: Tomas Hurka <thurka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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.