".." in path inside a JAR file?

Hi,

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.

I didn’t find any previous reference to this.

Think this is a bug?

Patrik

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.

On Thu, Dec 17, 2009 at 4:36 PM, Patrik S.

It sounds like a bug…file a bug and then try to reduce it to a
specific example.

On Fri, Dec 18, 2009 at 6:35 AM, Patrik S.
[email protected] wrote:

Patrik


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email