All:
I had an issue a while back in which my jruby code barfed when
com.kenai.constantine.Platform got the package name (issue discussed
here:
Trying to embed jruby within an app in onejar - JRuby - Ruby-Forum). This happens when I’m executing
code within a jar file but not when I have code running expanded on
disk. In
an old version of jruby, I just got a hold of the com.kenai code, fixed
it,
and rolled my own jrubycomplete.jar. I just changed my project to use
jruby
1.6 and the problem returned. So, to fix it, I was going to do the same
thing. However, I can’t seem to find the com.kenai code anywhere.
Furthemore, that code isn’t in the jruby source download either.
Does anyone know where I can get the source? Better yet, does anyone
know
what happened to com.kenai.constantine?
–rt
-------- __@
----- `<,
---- ()/ ()
robert tomb
twitter: @bikeonastick
The “constantine” project has moved around a bit, but now lives on
Github under the jnr/jnr-constants project.
I assume your setup broke because some code of yours was going after
constantine values directly?
No, I was simply running a script from an embedded jruby instance. Would
you
be interested in the full details here even though the problem is in the
com.kenai.constantine code? If so, I can post it later, when I have the
code
in front of me, again.
–rt
On Tue, Aug 9, 2011 at 1:29 PM, Charles Oliver N.
[email protected]wrote:
I had an issue a while back in which my jruby code barfed when
either.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
–
-------- __@
----- `<,
---- ()/ ()
robert tomb
[email protected]
twitter: @bikeonastick
612.709.0940
As headius said, constantine is now located at
GitHub - jnr/jnr-constants: Java Native Runtime constants.
I think I implemented a workaround for the problem - when loaded from
a classloader that doesn’t construct a Package instance, it falls back
to parsing the classname, and extracting the package portion of it.
The latest jnr-constants source /should/ be backward compatible with
older JRuby releases, but I have not tested it.
Yeah, we’d be interested. There’s no mailing list for the JNR projects
as yet, so this is as good a place as any.