Top Level Namespace
Defined Under Namespace
Modules: Pangolin Classes: Exception
Constant Summary collapse
- ClassLoader =
java.lang.ClassLoader
- ClassNotFoundException =
java.lang.ClassNotFoundException
- URLClassLoader =
java.net.URLClassLoader
- JURL =
java.net.URL
Instance Method Summary collapse
-
#jar(output, files = nil, options = nil, &block) ⇒ Object
Jar can be run in either command or yield mode: command mode looks roughly like this:.
-
#javac(source_files, options = nil, &block) ⇒ Object
Javac can be run in either command or yield mode: command mode looks roughly like this:.
-
#junit(classes, options = nil, &block) ⇒ Object
Junit can be run in either command or yield mode: command mode looks roughly like this:.
Instance Method Details
#jar(output, files = nil, options = nil, &block) ⇒ Object
Jar can be run in either command or yield mode: command mode looks roughly like this:
jar 'output.jar', [file1, file2], :base_dir => 'build'
and yield mode like this:
jar('output.jar', [file1, file2]) do |conf|
conf.base_dir = 'build'
end
In command mode you pass a hash with the configuration directives (listed below) and in yield mode an object is passed to the block, and the configuration directives should be set on that.
The possible configuration directives are:
-
base_dir -
compression -
verbose
The directives are the same as the properties of Pangolin::Jar.
129 130 131 132 133 134 135 136 137 |
# File 'lib/pangolin.rb', line 129 def jar( output, files = nil, = nil, &block ) base_dir = nil if && [:base_dir] base_dir = [:base_dir] end Pangolin::exec_command(Pangolin::Jar.new(output, files, base_dir), , block) end |
#javac(source_files, options = nil, &block) ⇒ Object
Javac can be run in either command or yield mode: command mode looks roughly like this:
javac [file1, file2], :destination => 'build'
and yield mode like this:
javac(file1, file2) do |conf|
conf.destination = 'build'
end
In command mode you pass a hash with the configuration directives (listed below) and in yield mode an object is passed to the block, and the configuration directives should be set on that.
The possible configuration directives are:
-
source_path -
destination -
class_path -
deprecation_warnings -
warnings -
encoding -
verbose
The directives are the same as the properties of Pangolin::Javac.
103 104 105 |
# File 'lib/pangolin.rb', line 103 def javac( source_files, = nil, &block ) Pangolin::exec_command(Pangolin::Javac.new(*source_files), , block) end |
#junit(classes, options = nil, &block) ⇒ Object
Junit can be run in either command or yield mode: command mode looks roughly like this:
junit ['TestFoo', 'TestBar'], :class_path => ['build']
(where TestFoo and TestBar are classes available from the class path).
Yield mode looks like this:
junit ['TestFoo', 'TestBar'] do |conf|
conf.class_path = ['build']
end
In command mode you pass a hash with the configuration directives (listed below) and in yield mode an object is passed to the block, and the configuration directives should be set on that.
The possible configuration directives are:
-
class_path -
colorize
The directives are the same as the properties of Pangolin::Junit.
162 163 164 |
# File 'lib/pangolin.rb', line 162 def junit( classes, = nil, &block ) Pangolin::exec_command(Pangolin::Junit.new(*classes), , block) end |