简体   繁体   English

如何查看Ant在Java任务中使用的完整命令?

[英]How can I see the full command Ant uses in the Java task?

I'm having some trouble with a <java> task not executing the way I expect it to and want to see the actual text of the command ant is calling on the command line so I can check to see if it is what I expect. 我遇到了一些<java>任务没有执行我期望的方式的麻烦,并希望看到命令ant的实际文本在命令行上调用,所以我可以检查它是否是我期望的。 Is there a way to do this? 有没有办法做到这一点?

Trying to Google for how to do this is very frustrating since all I get is a lot of information about how to set the command line arguments that get passed in ant. 尝试谷歌如何做到这一点非常令人沮丧,因为我得到的是关于如何设置在ant中传递的命令行参数的大量信息。 I am already doing that, but want to know that what's getting executed it what I expect before I start digging into other possible issues. 我已经这样做了,但是在我开始深入研究其他可能的问题之前,我想知道正在执行的是什么。

$ ant -verbose -debug ...

应该显示使用的命令(以及更多)。

您可以使用以下命令在调试模式下运行ant:ant -d它应该转储您在此上下文中所需的所有信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM