Skip to content

Commit 9bd8032

Browse files
author
jtimberman
committed
Switch debian/ubuntu Java package to openjdk, preseed unnecessary, and don't install ant by default
1 parent 90f3f0e commit 9bd8032

2 files changed

Lines changed: 4 additions & 18 deletions

File tree

metadata.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
license "Apache 2.0"
44
description "Installs java"
55
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
6-
version "0.9"
6+
version "0.10.0"
77

8-
%w{ debian ubuntu }.each do |os|
8+
%w{ debian ubuntu redhat centos fedora }.each do |os|
99
supports os
1010
end

recipes/default.rb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,14 @@
1919

2020
java_pkg = value_for_platform(
2121
[ "ubuntu", "debian" ] => {
22-
"default" => "sun-java6-jdk"
22+
"default" => "openjdk-6-jre-headless"
2323
},
2424
[ "redhat", "centos", "fedora" ] => {
2525
"default" => "java-1.6.0-openjdk"
2626
},
27-
"default" => "sun-java6-jdk"
27+
"default" => "openjdk-6-jre-headless"
2828
)
2929

30-
execute "update-java-alternatives" do
31-
command "update-java-alternatives --jre-headless -s java-6-sun"
32-
only_if do platform?("ubuntu", "debian") end
33-
ignore_failure true
34-
returns 0
35-
action :nothing
36-
end
37-
3830
package java_pkg do
3931
action :install
40-
if platform?("ubuntu", "debian")
41-
response_file "java.seed"
42-
notifies :run, resources(:execute => "update-java-alternatives"), :immediately
43-
end
4432
end
45-
46-
package "ant"

0 commit comments

Comments
 (0)