YUI 压缩器 2.48 windows 路径错误

Dev*_*evC 5 java yui yui-compressor

我正在使用 YUI 压缩器来压缩 js 文件,但是在 Windows7 上传递完整路径时出现错误

java -jar c:\yui\yuicompressor-2.4.8.jar c:\js\CCOM.js -o c:\js\CCOMA.js
Run Code Online (Sandbox Code Playgroud)

给出错误如下

java.io.FileNotFoundException: yuiCCOMA.js:\yui\CCOM.js (The filena
me, directory name, or volume label syntax is incorrect)
Run Code Online (Sandbox Code Playgroud)

jar 和源文件确实存在,当我直接从源目录运行它时它工作正常

use*_*441 4

这是由于 2.4.8 版本中的一个错误造成的:

https://github.com/yui/yuicompressor/issues/111

https://github.com/yui/yuicompressor/issues/78

在该问题修复之前,您可以从此处使用 2.4.7:https: //github.com/yui/yuicompressor/downloads