Module | Java |
In: |
lib/buildr/java/jruby.rb
(CVS)
lib/buildr/java/rjb.rb (CVS) lib/buildr/java/commands.rb (CVS) lib/buildr/java/deprecated.rb (CVS) |
Base module for all things Java.
wrapper | -> | rjb |
Returns the classpath, an array listing directories, JAR files and artifacts. Use when loading the extension to add any additional libraries used by that extension.
For example, Ant is loaded as follows:
Java.classpath << 'org.apache.ant:ant:jar:1.7.0'
Returns the classpath, an array listing directories, JAR files and artifacts. Use when loading the extension to add any additional libraries used by that extension.
For example, Ant is loaded as follows:
Java.classpath << 'org.apache.ant:ant:jar:1.7.0'
*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).