Skip to content
Browse files

Add bouncycastle by default

Let Eclipse users no longer see red in their project
Make build complete when being compiled with Java 1.4

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@2571 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
1 parent a757121 commit 0c9363863a8b59b042a2c79c191d73cdb6ddae1b @enebo enebo committed Dec 10, 2006
Showing with 22 additions and 4 deletions.
  1. +3 −1 .classpath
  2. +9 −3 build.xml
  3. +10 −0 docs/LICENSE.bouncycastle
  4. BIN lib/bcmail-jdk15-134.jar
  5. BIN lib/bcprov-jdk15-134.jar
View
4 .classpath
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
- <classpathentry excluding="**/CVS/*" kind="src" output="build/classes/test" path="test"/>
+ <classpathentry excluding="**/CVS/*" output="build/classes/test" kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/bsf.jar"/>
<classpathentry kind="lib" path="lib/junit.jar"/>
@@ -10,5 +10,7 @@
<classpathentry kind="lib" path="lib/plaincharset.jar"/>
<classpathentry kind="lib" path="lib/asm-2.2.2.jar"/>
<classpathentry kind="lib" path="lib/jline-0.9.91-SNAPSHOT.jar"/>
+ <classpathentry kind="lib" path="lib/bcmail-jdk15-134.jar"/>
+ <classpathentry kind="lib" path="lib/bcprov-jdk15-134.jar"/>
<classpathentry kind="output" path="build/classes/jruby"/>
</classpath>
View
12 build.xml
@@ -71,20 +71,26 @@
<mkdir dir="${api.docs.dir}"/>
</target>
- <target name="check-for-optional-packages"
+ <target name="check-for-optional-java4-packages"
description="check if specific libs and versions are avaiable"
depends="init">
<available property="jdk1.4+" classname="java.lang.CharSequence"/>
<available property="jdk1.5+" classname="java.lang.StringBuilder"/>
<available property="bsf.present" classname="org.apache.bsf.BSFManager"
classpathref="build.classpath"/>
- <available property="bc.present" classname="org.bouncycastle.jce.provider.BouncyCastleProvider"
- classpathref="build.classpath"/>
<available property="junit.present" classname="junit.framework.TestCase"
classpathref="build.classpath"/>
<available property="cglib.present"
classname="net.sf.cglib.reflect.FastClass"
classpathref="build.classpath"/>
+ </target>
+
+ <target name="check-for-optional-packages" if="jdk1.5+"
+ description="check if specific libs and versions are avaiable"
+ depends="check-for-optional-java4-packages">
+ <available property="bc.present"
+ classname="org.bouncycastle.jce.provider.BouncyCastleProvider"
+ classpathref="build.classpath"/>
<condition property="build.openssl">
<and>
<isset property="bc.present"/>
View
10 docs/LICENSE.bouncycastle
@@ -0,0 +1,10 @@
+License
+
+Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
View
BIN lib/bcmail-jdk15-134.jar
Binary file not shown.
View
BIN lib/bcprov-jdk15-134.jar
Binary file not shown.

0 comments on commit 0c93638

Please sign in to comment.
Something went wrong with that request. Please try again.