Skip to content

Commit

Permalink
Unlimited Strength Jurisdiction Policy Files for OracleJDK7.
Browse files Browse the repository at this point in the history
  • Loading branch information
simi committed Jan 7, 2013
1 parent 8f7ba8e commit 5558cad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci_environment/java/attributes/default.rb
Expand Up @@ -34,8 +34,10 @@
}

default[:java][:oraclejdk7] = {
:java_home => "/usr/lib/jvm/java-7-oracle"
:java_home => "/usr/lib/jvm/java-7-oracle",
:install_jce_unlimited => true
}

default[:java][:oraclejdk8] = {
:java_home => "/usr/lib/jvm/java-8-oracle"
}
5 changes: 5 additions & 0 deletions ci_environment/java/recipes/oraclejdk7.rb
Expand Up @@ -23,6 +23,7 @@
# keep this in mind.

package "debconf-utils"
package "curl"

# accept Oracle License v1.1, otherwise the package won't install
execute "/bin/echo -e oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections"
Expand Down Expand Up @@ -76,3 +77,7 @@
owner "root"
mode 0644
end

if node.java.oraclejdk7.install_jce_unlimited
execute "curl -L --cookie 'ARU_LANG=US; s_cc=true; gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjce-6-download-429243.html; s_sq=oracleotnlive%2Coracleglobal%3D%2526pid%253Dotn%25253Aen-us%25253A%25252Fjava%25252Fjavase%25252Fdownloads%25252Fjce-6-download-429243.html%2526pidt%253D1%2526oid%253Dhttp%25253A%25252F%25252Fwww.oracle.com%25252Ftechnetwork%25252Fjava%25252Fjavase%25252Fdownloads%25252Fjce-6-download-429243.html%2526ot%253DA' http://download.oracle.com/otn-pub/java/jce/7/UnlimitedJCEPolicyJDK7.zip -o /tmp/policy.zip && sudo unzip -j -o /tmp/policy.zip *.jar -d #{node.java.oraclejdk7.java_home}/jre/lib/security && rm /tmp/policy.zip"
end

0 comments on commit 5558cad

Please sign in to comment.