我有一个旧的ant脚本,我正在尝试运行它来为一些遗留软件创建安装程序。
检查是否安装了IzPack失败,即使我已经安装了IzPack 5.0
以下是该检查的ant文件片段:
<target name="check-izpack" depends="init-build">
<available property="izpack.present"
classname="com.izforge.izpack.ant.IzPackTask"
classpathref="installer.cp" />
<fail unless="izpack.present">.
The IzPack program is not available. Download it from
http://www.izforge.com/izpack/. Install it, and set the
'izpack.home' property in your local build.properties.
</fail>
<taskdef name="izpack" classname="com.izforge.izpack.ant.IzPackTask"
classpathref="installer.cp"/>
</target>再往下:
<path id="installer.cp">
<path refid="classpath" />
<pathelement location="${izpack.home}/lib/standalone-compiler.jar"/>
</path>在我的build.properties文件中,izpack.home被设置为适当的位置。但我注意到,在/lib目录中,没有名为standalone-compiler.jar的jarfile,据我所知,它来自较旧版本的IzPack。
有没有办法让这件事变得可行?(最好不要让我去学习所有关于IzPack和ant的知识。)如果我能弄到一个合适的IzPack遗留版本,那是不是最简单的方法?或者,有没有一个简单的转换新的IzPack,可能会对我工作?
发布于 2015-08-21 19:17:10
在Izpack 5.0中,他们将单个独立jar拆分为多个jar。从Github上的最新版本来看,这个类现在似乎已经在izpack-ant jar中了。
尝试将类路径jar更改为应该存在于文件夹中的izpack-ant,而不是独立的jar。
https://stackoverflow.com/questions/32130830
复制相似问题