{"action":"opened","issue":{"url":"https://api.github.com/repos/jruby/warbler/issues/338","labels_url":"https://api.github.com/repos/jruby/warbler/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/jruby/warbler/issues/338/comments","events_url":"https://api.github.com/repos/jruby/warbler/issues/338/events","html_url":"https://github.com/jruby/warbler/issues/338","id":101223000,"number":338,"title":"Warbler doesn't respect bindir when scanning gemspec","user":{"login":"yegortimoshenko","id":1643293,"avatar_url":"https://avatars.githubusercontent.com/u/1643293?v=3","gravatar_id":"","url":"https://api.github.com/users/yegortimoshenko","html_url":"https://github.com/yegortimoshenko","followers_url":"https://api.github.com/users/yegortimoshenko/followers","following_url":"https://api.github.com/users/yegortimoshenko/following{/other_user}","gists_url":"https://api.github.com/users/yegortimoshenko/gists{/gist_id}","starred_url":"https://api.github.com/users/yegortimoshenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegortimoshenko/subscriptions","organizations_url":"https://api.github.com/users/yegortimoshenko/orgs","repos_url":"https://api.github.com/users/yegortimoshenko/repos","events_url":"https://api.github.com/users/yegortimoshenko/events{/privacy}","received_events_url":"https://api.github.com/users/yegortimoshenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-16T01:03:00Z","updated_at":"2015-08-16T01:03:00Z","closed_at":null,"body":"See:\r\n\r\nhttp://guides.rubygems.org/specification-reference/#bindir\r\nhttps://github.com/jruby/warbler/blob/61cbd4746f2349d25a965677cca7abbc416075ce/lib/warbler/traits/gemspec.rb#L63-L69\r\n\r\nEven if I change `bindir` in gemspec I will still get an error when running a compiled jar:\r\n\r\n```\r\n# example.gemspec\r\nGem::Specification.new do |s|\r\n  s.name = 'example'\r\n  s.bindir = '.'\r\n  s.executables = 'example.rb'\r\nend\r\n\r\n$ warble jar\r\nrm -f example.jar\r\nCreating example.jar\r\n$ java -jar example.jar\r\nLoadError: no such file to load -- example/bin/example.rb\r\n[...]\r\n```"}}