JDeb无法创建Debian软件包时如何获取有用的信息? [英] How to get any useful information when JDeb fails to create a Debian package?

查看:313
本文介绍了JDeb无法创建Debian软件包时如何获取有用的信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 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"/>

我尝试使用这个库:

<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

BUILD FAILED
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中,转到菜单项窗口 - >显示视图 - >错误日志。然后,双击包含蚂蚁构建失败的行,并显示完整的堆栈跟踪。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆