{"action":"created","issue":{"url":"https://api.github.com/repos/jruyi/thrift-gradle-plugin/issues/8","labels_url":"https://api.github.com/repos/jruyi/thrift-gradle-plugin/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jruyi/thrift-gradle-plugin/issues/8/comments","events_url":"https://api.github.com/repos/jruyi/thrift-gradle-plugin/issues/8/events","html_url":"https://github.com/jruyi/thrift-gradle-plugin/issues/8","id":109377987,"number":8,"title":"Location of thrift executable","user":{"login":"tonyghita","id":779738,"avatar_url":"https://avatars.githubusercontent.com/u/779738?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyghita","html_url":"https://github.com/tonyghita","followers_url":"https://api.github.com/users/tonyghita/followers","following_url":"https://api.github.com/users/tonyghita/following{/other_user}","gists_url":"https://api.github.com/users/tonyghita/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyghita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyghita/subscriptions","organizations_url":"https://api.github.com/users/tonyghita/orgs","repos_url":"https://api.github.com/users/tonyghita/repos","events_url":"https://api.github.com/users/tonyghita/events{/privacy}","received_events_url":"https://api.github.com/users/tonyghita/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-01T20:35:03Z","updated_at":"2015-10-03T16:32:58Z","closed_at":null,"body":"When using the default `thriftExecutable` value, I get an error that `thrift` cannot be found. My build file looks like:\r\n\r\n```groovy\r\n// build.gradle\r\n\r\nplugins {\r\n    id \"org.jruyi.thrift\" version \"0.3.1\"\r\n}\r\n\r\ncompileThrift {\r\n    recurse true\r\n\r\n    generator 'html'\r\n    generator 'js'\r\n    generator 'js:node'\r\n    generator 'java', 'private-members', 'hashcode'\r\n    generator 'py'\r\n}\r\n```\r\n\r\nI can specify `thriftExecutable '/usr/local/bin/thrift'`, and that works locally. However, I can no longer build in other environments where thrift may not be present at that location.\r\n\r\nI don't understand why gradle would complain that `thrift` cannot be found, since it is discoverable from my `PATH`, which is available to gradle (it prints out when I run `./gradlew compileThrift --debug`).\r\n\r\nIs there some additional configuration I need to have my thrift executable discoverable? Am I going to have to store the value of `which thrift` to `thriftExecutable`?"},"comment":{"url":"https://api.github.com/repos/jruyi/thrift-gradle-plugin/issues/comments/145263269","html_url":"https://github.com/jruyi/thrift-gradle-plugin/issues/8#issuecomment-145263269","issue_url":"https://api.github.com/repos/jruyi/thrift-gradle-plugin/issues/8","id":145263269,"user":{"login":"tonyghita","id":779738,"avatar_url":"https://avatars.githubusercontent.com/u/779738?v=3","gravatar_id":"","url":"https://api.github.com/users/tonyghita","html_url":"https://github.com/tonyghita","followers_url":"https://api.github.com/users/tonyghita/followers","following_url":"https://api.github.com/users/tonyghita/following{/other_user}","gists_url":"https://api.github.com/users/tonyghita/gists{/gist_id}","starred_url":"https://api.github.com/users/tonyghita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonyghita/subscriptions","organizations_url":"https://api.github.com/users/tonyghita/orgs","repos_url":"https://api.github.com/users/tonyghita/repos","events_url":"https://api.github.com/users/tonyghita/events{/privacy}","received_events_url":"https://api.github.com/users/tonyghita/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T16:32:58Z","updated_at":"2015-10-03T16:32:58Z","body":"I modified the test project to be multi-module like mine, but I'm still unable to reproduce the issue :\\"}}