Bug 136707 - iajc should print summary like javac
Summary: iajc should print summary like javac
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Ant (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-13 14:23 EDT by Ron Bodkin CLA
Modified: 2006-06-13 15:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Bodkin CLA 2006-04-13 14:23:22 EDT
The iajc ant task should produce a summary of what it is doing, like the javac task does:

[javac] Compiling 189 source files to C:\project\classes
Comment 1 Wes Isberg CLA 2006-05-10 13:23:35 EDT
Thanks for the bug.  iajc will print the full ajc command line when in verbose mode.  The problem with trying to calculate a summary is that the iajc task does not enumerate files the way javac does - there could be any number of arg files, source roots, source files, etc. Reopen this if verbose isn't working for you or you have a proposal for useful info-level output (I thought perhaps when forking...).
Comment 2 Ron Bodkin CLA 2006-05-10 13:39:08 EDT
How about just printing a count of the number of top level input items (directories, inpath entries, source roots, etc.)? Verbose output is good for debugging, but it's helpful to see some summary of how much is being compiled in a batch build without so much information.
Comment 3 Wes Isberg CLA 2006-06-13 15:46:49 EDT
Fixed in AjcTask.java:1.55 with new logCommand option that emits the entire command to INFO (verbose mode does the same, but also adds all other verbose messages).  No summary is correct in the presence of command editors, so the actual command is the best option absent heinous code to parse and summarize the command as edited.  I also left the command elements in [array, mode] to make parsing easier if need be.