signavio-core-components ant build-all-in-one-war failed

最近搞了下signavio-core-components项目,网址是http://code.google.com/p/signavio-core-components

执行ant build-all-in-one-war或者ant build-and-deploy-all-in-one-war-to-tomcat

BUILD FAILED
D:\signavio\build.xml:64: The following error occurred while executing this line
D:\signavio\editor\build.xml:118: Java returned: 2

研究了一下是因为编码问题,ant文件调用了editor/build.xml。其中有

这个命令是合并文件,但是源文件中的scripts/Core/SVG/label.js是utf-8格式的,而其他是ansi格式的,这个utf-8文件转成ansi会出现乱码。因此修改为

这样合并后的文件没有问题,但是YUICompressor压缩还是有问题,到官网下载最新的2.4.7,放到lib目录,将其中的yuicompressor-2.4.2.jar修改为yuicompressor-2.4.7.jar

posted @ 2012-06-02 22:08  yellowxz  阅读(473)  评论(0)    收藏  举报