Permalink
Browse files

Unlimited Strength Jurisdiction Policy Files for OracleJDK7.

  • Loading branch information...
1 parent 8f7ba8e commit 5558cadd0a105d1aa0581d45758bbf433e0913e7 @simi simi committed Jan 7, 2013
Showing with 8 additions and 1 deletion.
  1. +3 −1 ci_environment/java/attributes/default.rb
  2. +5 −0 ci_environment/java/recipes/oraclejdk7.rb
@@ -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"
}
@@ -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"
@@ -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.