This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 185417 - running ant in quiet mode prints lots of unit test messages
Summary: running ant in quiet mode prints lots of unit test messages
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal with 3 votes (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-04 09:12 UTC by anba
Modified: 2010-05-06 19:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anba 2010-05-04 09:12:46 UTC
Running ant in quiet mode on a project with unit tests creates lots of lines of the form

test.unit.folder
test.qa-functional.folder
...

In quiet mode the build system should only report compiler warnings and errors but not these lines that tell the user nothing.
Comment 1 limo42 2010-05-04 11:12:17 UTC
Furthermore, compiling classes with @ServiceProvider annotations creates output messages of the form

Note: mypackage.MyDropHandler to be registered as a org.openide.windows.ExternalDropHandler

this information is fine -- but here again, we dont *not* want to see such messages in ant verbosity level "quiet".
Comment 2 Jesse Glick 2010-05-04 18:14:56 UTC
(In reply to comment #0)
> Running ant in quiet mode on a project with unit tests creates lots of lines of
> the form
> 
> test.unit.folder
> test.qa-functional.folder

Due to mfukala's f769787ae828, easily fixed.

(In reply to comment #1)
> Furthermore, compiling classes with @ServiceProvider annotations creates output
> messages of the form
> 
> Note: mypackage.MyDropHandler to be registered as a org.openide.windows.ExternalDropHandler

This is just javac's behavior: it prints Diagnostic.Kind.NOTE messages to stderr whereas you might expect them to go to stdout. I filed a bug for javac about it.
Comment 3 Jesse Glick 2010-05-04 18:15:42 UTC
core-main #076c1b8ada6a
Comment 4 Quality Engineering 2010-05-05 04:59:36 UTC
Integrated into 'main-golden', will be available in build *201005050200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log:
Comment 5 mgoe 2010-05-06 17:45:48 UTC
(In reply to comment #2)

The line "Note: <ServiceImpl> to be registered as a <Service>" is written from:

openide.util.lookup/src/org/openide/util/lookup/implspi/AbstractServiceProviderProcessor.java:151

processingEnv.getMessager().printMessage(Kind.NOTE,
    impl + " to be registered as a " + xface + (path.length() > 0 ? " under " + path : ""));
Comment 6 Jesse Glick 2010-05-06 19:17:08 UTC
(In reply to comment #5)
> The line "Note: <ServiceImpl> to be registered as a <Service>" is written from:

I know where the Filer call is made from. But the actual output is done by javac.