Product Version: NetBeans IDE 6.9 Beta (Build 201004142028)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
- created netbeans platform app
- added external cluster with one osgi bundle
- created osgi bundle and nbm project in the suite
-"build bundles" invoked on the suite built content of the suite + platform cluster, but nothing from external cluster.
Where is "build bundles" action?
Just tried it and it worked for me.
Created dir: /tmp/test184436/build/osgi
Processing /space/src/nb/main/nbbuild/netbeans/platform/core/core.jar into /tmp/test184436/build/osgi/org.netbeans.core.startup-220.127.116.11420-e0b35b449167.jar
Processing /space/src/nb/main/nbbuild/netbeans/platform/modules/org-openide-windows.jar into /tmp/test184436/build/osgi/org.openide.windows-18.104.22.168420-e0b35b449167.jar
Copying 1 file to /tmp/test184436/build/osgi
Copying /home/jglick/NetBeansProjects/test184434/build/cluster/modules/bundle.jar to /tmp/test184436/build/osgi/bundle-1.0.jar
Processing /home/jglick/NetBeansProjects/test184434/build/cluster/modules/regular.jar into /tmp/test184436/build/osgi/regular-22.214.171.124420.jar
BUILD SUCCESSFUL (total time: 3 seconds)
where /tmp/test184436/nbproject/platform.properties has:
mine platform.properties has
i.e. I used really external cluster.
Processing C:\Program Files\NetBeans Dev 201004260200\platform\modules\org-openide-windows.jar into C:\Users\tester\Documents\NetBeansProjects\suite3\build\osgi\org.openide.windows-126.96.36.199004260200.jar
Processing C:\Users\tester\Documents\NetBeansProjects\suite3\build\cluster\modules\m2.jar into C:\Users\tester\Documents\NetBeansProjects\suite3\build\osgi\m2-188.8.131.52426.jar
Copying 1 file to C:\Users\tester\Documents\NetBeansProjects\suite3\build\osgi
Copying C:\Users\tester\Documents\NetBeansProjects\suite3\build\cluster\modules\o1.jar to C:\Users\tester\Documents\NetBeansProjects\suite3\build\osgi\o1-1.0.jar
Processing C:\Users\tester\Documents\NetBeansProjects\suite3\build\cluster\core\locale\core_suite3.jar into C:\Users\tester\Documents\NetBeansProjects\suite3\build\osgi\core_suite3.jar
Processing C:\Users\tester\Documents\NetBeansProjects\suite3\build\cluster\modules\locale\org-netbeans-core-windows_suite3.jar into C:\Users\tester\Documents\NetBeansProjects\suite3\build\osgi\org-netbeans-core-windows_suite3.jar
BUILD SUCCESSFUL (total time: 12 seconds)
I'd expect to copy modules contained in my external m1 cluster to build/osgi folder.
If i understand correctly, osgi folder is intended to take and put into osgi container as is.
(In reply to comment #3)
> I used really external cluster.
So did I: /home/jglick/NetBeansProjects/test184434/build/cluster is not inside /tmp/test184436.
> I'd expect to copy modules contained in my external m1 cluster to build/osgi
So would I, so if you can figure out why it is not working for you (by debugging the Ant script or identifying minimal conditions which cause the problem to appear), let me know.
> If i understand correctly, osgi folder is intended to take and put into osgi
> container as is.
I'm not sure I understood that sentence, but the behavior is as follows:
1. All clusters in the cluster path - platform, suite, external - are scanned for modules, and information collected about them.
2. Any modules which turn out to be OSGi bundles are copied unmodified to build/osgi.
3. Regular modules are translated to bundle equivalents in build/osgi.