Class | Java::JavaWrapper |
In: |
lib/buildr/java/deprecated.rb
(CVS)
|
Parent: | Object |
*Deprecated:* In earlier versions, Java.wrapper served as a wrapper around RJB/JRuby. From this version forward, we apply with JRuby style for importing Java classes:
Java.java.lang.String.new('hai!')
You still need to call Java.load before using any Java code: it resolves, downloads and installs various dependencies that are required on the classpath before calling any Java code (e.g. Ant and its tasks).