Reputation: 1658
I made several very simple examples with Java and C using JNI. Usually after every Java code compilation C header files must be "extracted" and included into the C source code file and then compiled using gcc. My question is how I can generate C header files from OSGI bundle with Java code?
Can this be done during the bundle compilation time?
Upvotes: 1
Views: 227
Reputation: 2416
You could automate header extraction with the Maven JAVAH plug-in. It should even be possible to use wild-cards to process an entire package.
Upvotes: 1