我正在使用 YUI 压缩器压缩 js 文件,但是在 Windows7 上传递完整路径时出现错误
java -jar c:\yui\yuicompressor-2.4.8.jar c:\js\CCOM.js -o c:\js\CCOMA.js
报错如下
java.io.FileNotFoundException: yuiCCOMA.js:\yui\CCOM.js (The filena
me, directory name, or volume label syntax is incorrect)
jar 和源文件确实存在,当我直接从源目录运行它时它工作正常
最佳答案
这是由于版本 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
关于java - YUI compressor 2.48 windows路径错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22343690/