如何在Windows上使用最新版本的sbt和插件为sbt设置wro4j?

时间:2014-06-17 20:38:24

标签: coffeescript sbt scalatra wro4j

我已下载this example并进行了一些更改以解决错误。特别是,我已在sbt.version文件中将0.13.5更改为build.properties,并将scalatra-sbtxsbt-wro4j-plugin版本更改为0.3.5 project/plugins.sbt 1}}。

即使在手动创建wro4j文件夹之后,此修改示例也不起作用 - 命令wro4j不执行任何操作,container:start http://localhost:8080/compiled/scripts.js结果为404后。

该插件还需要使用哪些新版本的sbt和插件? wro4j的工作版本组合是什么?

失败的例子在https://github.com/Odomontois/scalatra-coffeescript

更新

刚在linux机器上检查过它。一切都已正确生产。所以它看起来像只有Windows的问题。

更新2

经过大量不同的检查后,我调查了这个问题,不知何故与路径发现有关。如果你保留文件,他们在master分支生成甚至不开始。 但是如果你在wro.xml中将路径分隔符从unix替换为windows样式,即在windows-separator分支中将'/'更改为'\',则会收到以下日志消息:

[info] Using relative Context: /compiled/scripts.css
[info] Processing Group: [scripts] with type [CSS]
[info] Using relative Context: /compiled/scripts.js
[info] Processing Group: [scripts] with type [JS]
[trace] Stack trace suppressed: run last compile:wro4j for the full output.
[error] (compile:wro4j) ro.isdc.wro.WroRuntimeException: No locator is capable of handling uri: \coffee\*.coffee

0 个答案:

没有答案