用JSBuilder压缩JS(sencha)

时间:2012-01-23 13:34:27

标签: javascript extjs compression jsbuilder

我想用来自sencha的jsbuilder压缩我的javascript / sencha touch应用程序代码。我手动创建了一个jsb3文件,并能够生成一个脚本文件。但是部署版本没有被压缩或混淆,即使我在JSON中指定了“compress”:true。

错误是

...
  * Compress and obfuscate appName.js...
rsync: -: unknown option
rsync error: syntax or usage error (code 1) at main.c(1455) [client=3.0.9]
java.io.FileNotFoundException: /Users/NAME/PATH/TO/APP/www/nameOfBuildJSFile.js-temp-882015127581.6014 (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:120)
        at java.io.FileInputStream.<init>(FileInputStream.java:79)
        at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:20)

我做错了什么?

0 个答案:

没有答案