This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant 1.7: Turning on debugging by default for javac task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant 1.7: Turning on debugging by default for javac task" Watch "Ant 1.7: Turning on debugging by default for javac task" New topic
Author

Ant 1.7: Turning on debugging by default for javac task

Dave Alvarado
Ranch Hand

Joined: Jul 02, 2008
Posts: 436
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

Joined: May 14, 2008
Posts: 5812
    
    7

You could use a define, like this:



then use the define like this to compile with debugging:




JBoss In Action
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Or set a property and use that as the value of the debug element.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant 1.7: Turning on debugging by default for javac task
 
Similar Threads
log4j not printing filename and line number in log file
Debugging WebSphere 5.02 using Eclipse 2.1
Exception in displaying data in a pdf format
Eclipse remote debugging: Unable to install a breakpoint error
How to make EJB exception stack traces show line numbers?