8000 Main.java fails to load main Ruby file · Issue #4 · rawr/rawr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Main.java fails to load main Ruby file #4

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

Open
Neurogami opened this issue Oct 25, 2011 · 1 comment
Open

Main.java fails to load main Ruby file #4

Neurogami opened this issue Oct 25, 2011 · 1 comment
Assignees

Comments

@Neurogami
Copy link
Collaborator

Main.java bootstraps a package Ruby app by using evalScript to require the main Ruby file as defined in build_configuration.rb

This is typically src/main.rb but file name is configurable.

The call to require does not use a full path; it assumed that 1src/was part of$LOAD_PATH` but with recent JRuby releases this appears to no longer be the case.

What now happens is the code fails with a "File not found" exception.

@ghost ghost assigned Neurogami Oct 25, 2011
@Neurogami
Copy link
Collaborator Author

There is a branch with a proposed fix for this at https://github.com/rawr/rawr/tree/load-path-fix

Code has been added to pull the value of source_dirs from build_configuration.rb and dynamically add these to $LOAD_PATH before attempting to require the main Ruby file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0