简体   繁体   English

Ant任务:在ant build中,我正在使用Java任务,在这里我使用了未出现在eclipse控制台中的system.out.println

[英]Ant task: In ant build i am using java task, where i used system.out.println which are not appearing in the eclipse console

<java classname="GenerateLuaFromDDL"  
classpathref="project.classpath" failonerror="true">  
<argline="'${build.databases.client.dir}/SQLiteDDL.ddl''${build.client.dir}'${ClientLuaGenFile}''lua'"/>  
</java>  

How to get java system.out.println in eclipse console? 如何在Eclipse控制台中获取Java system.out.println?

We can specify output attribute of the java task which will redirect your error and output streams to the file specified as the value of this attribute. 我们可以指定java任务的输出属性,它将把您的错误和输出流重定向到指定为该属性值的文件。 Or 要么

You can explore the echo task in Ant through which you will be able to print the messages on the console 您可以在Ant中探索echo任务,通过它您可以在控制台上打印消息

More information can be found on : 有关更多信息,请参见:

https://ant.apache.org/manual/Tasks/exec.html . https://ant.apache.org/manual/Tasks/exec.html or 要么

http://www.vogella.com/tutorials/ApacheAnt/article.html http://www.vogella.com/tutorials/ApacheAnt/article.html

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

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