<!--
=============================================================
-->
<!-- Create iReport.exe using jsmoothgen -->
<!-- ============================================================= -->
< target name ="exe" depends ="prepare" description ="Create an .exe wrapper for a iReport using jsmoothgen-ant" >
<!-- create the .exe wrapper using jsmoothgen-ant and the .jsmooth project file created with the JSmooth GUI application -->
< taskdef name ="jsmoothgen"
classname ="net.charabia.jsmoothgen.ant.JSmoothGen"
classpath ="${lib}/jsmoothgen-ant-0.9.7.jar" />
< jsmoothgen project ="${basedir}/etc/ireport.jsmooth" skeletonroot ="${basedir}/etc/skeletons" />
< copy todir ="${target}" file ="${basedir}/etc/iReport.exe" />
< delete file ="${basedir}/etc/iReport.exe" />
</ target >
<!-- Create iReport.exe using jsmoothgen -->
<!-- ============================================================= -->
< target name ="exe" depends ="prepare" description ="Create an .exe wrapper for a iReport using jsmoothgen-ant" >
<!-- create the .exe wrapper using jsmoothgen-ant and the .jsmooth project file created with the JSmooth GUI application -->
< taskdef name ="jsmoothgen"
classname ="net.charabia.jsmoothgen.ant.JSmoothGen"
classpath ="${lib}/jsmoothgen-ant-0.9.7.jar" />
< jsmoothgen project ="${basedir}/etc/ireport.jsmooth" skeletonroot ="${basedir}/etc/skeletons" />
< copy todir ="${target}" file ="${basedir}/etc/iReport.exe" />
< delete file ="${basedir}/etc/iReport.exe" />
</ target >
这里面 jsmoothgen-ant-0.9.7.jar、 /etc/ ireport.jsmooth和 /etc/skeletons目录下的文件 不能少。