我在 Ant 目标中有以下内容:
<java jar="tools/jars/jruby-complete.jar" fork="true">
<arg value="-r"/>
<arg value="tools/jars/chunky_png.jar"/>
<arg value="-r"/>
<arg value="tools/jars/compass.jar"/>
<arg value="-S"/>
<arg value="compass/compass-compile.rb"/>
<arg value="${basedir}"/>
</java>
假设路径是正确的(我在这个例子中稍微改变了它们)。
我的构建失败,因为找不到 Gems 并显示错误消息:
`report_activate_error': Could not find RubyGem chunky_png (~> 0.12.0) (Gem::LoadError)
如果我通过它安装 Gemsgem
将起作用,但我不想这样做,因为我无法保证构建服务器上会出现什么。