Here is one pointer, for what it's worth.

This is not a standalone tool and is currently full of usability and other 
problems, but IBM's Eclipse IDE does an outstanding  job of pruning and 
sorting the imports list when you do right click/Organize Imports. It also 
has some intelligence to convert a long list of imports into something 
like "import my.package.*;" when all classes from a package are required. 
When it is stable and mostly bug free, I will switch to it in preference 
to IntelliJ's IDEA, CodeGuide, and what have you...

Vlad.


Please respond to "Ant Users List" <[EMAIL PROTECTED]>
To:     "Ant Users List" <[EMAIL PROTECTED]>
cc: 

Subject:        Re: Code format validation


The only tool I've played with so far that does this is ImportScrubber.
<http://importscrubber.sourceforge.net/>

It does have an ant task with it.
Unfortunately, I think it can only handle the scenerio where the class
files are in the same directory(ies) as the source files.

I also found it was not entirely reliable with picking up all dependencies
on my medium size set of sources.

Any other similar tools out there?  I would love to find a more robust 
one.

E.

At 05:49 PM 14/01/02 -0600, Matthew Pullen wrote:
>Hello,
>         As with all projects, they tend to change a bit over time.  This
>leaves you with unused import statments all over the place. I don't like 
the
>import blah.* format either.  I was curious if there is an automated way 
to
>check this in particular using ant, or an add in to ant?  I have tried 
using
>checkstyle, but it doesn't appear to work with 1.4.
>
>Matthew Pullen


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to