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).

Methods

classpath   classpath=   import   load   onload   setup  

Included Modules

Singleton

Public Instance methods

*Deprecated:* Append to Java.classpath directly.

*Deprecated:* Use Java.pkg.pkg.ClassName to import a Java class.

*Deprecated:* Use Java.load instead.

onload()

Alias for setup

*Deprecated:* No longer necessary.

[Validate]