Permalink
Browse files

Oracle JDK 7u4 recipe via PPA // @loicfrering

  • Loading branch information...
michaelklishin committed May 23, 2012
1 parent 2ea017f commit afa31a812df7184651f869554e4597046f10d579
Showing with 35 additions and 0 deletions.
  1. +35 −0 ci_environment/java/recipes/oraclejdk7.rb
@@ -0,0 +1,35 @@
+#
+# Cookbook Name:: java
+# Recipe:: oracle
+#
+# Copyright 2012, Michael S. Klishin & Travis CI Development Team
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This recipe relies on a PPA package and is Ubuntu/Debian specific. Please
+# keep this in mind.
+
+apt_repository "webupd8team-java-ppa" do
+ uri "http://ppa.launchpad.net/webupd8team/java/ubuntu"
+ distribution node['lsb']['codename']
+ components ["main"]
+ key "EEA14886"
+ keyserver "keyserver.ubuntu.com"
+
+ action :add
+end
+
+package "oracle-java7-installer" do
+ action :install
+end

0 comments on commit afa31a8

Please sign in to comment.