当 JDeb 无法创建 Debian 软件包时,如何获取任何有用的信息? [英] How to get any useful information when JDeb fails to create a Debian package?
问题描述
我使用 JDeb 有几天了.我尝试为我的基于 Java 的第一人称射击游戏创建一个 Debian 包.我使用 Ant 作为构建工具.我一开始就把这行写进了我的 Ant 脚本中:
I use JDeb for a few days. I try to create a Debian package for my Java based first person shooter. I use Ant as a build tool. I put this line into my Ant script at the very beginning:
<taskdef name="pure-java-deb" classname="org.vafer.jdeb.ant.DebAntTask" classpath="lib/ant/jdeb-1.3.jar"/>
我尝试进一步使用这个库:
I try to use this library further:
<delete failonerror="false" file="${destdir}/control" />
<echo file="${destdir}/control">
<![CDATA[
Package: ${project-unix-name}
Version: 0
Section: Games
Priority: low
Architecture: all
Description: ${game-description}
Maintainer: xxxxxxx@xxxxxxx.fr
]]>
</echo>
<pure-java-deb destfile="${destdir}/${project-unix-name}.deb" control="${destdir}/control" verbose="true">
<data src="${destdir}/${game-jar-filename}" type="file">
<mapper type="perm" prefix="/usr/share/games/${project-unix-name}"/>
</data>
</pure-java-deb>
<delete failonerror="false" file="${destdir}/control" />
即使我将verbose"设置为true",我也只会收到以下错误消息:未能创建 Debian 软件包 tuer/target/tuer.deb
I only get the following error message even when I set "verbose" to "true": Failed to create the Debian package tuer/target/tuer.deb
构建失败tuer/build.xml:463: 无法创建 Debian 包 tuer/target/tuer.deb
BUILD FAILED tuer/build.xml:463: Failed to create the Debian package tuer/target/tuer.deb
有没有办法获取有关失败原因的任何信息?
Is there a way of getting any information about the cause(s) of the failure?
推荐答案
在 Eclipse 中,转到菜单项窗口"->显示视图"->错误日志".然后,双击包含Failure of Background Ant Build"的行,它会显示完整的堆栈跟踪.
In Eclipse, go to the menu item "Window" -> "Show View" -> "Error Log". Then, double click on the line containing "Failure of Background Ant Build" and it shows the full stack trace.
这篇关于当 JDeb 无法创建 Debian 软件包时,如何获取任何有用的信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!