On 12/28/10 14:45, Bjorn Roche wrote:
On Dec 28, 2010, at 1:58 PM, Bjorn Roche wrote:On Dec 28, 2010, at 12:24 PM, Richard S. Hall wrote:On 12/28/10 8:58, Bjorn Roche wrote:First off, sorry if I am missing something obvious -- I've been chugging away trying to "OSGi-ify" 250,000 lines of code and it's wrecking havoc on my basic ability to think, so I probably am missing something obvious...Here's how I've been progressing:1. First, I built a small infrastructure that lets me run my code without JAR'ing it up, since JAR'ing my code after every small change is going to be prohibitively slow. This is primarily dependent on the "assembly" and "wrap" URL protocols from the pax runner folks -- so they've done the hard work for me. I created a project to help others with this as well, and once I get this working I plan to put more instructions up:http://code.google.com/p/piecemeal/Did you know you can install an "exploded" bundle as a directory in both Equinox and Felix just by appending "reference:" to the URL pointing to the directory? This shouldn't be used in place of ultimately creating a JAR file, but it can help during development.I did not. Sounds like the same concept as the assembly URL. When I google this, all I get is ml postings and a few Eclipse articles. Is there somewhere this is properly documented? Perhaps it will work better than what I'm doing now.Well I can't figure out how to include the .jar files my app depends on, which is something I can do with the "assembly:" protocol (actually, the "assemblyref"), plus I get missing parts of core java:java.lang.NoClassDefFoundError: javax/sound/sampled/UnsupportedAudioFileExceptionSo I think this is a no go, unless someone has some hints for me.
Yeah, the "reference:" protocol won't assemble a bundle for you, it assumes you've created a directory that looks like a bundle already. This directory can then contain your needed JAR files which would be mentioned on the Bundle-ClassPath like normal.
-> richard
bjorn
-----------------------------
Bjorn Roche
http://www.xonami.com
Audio Collaboration
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

