安装运行 Signavio 出现问题之compress yuicompressor
? 这个问题几个月前,本人已解决了,今天又有人给我发邮件问此问题,看来有必要详细贴出来。
?不过,本人工作流后来改用Jbpm了。 很久了,没搞这个了,很多东西都忘了.
?signavio-core-components 之安装
??http://code.google.com/p/signavio-core-components/wiki/InstallationInstructions
?解决办法一:
?<target name='com.signavio.editor.js.compress' depends="com.signavio.editor.js.concat">
?
<tempfile property="compress.temp" suffix=".js" prefix="compressed" destDir="${build}" />
<java dir="${build}" jar="${root}/lib/yuicompressor-2.4.2.jar" fork="true" failonerror="true" output='${compress.temp}'>
<sysproperty key="file.encoding" value="UTF-8"/>
<arg file='${build}/oryx.debug.js' />
</java>
<concat destfile='${build}/oryx.js'>
<fileset file="LICENSE" />
<fileset file="${compress.temp}" />
</concat>
?
<delete file='${compress.temp}' />
?
</target>
?
?
? 解决办法二: 不压缩
<target name='mycompress' depends="com.signavio.editor.js.concat">
?
?
<tempfile property="compress.temp" suffix=".js" prefix="compressed" destDir="${build}" />
<!---->
<java dir="${build}" jar="${root}/lib/yuicompressor-2.4.2.jar" fork="true" failonerror="true" output='${compress.temp}'>
<sysproperty key="file.encoding" value="UTF-8"/>
<arg file='${build}/oryx.debug.js' />
</java>
<concat destfile='${build}/oryx.js'>
<fileset file="LICENSE" />
<fileset file="${compress.temp}" />
</concat>
?
<delete file='${compress.temp}' />
?
</target>
??解决办法三:?在外部使用压缩
??java -Dfile.encoding=utf-8 -jar yuicompressor-2.4.2.jar -o oryx.js oryx.debug.js