-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in jar: require works but Dir[]/Dir.glob dont? #3904
Comments
@mooreniemi there are classloaders which can not see the globs without adding extra directory info to jar. each directory needs to contain a
of use
might be also a bug: would need to see
|
but warble doesnt create the requested vars:
|
won't fix ... it could be a warbler feature but by default its not a good idea to update all packed .jar files. |
@mooreniemi actually require uses the load-path but Dir[] does work against the |
@mkristian in other words there's no way i can stay inside ruby, i have to be aware of being in jruby. ok fair enough |
@mooreniemi you added jars to your classpath and want to use |
Thanks @mkristian -- |
Environment
jruby 9.1.0.0 (2.3.0) 2016-05-02 a633c63 Java HotSpot(TM) 64-Bit Server VM 25.65-b01 on 1.8.0_65-b17 [darwin-x86_64]
(Note: I also tried
9.0.5.0
, same issue.)Expected vs Actual Behavior
In the below code,
require
is able to grab an endpoint I specify. I'd like to be able to get all of the endpoints without knowing their names. So I try to use a glob. This returns empty. If I manually specify my location within my jar (I am usingwarble
to pack it) then it works.The text was updated successfully, but these errors were encountered: