• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Make the build.xml File Print to Console

 
Stevens Miller
Bartender
Posts: 1194
21
C++ Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 299
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 1194
21
C++ Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic