aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How to Make the build.xml File Print to Console Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to Make the build.xml File Print to Console" Watch "How to Make the build.xml File Print to Console" New topic
Author

How to Make the build.xml File Print to Console

Stevens Miller
Ranch Hand

Joined: Jul 26, 2012
Posts: 523
    
    3

I'm using NetBeans and had to add a couple of lines to its build.xml file. It would help my future debugging if I could add something more to that file that would cause it to print a line (something like, "about to run javah") just before it executed a particular command.

Anyone know how to do that?
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Stevens,


You can explore the <echo> task in Ant through which you will be able to print the messages on the console ... http://ant.apache.org/manual/Tasks/echo.html
Also you can generate the log file for your build.xml with Record task.... http://ant.apache.org/manual/Tasks/recorder.html..
Hope this will be helful to you.

Regards
Jatan
Stevens Miller
Ranch Hand

Joined: Jul 26, 2012
Posts: 523
    
    3

jatan bhavsar wrote:Hi Stevens,
You can explore the <echo> task in Ant through which you will be able to print the messages on the console ... http://ant.apache.org/manual/Tasks/echo.html

That is exactly what I needed.

Thanks, jatan!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Make the build.xml File Print to Console