This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Make the build.xml File Print to Console

 
Stevens Miller
Bartender
Pie
Posts: 992
10
C++ Java Netbeans IDE Windows
  • 0
  • 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: 297
Eclipse IDE Java
  • 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
Pie
Posts: 992
10
C++ Java Netbeans IDE Windows
  • 0
  • 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!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic