It seems to me like having a path with “…” in it doesn’t produce the
desired effect from inside a jar. Let’s say we have the path to a
directory
in variable named dir_path.
If we do dir_path+"/…/file" that works fine outside of jar, but seems
to
fail inside of a jar.
I ran across this using the bundler. In the generated environment.rb
there’s
a usage like the above to reference the Gemfile.
To be more explicit. When using bundler I need to make this change in
the
generated environment.rb to make it work once bundled into a jar: @gemfile = “#{dir}/…/Gemfile”
becomes: @gemfile = dir.gsub(/bundler_gems/, “”) + “Gemfile”
Both are equivalent and the first expression works outside of a jar but
not
in a jar.