signavio\editor\build.xml:118: Java returned: 2 编译错误
2012-08-26 14:40
369 查看
BMPN文件在线编辑器
项目svn地址:http://code.google.com/p/signavio-core-components/source/checkout
最近搞的signavio项目,就是BPMN的在线编辑软件,从一个商业版本的软件商拆分下来贡献给activiti使用。网址是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
E:\newworkspace\signavio\build.xml:64: The following error occur
ing this line:
E:\newworkspace\signavio\editor\build.xml:118: Java returned: 2
研究了一下是因为编码问题,ant文件调用了editor/build.xml。其中有
[html]
view plaincopy
<concat destfile='${build}/oryx.debug.js'>...</concat>
这个命令是合并文件,但是源文件中的scripts/Core/SVG/label.js是utf-8格式的,而其他是ansi格式的,这个utf-8文件转成ansi会出现乱码。因此修改为
[html]
view plaincopy
<property name="charset" value="utf-8"/>
[html]
view plaincopy
<concat destfile='${build}/oryx.debug.js' encoding="${charset}" outputencoding="${charset}">
这样合并后的文件没有问题,但是YUICompressor压缩还是有问题,到官网下载最新的2.4.7,放到lib目录,将其中的yuicompressor-2.4.2.jar修改为yuicompressor-2.4.7.jar
[html]
view plaincopy
<java dir="${build}" jar="${root}/lib/yuicompressor-2.4.7.jar" fork="true" failonerror="true" output='${compress.temp}'>
解决办法同样PO在了项目issue中,参见
http://code.google.com/p/signavio-core-components/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=29
项目svn地址:http://code.google.com/p/signavio-core-components/source/checkout
最近搞的signavio项目,就是BPMN的在线编辑软件,从一个商业版本的软件商拆分下来贡献给activiti使用。网址是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
E:\newworkspace\signavio\build.xml:64: The following error occur
ing this line:
E:\newworkspace\signavio\editor\build.xml:118: Java returned: 2
研究了一下是因为编码问题,ant文件调用了editor/build.xml。其中有
[html]
view plaincopy
<concat destfile='${build}/oryx.debug.js'>...</concat>
这个命令是合并文件,但是源文件中的scripts/Core/SVG/label.js是utf-8格式的,而其他是ansi格式的,这个utf-8文件转成ansi会出现乱码。因此修改为
[html]
view plaincopy
<property name="charset" value="utf-8"/>
[html]
view plaincopy
<concat destfile='${build}/oryx.debug.js' encoding="${charset}" outputencoding="${charset}">
这样合并后的文件没有问题,但是YUICompressor压缩还是有问题,到官网下载最新的2.4.7,放到lib目录,将其中的yuicompressor-2.4.2.jar修改为yuicompressor-2.4.7.jar
[html]
view plaincopy
<java dir="${build}" jar="${root}/lib/yuicompressor-2.4.7.jar" fork="true" failonerror="true" output='${compress.temp}'>
解决办法同样PO在了项目issue中,参见
http://code.google.com/p/signavio-core-components/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary&groupby=&sort=&id=29
相关文章推荐
- signavio\editor\build.xml:118: Java returned: 2 编译错误
- build.xml文件编译java文件到Tomcat的webapps目录下,但是Eclipse里面设置的断点变的无效
- java ant进行编译打包,build.xml文件编写
- Ant build编译错误 Cannot run program "javadoc.exe"
- cocos2dx 编译错误 BUILD FAILEDG:\android\SDK\android-sdk-windows\tools\ant\build.xml:645: The following
- 错误提示是因为没有引入javax.servlet.http.HttpServletRequest所在的包,编译错误。 项目–>右键–>properties–>Java build bath–>Lib
- java ant 编译打包build.xml完整配置范例
- java ant 编译打包build.xml完整配置范例
- Flash Build 4编译慢、报java heap space 堆空间异常错误的解决方法
- dom4j解析XML时出现"java.lang.noclassdeffounderror: org/jaxen/jaxenexception"错误
- java解析XML saxReader.read(xml) 错误:org.dom4j.DocumentException: no protocol
- java中标准的build.xml配置文件
- ANT build.xml 编译出错Error running javac.exe compiler
- 在IntelliJ Idea的maven工程中如何让properties或xml在java目录下一同被编译
- java编译错误
- Android中运行的错误:java.lang.UnsatisfiedLinkError: Couldn't load locSDK3: findLibrary returned null.
- 解决 "检出Maven项目web.xml is missing"错误 和 “Dynamic Web Module 3.0 requires Java 1.6 or newer.”错误
- Android源码编译jar包BUILD_JAVA_LIBRARY 与BUILD_STATIC_JAVA_LIBRARY的区别
- 同包不同文件,继承接口,编译出错:java错误找不到符号
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案