当 jdp 引用的文件丢失时,bb-ant-tools 构建失败 [英] fail bb-ant-tools build when jdp referenced file is missing

查看:32
本文介绍了当 jdp 引用的文件丢失时,bb-ant-tools 构建失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 ant 构建我的 BlackBerry 应用程序时,我没有收到任何错误消息,即使 jdp 文件中定义的三个文件不存在.

When I build my BlackBerry application with ant, I don't get any error messages, even though three files defined in the jdp file don't exist.

如果 jdp 文件中定义的源文件不存在,我该如何配置构建失败?

How can I configure the build to fail if source files defined in a jdp file don't exist?

推荐答案

这不是构建配置问题.如果一个或多个 jdp 属性指向错误的资源位置,BB Ant Tools 不会引发错误.

It is not build configuration issue. BB Ant Tools won't raise an error, if one or more of jdp properties point to a wrong resource location.

如果您想检查特定资源是否存在并在它不可用时引发错误,请使用另一个处理文件的 ant 任务或实现您自己的 ant-task 来执行您想要的操作.

If you want check the presence of a particular resource and raise error if it is not available, use another ant task that works with files or implement your own ant-task that just does what you want.

这篇关于当 jdp 引用的文件丢失时,bb-ant-tools 构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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