Hi,

I'm having a problem with the Dir class when the directory is packaged
into a jar file (in my case with rawr). 

When I run my app via the jar file sequel migrations fail while
searching for migration classes inside the given directory:

Errno::ENOENT - No such file or directory -
  file:/[...]/my_app.jar!/database/migrations/ is not a directory
lib/ruby/sequel-2.11.0/lib/sequel_core/migration.rb:192:in `migration_files'
lib/ruby/sequel-2.11.0/lib/sequel_core/migration.rb:181:in `migration_classes'
src/main.rb:91:in `require'

Line 181:

  migration_files(directory, range).each {|fn| load(fn)}

Line 192:

  Dir.new(directory).each do |file|
    files[file.to_i] = File.join(directory, file) if 
MIGRATION_FILE_PATTERN.match(file)
  end

Why is the directory inside the jar not recognized as directory? Is
this a jruby bug?

Thanks,
Manfred


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to