Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant 1.7: Turning on debugging by default for javac task

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Ant 1.7.1 with JDK 1.6. I have a number of javac tasks in my target. By default, the "debug" option is set to off and I was wondering if there is a way to make the default be "on" (or "true"). I could just type 'debug="true"' for all my javac tasks, but there are a lot and it seems like there is a more efficient way.

Thanks, - Dave


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use a define, like this:



then use the define like this to compile with debugging:



 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or set a property and use that as the value of the debug element.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic