Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 java 应用程序中使用 compass 编译器。基本上,我正在执行 Process 来启动指南针。问题是......是否可以使用 JRuby 之类的工具/框架来执行指南针编译器任务,而无需在我的环境中安装任何依赖项(Ruby)?
您可以使用反引号在 ruby(以及 JRuby)中执行命令,例如:
puts `compass version`