0
我運行的JRuby這樣:爲org.jruby.Main設置類路徑?
Main jrubyRunner = new Main()
jrubyRunner.main(sassCompileCommandLineArgs)
我有一些寶石我已經編入罐。如何在jrubyRunner
將使用的類路徑中包含這些jar?
我運行的JRuby這樣:爲org.jruby.Main設置類路徑?
Main jrubyRunner = new Main()
jrubyRunner.main(sassCompileCommandLineArgs)
我有一些寶石我已經編入罐。如何在jrubyRunner
將使用的類路徑中包含這些jar?
private static def setupCompassInvocationArgs =
['-e', "require 'rubygems';gem 'compass'; load Gem.bin_path('compass', 'compass')"]
protected def runCompassCommand(def compassArgs) {
Main main = new Main()
main.run([setupCompassInvocationArgs, compassArgs].flatten() as String[])
}
第一位是你需要加載各種寶石。