Bug 16849 - [ExternalTools] Ant does not respect output level preference
Summary: [ExternalTools] Ant does not respect output level preference
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 major (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Darin Swanson CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
: 17689 20818 25198 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-22 11:18 EDT by Adam Schlegel CLA
Modified: 2002-11-25 16:42 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Schlegel CLA 2002-05-22 11:18:26 EDT
Ant scripts run using external tools do not respect the External Tool Default 
output level preference. Either the preference should add default arguments 
when the Ant script is bing run, or the preference should be removed entirely.

To reproduce:
1) Create a simple Hello World ant script.  I used the one below
<project name="foo" default="init">
<target name="init">
<tstamp/>
<echo message="Ran Ant ${TSTAMP}"/>
</target>
</project>

2) Set the default output level to Information(normal), and run.
3) Set the default output level to Debug, and run. Notice that the output from 
the two runs is the same.
4) The output I expect is what is generated by adding the "-debug" flag to the 
arguments given under the Run->External Tools->Configure dialog.
Comment 1 Nick Edgar CLA 2002-05-27 14:39:16 EDT
Is the intent of this setting to affect how much output is generated (i.e. pass 
the -debug flag), or is it simply to suppress output below the given threshold?
Comment 2 Rodrigo Peretti CLA 2002-05-27 14:52:57 EDT
*** Bug 17689 has been marked as a duplicate of this bug. ***
Comment 3 Rodrigo Peretti CLA 2002-05-27 14:58:00 EDT
I believe both implementations would lead to the same user experience. It 
seems easier to use the existent one (i.e. pass the -debug flag) instead of 
reimplementing something similar (suppress output below the given threshold).
I do not have a use case that requires solution #2.
Comment 4 Simon Arsenault CLA 2002-09-06 14:44:21 EDT
When we switch to using the debug console, we need to revisit this filter level 
stuff for all types of tools.
Comment 5 Darin Swanson CLA 2002-10-22 12:21:17 EDT
*** Bug 25198 has been marked as a duplicate of this bug. ***
Comment 6 Darin Wright CLA 2002-11-15 10:22:22 EST
The ouptut level and color preferences should become Ant preferences rather 
than external tool preferences. As well, the preferences should be interpreted 
as "default" settings for a script, which can be overriden at the launch 
configuration level.

Currently, with the sharing of the debug console, error and info message colors 
are controlled by the debug preferences for std err and std out. However, we 
could override this.

External tool programs simply inherit the std out/err colors from the debug 
preferences - and output level does not effect programs (as this generalization 
is not something programs understand).
Comment 7 Darin Wright CLA 2002-11-15 12:03:05 EST
*** Bug 20818 has been marked as a duplicate of this bug. ***
Comment 8 Darin Wright CLA 2002-11-25 15:37:24 EST
Preference for default output level has been removed, as it can conflict with 
any arguments on launch configs. Console font setting is inherited from debug 
console.

Moved Ant preferences to top-level page.
Migrated (Ant) console (color) preferences to a "Console" preference page below 
the "Ant" page. There are no longer any generic external tool preferences.
Comment 9 Darin Wright CLA 2002-11-25 15:37:37 EST
please verify, Darin S.
Comment 10 Darin Swanson CLA 2002-11-25 16:42:27 EST
Verified.