{"action":"created","issue":{"url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/242","labels_url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/242/labels{/name}","comments_url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/242/comments","events_url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/242/events","html_url":"https://github.com/agileorbit-cookbooks/java/issues/242","id":57843148,"number":242,"title":"Java can't target multiple platforms due to install_flavor issue","user":{"login":"dhoer","id":648360,"avatar_url":"https://avatars.githubusercontent.com/u/648360?v=3","gravatar_id":"","url":"https://api.github.com/users/dhoer","html_url":"https://github.com/dhoer","followers_url":"https://api.github.com/users/dhoer/followers","following_url":"https://api.github.com/users/dhoer/following{/other_user}","gists_url":"https://api.github.com/users/dhoer/gists{/gist_id}","starred_url":"https://api.github.com/users/dhoer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhoer/subscriptions","organizations_url":"https://api.github.com/users/dhoer/orgs","repos_url":"https://api.github.com/users/dhoer/repos","events_url":"https://api.github.com/users/dhoer/events{/privacy}","received_events_url":"https://api.github.com/users/dhoer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-16T19:35:06Z","updated_at":"2015-02-16T19:46:55Z","closed_at":"2015-02-16T19:43:59Z","body":"Setting install_flavor to 'oracle' for linux installs results in windows installs failing.  \r\n\r\nExample; this setting:\r\n```\r\n\"java\": {\r\n  \"install_flavor\": \"oracle\",\r\n  \"jdk_version\": \"7\",\r\n  \"oracle\": {\r\n      \"accept_oracle_download_terms\": true\r\n  }\r\n  \"windows\": {\r\n    \"url\": \"https://s3.amazonaws.com/mybucket/jdk-7u75-windows-i586.exe\",\r\n    \"checksum\": \"b916d1724e29df886fc0858b72547212\"\r\n  }\r\n}\r\n```\r\nwill result in this error on windows platform:\r\n```\r\n[2015-02-16T18:40:04+00:00] INFO: Processing ruby_block[set-env-java-home] action run (java::set_java_home line 19)\r\n[2015-02-16T18:40:04+00:00] INFO: Processing directory[/etc/profile.d] action create (java::set_java_home line 26)\r\n\r\n================================================================================\r\nError executing action `create` on resource 'directory[/etc/profile.d]'\r\n================================================================================\r\n\r\nChef::Exceptions::EnclosingDirectoryDoesNotExist\r\n------------------------------------------------\r\nParent directory /etc does not exist, cannot create /etc/profile.d\r\n\r\nResource Declaration:\r\n---------------------\r\n# In c:/chef/cache/cookbooks/java/recipes/set_java_home.rb\r\n\r\n26: directory \"/etc/profile.d\" do\r\n27:   mode 00755\r\n28: end\r\n29:\r\n```"},"comment":{"url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/comments/74562607","html_url":"https://github.com/agileorbit-cookbooks/java/issues/242#issuecomment-74562607","issue_url":"https://api.github.com/repos/agileorbit-cookbooks/java/issues/242","id":74562607,"user":{"login":"dhoer","id":648360,"avatar_url":"https://avatars.githubusercontent.com/u/648360?v=3","gravatar_id":"","url":"https://api.github.com/users/dhoer","html_url":"https://github.com/dhoer","followers_url":"https://api.github.com/users/dhoer/followers","following_url":"https://api.github.com/users/dhoer/following{/other_user}","gists_url":"https://api.github.com/users/dhoer/gists{/gist_id}","starred_url":"https://api.github.com/users/dhoer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhoer/subscriptions","organizations_url":"https://api.github.com/users/dhoer/orgs","repos_url":"https://api.github.com/users/dhoer/repos","events_url":"https://api.github.com/users/dhoer/events{/privacy}","received_events_url":"https://api.github.com/users/dhoer/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T19:46:55Z","updated_at":"2015-02-16T19:46:55Z","body":"I use the same environment for linux installs. "}}