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.
Changing the projects NetBeans Platform to one other than the Development IDE, and specifying in the new platform that it should use the platform's harness, doesn't completely work. When packaging the project it still uses the IDE's harness. Furthermore, the platform that gets packaged is the Development IDE and not the new platform. When packaging, the first line in the output shows an ant call that makes explicit references to the IDE's harness.
Libor, could you investigate it? Thanks
Please attach here the output log. Thanks
Created attachment 134291 [details] Packaging output on verbose. I've attached the output and set the logging level to verbose to provide more information. If you need that changed I can re-upload with the requested logging level.
Created attachment 134292 [details] Screenshots of project properties and platform. Here are two screenshots showing my project properties as well as the platform harness window for the platform I have selected. I was following this tutorial: http://platform.netbeans.org/tutorials/nbm-nbi.html Hopefully that adds some additional context.
I'm still quite missing where is the problem. Do you complain, that in installer is used harness from development IDE instead of the IDE you've selected or it is the problem of built platform application. Thanks in advance for the answer.
The problem is that when running "Package as" it uses the harness, and possibly the entire platform, of the NetBeans IDE rather than the one that is specified in the platform.properties file. I even tried overriding the nbplatform.active.dir property to point to a completely different platform but it still uses the NetBeans IDE platform. If you look at the output, you can see "C:\Devel\Netbeans 7.3 Portable\netbeans\harness" used all over. However, the platform harness I'd like to use is "C:\Users\spencerh\Documents\NetBeansProjects\netbeans\harness", which is the one I specified as my target NetBeans platform in the project properties window. It sets the following property in platform.properties, "nbplatform.active=Netbeans_Installer_Example".
(In reply to comment #6) > The problem is that when running "Package as" it uses the harness, and possibly Right. I can confirm the problem, the engine for building the installers come from IDE's harness regardless of selected other harness. > the entire platform, of the NetBeans IDE rather than the one that is specified It's not true, the rest of packaged application really depends on selected harness, affected are only the installers ->P3. It should be fixed for the next release (7.4) > in the platform.properties file. I even tried overriding the > nbplatform.active.dir property to point to a completely different platform but > it still uses the NetBeans IDE platform. > > If you look at the output, you can see "C:\Devel\Netbeans 7.3 > Portable\netbeans\harness" used all over. However, the platform harness I'd > like to use is "C:\Users\spencerh\Documents\NetBeansProjects\netbeans\harness", > which is the one I specified as my target NetBeans platform in the project > properties window. It sets the following property in platform.properties, > "nbplatform.active=Netbeans_Installer_Example".
Better to track it like enhancement. It should be done into next version.
This problem still exists and on version 8.0 and 8.0.2
I found workaround for this until this is fixed. I hope that will be soon because this is big problem. Workaround is to make link or copy your harness to NetBeans installation directory. I prefer to make link since I put my harness in repo. First rename existing harness dir in your NetBeans install dir as harness-default for example. To create link do following Windows: 1. Run cmd as administrator 2. cd path_to_your_netbeans_install_dir 3. mklink /D harness path_to_your_harnesss Linux: 1. Run Terminal 2. cd path_to_your_netbeans_install_dir 3. ln -s path_to_your_harnesss harness