Skip to content

Commit

Permalink
Use expand_path to locate JFace JARs
Browse files Browse the repository at this point in the history
When using Warbler and bundling the swt gem into a JAR,
JRuby was unable to find the JFace JARs, which were collected
using File.dirname. JRuby *could* find the SwtBot
extensions, which were collected using File.expand_path. This commit
simply uses the File.expand_path strategy for both scenarios.
  • Loading branch information
wasnotrice committed Sep 14, 2012
1 parent 93ecf93 commit 48dabc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swt/full.rb
Expand Up @@ -99,7 +99,7 @@ def self.bot
end

module JFace
Dir[File.dirname(__FILE__) + "/../../vendor/jface/*.jar"].each do |jar_fn|
Dir[File.expand_path "../../../vendor/jface/*.jar", __FILE__].each do |jar_fn|
require jar_fn
end

Expand Down

0 comments on commit 48dabc0

Please sign in to comment.