File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Craig Demyanovich
Ranch Hand
Posts: 173
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Craig Demyanovich
Ranch Hand
Posts: 173
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add the following to the ant-target you execute:
<echo message="os.name: ${os.name}" level="verbose"/>
Hope this helps
 
Craig Demyanovich
Ranch Hand
Posts: 173
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 173
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic