H5BP Ant-contrib 1.1.1无法正常工作

时间:2016-05-02 20:26:25

标签: ant html5boilerplate

当我在已知成功的v1.0文件中更新到ant build脚本V1.1.1时,脚本会一直运行到" BUILD SUCCESSFUL",但是发布目录不正确。 CSS似乎被压缩好了。 Main.js被破坏了,但是空了。 HTML文件未压缩。终端(OSX 10.9.5)报告以下错误消息:

-htmlcompress:
 [echo] Run htmlcompressor on the HTML
 [echo]  - removing unnecessary whitespace
 [echo]  - removing html comments
 [echo]  - compressing inline style/script tag contents
[apply] Exception in thread "main" java.lang.NoSuchMethodError: com.yahoo.platform.yui.compressor.JavaScriptCompressor.compress(Ljava/io/Writer;IZZZZ)V
[apply]     at com.googlecode.htmlcompressor.compressor.YuiJavaScriptCompressor.compress(YuiJavaScriptCompressor.java:54)
[apply]     at com.googlecode.htmlcompressor.compressor.HtmlCompressor.compressJavaScript(HtmlCompressor.java:975)
[apply]     at com.googlecode.htmlcompressor.compressor.HtmlCompressor.processScriptBlocks(HtmlCompressor.java:910)
[apply]     at com.googlecode.htmlcompressor.compressor.HtmlCompressor.processPreservedBlocks(HtmlCompressor.java:800)
[apply]     at com.googlecode.htmlcompressor.compressor.HtmlCompressor.compress(HtmlCompressor.java:221)
[apply]     at com.googlecode.htmlcompressor.CmdLineCompressor.process(CmdLineCompressor.java:275)
[apply]     at com.googlecode.htmlcompressor.CmdLineCompressor.main(CmdLineCompressor.java:109)
[apply] Result: 1

除了更新yuicompressor之外,V1.1.1是否进行了更改?我在v1.1.1 project.xml中看不到任何需要从V1.0更改的内容。我在这里缺少什么?

0 个答案:

没有答案