Title: [1002] trunk/jopenssl/Rakefile: Make rake unbroken, because of the recent boot class path changes
Revision
1002
Author
olabini
Date
2008-05-30 12:37:39 -0400 (Fri, 30 May 2008)

Log Message

Make rake unbroken, because of the recent boot class path changes

Modified Paths


Diff

Modified: trunk/jopenssl/Rakefile (1001 => 1002)


--- trunk/jopenssl/Rakefile	2008-05-21 03:13:18 UTC (rev 1001)
+++ trunk/jopenssl/Rakefile	2008-05-30 16:37:39 UTC (rev 1002)
@@ -8,9 +8,10 @@
 
 def java_classpath_arg # myriad of ways to discover JRuby classpath
   begin
-    require 'java' # already running in a JRuby JVM
-    jruby_cpath = Java::java.lang.System.getProperty('java.class.path')
-  rescue LoadError
+    cpath  = Java::java.lang.System.getProperty('java.class.path').split(File::PATH_SEPARATOR)
+    cpath += Java::java.lang.System.getProperty('sun.boot.class.path').split(File::PATH_SEPARATOR)
+    jruby_cpath = cpath.compact.join(File::PATH_SEPARATOR)
+  rescue => e
   end
   unless jruby_cpath
     jruby_cpath = ENV['JRUBY_PARENT_CLASSPATH'] || ENV['JRUBY_HOME'] &&
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to