aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse 2.0 Ant not as verbose as Ant on command line? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse 2.0 Ant not as verbose as Ant on command line?" Watch "Eclipse 2.0 Ant not as verbose as Ant on command line?" New topic
Author

Eclipse 2.0 Ant not as verbose as Ant on command line?

Craig Demyanovich
Ranch Hand

Joined: Sep 25, 2000
Posts: 173
When I run Ant 1.4.1 at the command line with the command ant -verbose, the output is

When I run Ant in Eclipse 2.0 with Tool Arguments set to -verbose, the output is:

Why is there a difference? In another thread, I've been trying to solve an Ant problem, and it would be helpful if Ant in Eclipse was as verbose as on the command line.
Thanks,
Craig
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Most probably because Eclipse doesn't start Ant in a new process and therefore circumvents some of the early startup-code.
What information do you need?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Craig Demyanovich
Ranch Hand

Joined: Sep 25, 2000
Posts: 173
I wanted to see what Ant in Eclipse 2.0 reports for the system property os.name.
Craig
[ July 29, 2002: Message edited by: Craig Demyanovich ]
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Add the following to the ant-target you execute:
<echo message="os.name: ${os.name}" level="verbose"/>
Hope this helps
Craig Demyanovich
Ranch Hand

Joined: Sep 25, 2000
Posts: 173
Thank you very much for the reminder that Ant grants access to the Java system properties! I love the simple solutions; I just hate it when they hide in plain view so close to me!
Craig
Craig Demyanovich
Ranch Hand

Joined: Sep 25, 2000
Posts: 173
I'm running Windows XP and JAVA_HOME is set to SDK 1.3.1_03. os.name is reported as "Windows 2000." If I set JAVA_HOME to SDK 1.4.0_01, os.name is reported as "Windows XP." Finally, the reason that my colleague's machine correctly reports "Windows XP" when using SDK 1.3.x is that he's using SDK 1.3.1_04. I found this information in the 1.3 Release Notes. I'm guessing that my problems with os.name occurred when I installed and tested SDK 1.4.0_01 but was still running Ant 1.4.1. Ant 1.5 works better than Ant 1.4.1 with Windows XP and SDK 1.4.0_01.
Craig
 
wood burning stoves
 
subject: Eclipse 2.0 Ant not as verbose as Ant on command line?
 
Similar Threads
Replace Problem
Ant and PVCS !!!
unable to create directory using ftp task
Where to run the saved ant script of Deployable plug-ins and fragments
javax.mail Error